Function at 0x472520
Capabilities:
Get disk information

Disassembly:
sub esp, 0x158
mov eax, dword [0x4bacc0]
xor eax, esp
mov dword [esp + 0x154], eax
push ebx
push ebp
push esi
push edi
push 0x4defbc
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor ebx, ebx
xor ebp, ebp
lea eax, [esp + 0x64]
sub eax, 0x4fd1b8
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], ebp
mov dword [esp + 0x18], ebx
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0x4fd29c]
cmp eax, ebx
lea esi, [ebp + 0x4fd308]
je 0x472924
cmp dword [esi - 0xc], ebx
jne 0x472924
cmp dword [0x50a2e8], ebx
jne 0x47258e
cmp dword [esi - 0x10], ebx
je 0x472924
push eax
call fcn.00434320
cmp eax, ebx
jne 0x472861
cmp dword [esi - 8], ebx
jl 0x4725aa
cmp dword [esi - 0x10], ebx
je 0x472921
cmp dword [esi - 0x10], 2
jne 0x4725b7
mov dword [esi - 4], 0xfffffffe
lea eax, [esi - 0x150]
push eax
push 0x63
call fcn.0046da00
push eax
call fcn.0046fa80
add esp, 0xc
push 0x7f02
push ebx
call dword [sym.imp.USER32.dll_LoadCursorA]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x1c], ebx
lea esp, [esp]
push esi
lea eax, [esi + 0x98]
push eax
lea eax, [esi + 0x94]
push eax
lea eax, [esi + 0x90]
push eax
lea eax, [esi - 4]
push eax
mov eax, dword [esi - 0x6c]
push eax
call fcn.00434a30
test eax, eax
jne 0x4727ac
lea ecx, [ebp + 0x4fd314]
push ecx
push eax
push eax
push eax
push eax
push eax
push eax
lea edx, [ebp + 0x4fd918]
push edx
lea eax, [ebp + 0x4fd898]
push eax
lea ecx, [ebp + 0x4fd3b0]
push ecx
mov ecx, dword [esi - 0x6c]
lea edx, [ebp + 0x4fd3ac]
push edx
lea eax, [ebp + 0x4fd3a8]
push eax
lea edi, [ebp + 0x4fd3a4]
push edi
push ecx
call fcn.00438590
test eax, eax
jne 0x4727ac
xor ebx, ebx
cmp dword [edi], ebx
jg 0x472714
lea eax, [esi - 0x150]
mov cl, byte [eax]
mov edx, dword [esp + 0x20]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x472673
lea edi, [esp + 0x64]
add edi, 0xffffffff
lea ebx, [ebx]
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x472690
mov ax, word [0x49ea0c]
push 0x18
mov word [edi], ax
lea edi, [esi + 0xcd]
push edi
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x40]
push edx
lea ebp, [esi + 0xe8]
push ebp
push 0x21
lea ebx, [esi + 0xac]
push ebx
lea eax, [esp + 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
jne 0x4726e3
mov byte [ebx], al
mov byte [edi], al
mov dword [ebp], 0xffffffff
mov ecx, dword [0x50a360]
mov edx, dword [esp + 0x14]
push ecx
push edx
lea edi, [esi + 0x10]
push edi
call fcn.00471b90
mov ebp, dword [esp + 0x1c]
add esp, 0xc
mov dword [esi - 8], 1
jmp 0x472811
mov ebp, dword [esp + 0x10]
lea edx, [esp + 0x38]
push edx
mov edx, dword [esi - 0x6c]
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x2c]
push ecx
push ebx
push edx
call fcn.0043a0d0
test eax, eax
jne 0x4727ac
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
lea edx, [ecx + ebp]
cmp ebp, edx
jge 0x472787
mov eax, dword [esp + 0x18]
lea edi, [eax + ebp]
lea edi, [edi*4 + 0x4fd70c]
mov edi, edi
mov eax, dword [esi - 0x6c]
lea ecx, [edi - 0x318]
push ecx
push 0
push 0
push 0
push edi
lea edx, [edi - 0x18c]
push edx
push ebp
push eax
call fcn.0043a220
test eax, eax
jne 0x472787
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
add ebp, 1
add edx, ecx
add edi, 4
cmp ebp, edx
jl 0x472750
mov ecx, dword [esp + 0x10]
add ebx, 1
cmp ebx, dword [ecx + 0x4fd3a4]
lea ecx, [ecx + 0x4fd3a4]
jl 0x472710
test eax, eax
je 0x47266d
mov ebp, dword [esp + 0x10]
mov ecx, eax
and ecx, 0xf000000
cmp ecx, 0xc000000
jne 0x4727d7
cmp dword [esp + 0x1c], 3
jge 0x4727d7
add dword [esp + 0x1c], 1
push 0xfa
call fcn.00432430
jmp 0x4725f0
push eax
mov eax, dword [esi - 0x6c]
push eax
lea edi, [esi + 0x10]
call fcn.0046de30
add esp, 8
push eax
push 0x49e5ac
push 0xa4
call fcn.0046d6b0
add esp, 4
push eax
push str._s_s_s
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
mov dword [esi - 8], 2
mov ecx, dword [esp + 0x2c]
push ecx
call dword [sym.imp.USER32.dll_SetCursor]
call fcn.0046fb10
mov eax, dword [esi + 0x690]
mov ecx, dword [0x4fd190]
lea edx, [esp + 0x3c]
push edx
push eax
push 0x102e
push ecx
mov dword [esp + 0x54], 3
mov dword [esp + 0x60], edi
call dword [sym.imp.USER32.dll_SendMessageA]
mov edx, dword [0x4fcfbc]
xor ebx, ebx
push ebx
push 0x3e8
push 0x67
push edx
jmp 0x47291b
cmp dword [esi - 8], eax
jne 0x47286f
cmp dword [esi - 0x10], ebx
je 0x472921
cmp eax, 0x82040100
mov dword [esi - 8], eax
jne 0x472898
push 0x65
call fcn.0046d6b0
lea edi, [esi + 0x10]
add esp, 4
mov edx, edi
mov cl, byte [eax]
mov byte [edx], cl
add eax, 1
add edx, 1
test cl, cl
jne 0x472888
jmp 0x4728e3
cmp eax, 0x823a0200
jne 0x4728c6
cmp dword [0x50a2e8], ebx
je 0x4728c6
push 0x20
call fcn.0046d6b0
lea edi, [esi + 0x10]
add esp, 4
mov edx, edi
mov cl, byte [eax]
mov byte [edx], cl
add eax, 1
add edx, 1
test cl, cl
jne 0x4728b6
jmp 0x4728e3
push 0x1e
call fcn.0046d6b0
lea edi, [esi + 0x10]
add esp, 4
mov edx, edi
mov cl, byte [eax]
mov byte [edx], cl
add eax, 1
add edx, 1
test cl, cl
jne 0x4728d5
mov ecx, dword [esi + 0x690]
mov edx, dword [0x4fd190]
lea eax, [esp + 0x3c]
push eax
push ecx
push 0x102e
push edx
mov dword [esp + 0x54], 3
mov dword [esp + 0x60], edi
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [0x4fcfbc]
push ebx
push 0x3e8
push 0x67
push eax
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [esi - 0x10], ebx
mov eax, dword [esp + 0x18]
add dword [esp + 0x14], 1
sub dword [esp + 0x20], 0x7ec
add eax, 0x1fb
add ebp, 0x7ec
cmp eax, 0x337e
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], ebp
jl 0x472560
push 0x4defbc
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x164]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004810ab
add esp, 0x158
ret