Function at 0x4388d0
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5d17a8
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push esi
push edi
mov eax, dword [0x628560]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.USER32.dll_LockWindowUpdate]
mov ecx, dword [0x647fdc]
mov ebx, esi
mov dword [esp + 0x1c], ecx
call fcn.004467b0
call fcn.004d4cf7
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x438934
push 0x80004005
call fcn.00404150
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x48]
mov dword [esp + 0x68], 0
call fcn.004dc97c
push 0
mov byte [esp + 0x6c], 1
mov edi, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
push 0
call edi
mov ebx, eax
test ebx, ebx
je 0x438a0e
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push ebx
push 8
push eax
mov dword [esp + 0x30], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [esp + 0x24]
mov ebx, eax
push ebx
push ebx
push 0
push ecx
mov dword [esp + 0x38], ebx
call dword [sym.imp.KERNEL32.dll_HeapSize]
push eax
call edi
mov al, byte [ebx]
test al, al
je 0x4389fc
mov edi, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp al, 0x41
je 0x4389e6
cmp al, 0x42
je 0x4389e6
push ebx
call edi
cmp eax, 4
je 0x4389e6
push ebx
call edi
cmp eax, 5
je 0x4389e6
push ebx
call edi
cmp eax, 6
je 0x4389e6
push ebx
call edi
test eax, eax
je 0x4389e6
push ebx
call edi
cmp eax, 2
je 0x4389e6
mov edx, dword [esp + 0x50]
push ebx
push edx
lea ecx, [esp + 0x50]
call fcn.004dcc33
push 0
push ebx
call fcn.004f432d
add eax, 1
mov ebx, eax
mov al, byte [ebx]
add esp, 8
test al, al
jne 0x4389a8
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
push eax
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 0x50]
xor edi, edi
test eax, eax
mov dword [esp + 0x14], edi
jle 0x438d9a
test edi, edi
jl 0x438df2
cmp edi, eax
jge 0x438df2
mov edx, dword [esp + 0x4c]
lea eax, [edx + edi*4]
push eax
lea ecx, [esp + 0x1c]
call fcn.00404ec0
mov eax, dword [esi + 0x194]
mov ecx, dword [esi + 0x198]
mov ebx, dword [esp + 0x18]
push eax
push ecx
push edi
push esi
mov ecx, ebx
call fcn.00446630
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x44]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
je 0x438d87
mov eax, edi
mov ecx, esi
call fcn.00446920
call fcn.004d4cf7
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x43892a
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x24], eax
mov byte [esp + 0x68], 2
call fcn.004d4cf7
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x43892a
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
mov byte [esp + 0x68], 3
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
shrd ecx, edx, 0x14
shr edx, 0x14
push edx
push ecx
lea eax, [esp + 0x2c]
push 0x60a008
push eax
call fcn.004056d0
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
shrd ecx, edx, 0x14
shr edx, 0x14
push edx
push ecx
lea eax, [esp + 0x38]
push 0x60a008
push eax
call fcn.004056d0
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x4c]
add esp, 0x20
push 0
push 0x64
push ecx
push edx
call fcn.004fbce0
mov ecx, dword [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x38]
push ecx
push edx
push eax
call fcn.00500d80
mov edx, dword [esi + 0x20]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
mov ebx, 0x64
push 0x1004
sub ebx, eax
push edx
mov dword [esp + 0x38], ebx
call edi
cmp dword [esp + 0x14], eax
jge 0x438ba7
mov ecx, esi
call fcn.004e4b88
mov eax, dword [eax + 0x20]
push 0
push 0
push 0x1200
push eax
call edi
cmp eax, 1
jle 0x438ba7
mov ecx, dword [esp + 0x24]
mov edi, dword [esp + 0x14]
push ecx
push 1
push edi
mov ecx, esi
call fcn.004d9554
mov ebx, 1
call fcn.00446af0
mov ebx, dword [esp + 0x28]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov esi, dword [ebp + 8]
mov edx, dword [esi + 0x20]
push 0
push 0
push 0x1004
push edx
call edi
cmp dword [esp + 0x14], eax
jge 0x438bfb
mov ecx, esi
call fcn.004e4b88
mov eax, dword [eax + 0x20]
push 0
push 0
push 0x1200
push eax
call edi
cmp eax, 2
jle 0x438bfb
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 0x14]
push ecx
push 2
push edi
mov ecx, esi
call fcn.004d9554
mov ebx, 2
call fcn.00446af0
mov ebx, dword [esp + 0x28]
mov esi, dword [ebp + 8]
mov eax, dword [esp + 0x14]
push ebx
mov ecx, esi
call fcn.004469b0
mov eax, dword [esp + 0x14]
push 0
push 4
push esi
call fcn.00446a20
mov eax, dword [esp + 0x1c]
xor edi, edi
cmp dword [eax + 0x58], edi
jle 0x438d39
jmp 0x438c28
mov eax, ecx
test edi, edi
jl 0x438df2
cmp edi, dword [eax + 0x58]
jge 0x438df2
mov edx, dword [eax + 0x54]
mov ebx, dword [edx + edi*4]
mov ecx, dword [ebx - 0x10]
lea eax, [edx + edi*4]
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
sub ebx, 0x10
call edx
cmp dword [ebx + 0xc], 0
lea ecx, [ebx + 0xc]
jl 0x438c69
cmp eax, dword [ebx]
jne 0x438c69
mov esi, ebx
mov eax, 1
lock xadd dword [ecx], eax
jmp 0x438c9f
mov ecx, dword [ebx + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 1
push ecx
mov ecx, eax
call edx
mov esi, eax
test esi, esi
je 0x438ded
mov eax, dword [ebx + 4]
mov dword [esi + 4], eax
mov eax, dword [ebx + 4]
add eax, 1
push eax
add ebx, 0x10
push ebx
push eax
lea ecx, [esi + 0x10]
push ecx
call fcn.004f385c
add esp, 0x10
add esi, 0x10
mov dword [esp + 0x28], esi
xor eax, eax
test esi, esi
setne al
mov byte [esp + 0x68], 4
test eax, eax
je 0x43892a
mov edx, dword [esp + 0x18]
push esi
push edx
call fcn.004f5185
add esp, 8
test eax, eax
sete al
test al, al
jne 0x438d04
add esi, 0xfffffff0
mov byte [esp + 0x68], 3
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x438cf2
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [esp + 0x1c]
add edi, 1
cmp edi, dword [ecx + 0x58]
jl 0x438c26
jmp 0x438d36
mov edx, dword [ebp + 8]
mov eax, dword [esp + 0x14]
push 1
push 4
push edx
call fcn.00446a20
add esi, 0xfffffff0
mov byte [esp + 0x68], 3
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x438d36
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov esi, dword [ebp + 8]
mov byte [esp + 0x68], 2
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x438d5e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x68], 1
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x438d83
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x50]
add edi, 1
cmp edi, eax
mov dword [esp + 0x14], edi
jl 0x438a20
push 0
call dword [sym.imp.USER32.dll_LockWindowUpdate]
lea ecx, [esp + 0x48]
mov byte [esp + 0x68], 0
call fcn.004dca1a
mov dword [esp + 0x68], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x438dd8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.00405480
call fcn.004d66ad
int3