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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5147e8
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push esi
push edi
mov eax, dword [0x5566e0]
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 [0x5737f4]
mov ebx, esi
mov dword [esp + 0x1c], ecx
call fcn.00443f10
call fcn.004c2ca4
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x436134
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.004caa87
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 0x43620e
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 0x4361fc
mov edi, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp al, 0x41
je 0x4361e6
cmp al, 0x42
je 0x4361e6
push ebx
call edi
cmp eax, 4
je 0x4361e6
push ebx
call edi
cmp eax, 5
je 0x4361e6
push ebx
call edi
cmp eax, 6
je 0x4361e6
push ebx
call edi
test eax, eax
je 0x4361e6
push ebx
call edi
cmp eax, 2
je 0x4361e6
mov edx, dword [esp + 0x50]
push ebx
push edx
lea ecx, [esp + 0x50]
call fcn.004cad3e
push 0
push ebx
call fcn.004e22e6
add eax, 1
mov ebx, eax
mov al, byte [ebx]
add esp, 8
test al, al
jne 0x4361a8
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 0x43659a
test edi, edi
jl 0x4365f2
cmp edi, eax
jge 0x4365f2
mov edx, dword [esp + 0x4c]
lea eax, [edx + edi*4]
push eax
lea ecx, [esp + 0x1c]
call fcn.00404e60
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.00443d90
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 0x436587
mov eax, edi
mov ecx, esi
call fcn.00444080
call fcn.004c2ca4
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x43612a
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.004c2ca4
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x43612a
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 0x52ec68
push eax
call fcn.00405670
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 0x52ec68
push eax
call fcn.00405670
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x4c]
add esp, 0x20
push 0
push 0x64
push ecx
push edx
call fcn.004ebca0
mov ecx, dword [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x38]
push ecx
push edx
push eax
call fcn.004f0630
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 0x4363a7
mov ecx, esi
call fcn.004d2cad
mov eax, dword [eax + 0x20]
push 0
push 0
push 0x1200
push eax
call edi
cmp eax, 1
jle 0x4363a7
mov ecx, dword [esp + 0x24]
mov edi, dword [esp + 0x14]
push ecx
push 1
push edi
mov ecx, esi
call fcn.004c7502
mov ebx, 1
call fcn.00444250
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 0x4363fb
mov ecx, esi
call fcn.004d2cad
mov eax, dword [eax + 0x20]
push 0
push 0
push 0x1200
push eax
call edi
cmp eax, 2
jle 0x4363fb
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 0x14]
push ecx
push 2
push edi
mov ecx, esi
call fcn.004c7502
mov ebx, 2
call fcn.00444250
mov ebx, dword [esp + 0x28]
mov esi, dword [ebp + 8]
mov eax, dword [esp + 0x14]
push ebx
mov ecx, esi
call fcn.00444110
mov eax, dword [esp + 0x14]
push 0
push 4
push esi
call fcn.00444180
mov eax, dword [esp + 0x1c]
xor edi, edi
cmp dword [eax + 0x58], edi
jle 0x436539
jmp 0x436428
mov eax, ecx
test edi, edi
jl 0x4365f2
cmp edi, dword [eax + 0x58]
jge 0x4365f2
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 0x436469
cmp eax, dword [ebx]
jne 0x436469
mov esi, ebx
mov eax, 1
lock xadd dword [ecx], eax
jmp 0x43649f
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 0x4365ed
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.004e1967
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 0x43612a
mov edx, dword [esp + 0x18]
push esi
push edx
call fcn.004e3135
add esp, 8
test eax, eax
sete al
test al, al
jne 0x436504
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 0x4364f2
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 0x436426
jmp 0x436536
mov edx, dword [ebp + 8]
mov eax, dword [esp + 0x14]
push 1
push 4
push edx
call fcn.00444180
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 0x436536
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 0x43655e
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 0x436583
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 0x436220
push 0
call dword [sym.imp.USER32.dll_LockWindowUpdate]
lea ecx, [esp + 0x48]
mov byte [esp + 0x68], 0
call fcn.004cab25
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 0x4365d8
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.00405420
call fcn.004c463b
int3