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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5d1458
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push esi
push edi
mov eax, dword [0x629560]
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 [0x648fc4]
mov ebx, esi
mov dword [esp + 0x1c], ecx
call fcn.004464e0
call fcn.004d4991
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4385d4
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.004dc5c5
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 0x4386ae
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 0x43869c
mov edi, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp al, 0x41
je 0x438686
cmp al, 0x42
je 0x438686
push ebx
call edi
cmp eax, 4
je 0x438686
push ebx
call edi
cmp eax, 5
je 0x438686
push ebx
call edi
cmp eax, 6
je 0x438686
push ebx
call edi
test eax, eax
je 0x438686
push ebx
call edi
cmp eax, 2
je 0x438686
mov edx, dword [esp + 0x50]
push ebx
push edx
lea ecx, [esp + 0x50]
call fcn.004dc87c
push 0
push ebx
call fcn.004f3fce
add eax, 1
mov ebx, eax
mov al, byte [ebx]
add esp, 8
test al, al
jne 0x438648
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 0x438a3a
test edi, edi
jl 0x438a92
cmp edi, eax
jge 0x438a92
mov edx, dword [esp + 0x4c]
lea eax, [edx + edi*4]
push eax
lea ecx, [esp + 0x1c]
call fcn.00404f90
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.00446360
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 0x438a27
mov eax, edi
mov ecx, esi
call fcn.00446650
call fcn.004d4991
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x4385ca
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.004d4991
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x4385ca
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 0x60a7d8
push eax
call fcn.004057d0
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 0x60a7d8
push eax
call fcn.004057d0
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x4c]
add esp, 0x20
push 0
push 0x64
push ecx
push edx
call fcn.004fba20
mov ecx, dword [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x38]
push ecx
push edx
push eax
call fcn.00500a50
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 0x438847
mov ecx, esi
call fcn.004e47f4
mov eax, dword [eax + 0x20]
push 0
push 0
push 0x1200
push eax
call edi
cmp eax, 1
jle 0x438847
mov ecx, dword [esp + 0x24]
mov edi, dword [esp + 0x14]
push ecx
push 1
push edi
mov ecx, esi
call fcn.004d91e2
mov ebx, 1
call fcn.00446820
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 0x43889b
mov ecx, esi
call fcn.004e47f4
mov eax, dword [eax + 0x20]
push 0
push 0
push 0x1200
push eax
call edi
cmp eax, 2
jle 0x43889b
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 0x14]
push ecx
push 2
push edi
mov ecx, esi
call fcn.004d91e2
mov ebx, 2
call fcn.00446820
mov ebx, dword [esp + 0x28]
mov esi, dword [ebp + 8]
mov eax, dword [esp + 0x14]
push ebx
mov ecx, esi
call fcn.004466e0
mov eax, dword [esp + 0x14]
push 0
push 4
push esi
call fcn.00446750
mov eax, dword [esp + 0x1c]
xor edi, edi
cmp dword [eax + 0x58], edi
jle 0x4389d9
jmp 0x4388c8
mov eax, ecx
test edi, edi
jl 0x438a92
cmp edi, dword [eax + 0x58]
jge 0x438a92
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 0x438909
cmp eax, dword [ebx]
jne 0x438909
mov esi, ebx
mov eax, 1
lock xadd dword [ecx], eax
jmp 0x43893f
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 0x438a8d
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.004f34fd
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 0x4385ca
mov edx, dword [esp + 0x18]
push esi
push edx
call fcn.004f4e25
add esp, 8
test eax, eax
sete al
test al, al
jne 0x4389a4
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 0x438992
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 0x4388c6
jmp 0x4389d6
mov edx, dword [ebp + 8]
mov eax, dword [esp + 0x14]
push 1
push 4
push edx
call fcn.00446750
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 0x4389d6
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 0x4389fe
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 0x438a23
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 0x4386c0
push 0
call dword [sym.imp.USER32.dll_LockWindowUpdate]
lea ecx, [esp + 0x48]
mov byte [esp + 0x68], 0
call fcn.004dc663
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 0x438a78
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.00405580
call fcn.004d633a
int3