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

Disassembly:
push 0xffffffffffffffff
push 0x46a78c
mov eax, dword fs:[0]
push eax
sub esp, 0xfc
mov eax, dword [0x486668]
xor eax, esp
mov dword [esp + 0xf4], eax
push ebx
push esi
push edi
mov eax, dword [0x486668]
xor eax, esp
push eax
lea eax, [esp + 0x10c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x11c]
push 0x477ce4
lea ecx, [esp + 0x14]
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], 0
call fcn.00403710
lea ecx, [esp + 0x3c]
push ecx
push 0x64
mov dword [esp + 0x11c], 0
xor edi, edi
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
cmp word [esp + 0x3c], bx
lea esi, [esp + 0x3c]
je 0x4090f1
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 4
je 0x4090d2
cmp eax, 5
je 0x4090d2
cmp eax, 2
je 0x4090d2
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x2c]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x409127
mov ecx, dword [esp + 0x28]
cmp ebx, ecx
jg 0x4090d2
mov eax, dword [esp + 0x24]
jl 0x4090c4
cmp edi, eax
jae 0x4090d2
mov ebx, ecx
push esi
lea ecx, [esp + 0x14]
mov edi, eax
call fcn.004039c0
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4090d7
sub eax, edx
sar eax, 1
cmp word [esi + eax*2 + 2], cx
lea esi, [esi + eax*2 + 2]
jne 0x409082
mov esi, dword [esp + 0x10]
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
add esi, 0xfffffff0
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x409205
cmp eax, dword [esi]
jne 0x409205
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x409241
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0x1c]
push edx
call fcn.0040d980
push 0x477e10
push eax
lea eax, [esp + 0x2c]
mov bl, 1
push eax
mov byte [esp + 0x128], bl
call fcn.00405740
push esi
push eax
lea ecx, [esp + 0x3c]
push ecx
mov byte [esp + 0x134], 2
call fcn.00405740
add esp, 0x20
push 0
mov byte [esp + 0x118], 3
mov eax, dword [eax]
push 0x10
push eax
call fcn.0041cadf
mov byte [esp + 0x114], 2
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4091a4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x114], bl
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4091cb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x114], 0
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 0x4091f3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x14]
push 0x477ce4
mov ecx, esi
call fcn.00403710
jmp 0x40924a
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
jne 0x40921e
call fcn.0040d5c0
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
lea ecx, [eax + eax + 2]
push ecx
add esi, 0x10
lea edx, [eax + eax + 2]
push esi
push edx
lea eax, [edi + 0x10]
push eax
call fcn.0042f192
add esp, 0x10
mov esi, dword [esp + 0x14]
add edi, 0x10
mov dword [esi], edi
mov dword [esp + 0x114], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409275
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x10c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xf4]
xor ecx, esp
call fcn.0042eddf
add esp, 0x108
ret 4