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

Disassembly:
push 0xffffffffffffffff
push 0x466e0c
mov eax, dword fs:[0]
push eax
sub esp, 0xfc
mov eax, dword [0x481670]
xor eax, esp
mov dword [esp + 0xf4], eax
push ebx
push esi
push edi
mov eax, dword [0x481670]
xor eax, esp
push eax
lea eax, [esp + 0x10c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x11c]
push 0x4740fc
lea ecx, [esp + 0x14]
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], 0
call fcn.004036e0
lea ecx, [esp + 0x3c]
push ecx
push 0x64
mov dword [esp + 0x11c], 0
xor esi, esi
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
cmp word [esp + 0x3c], bx
lea edi, [esp + 0x3c]
je 0x409121
push edi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 4
je 0x409102
cmp eax, 5
je 0x409102
cmp eax, 2
je 0x409102
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x2c]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x409157
mov ecx, dword [esp + 0x28]
cmp ebx, ecx
jg 0x409102
mov eax, dword [esp + 0x24]
jl 0x4090f4
cmp esi, eax
jae 0x409102
mov ebx, ecx
push edi
lea ecx, [esp + 0x14]
mov esi, eax
call fcn.00403990
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x409107
sub eax, edx
sar eax, 1
cmp word [edi + eax*2 + 2], cx
lea edi, [edi + eax*2 + 2]
jne 0x4090b2
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 0x409236
cmp eax, dword [esi]
jne 0x409236
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x409272
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [esp + 0x18]
push edx
mov esi, eax
call fcn.0040d8f0
push 0x474228
push eax
lea eax, [esp + 0x28]
mov bl, 1
push eax
mov byte [esp + 0x124], bl
call fcn.004057d0
push edi
push eax
lea ecx, [esp + 0x38]
push ecx
mov byte [esp + 0x130], 2
call fcn.004057d0
add esp, 0x1c
push 0
mov byte [esp + 0x118], 3
mov eax, dword [eax]
push 0x10
push eax
call fcn.00420cb6
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 0x4091d5
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 0x4091fc
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 0x409224
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x14]
push 0x4740fc
mov ecx, esi
call fcn.004036e0
jmp 0x40927b
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 0x40924f
call fcn.0040d530
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.00433603
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 0x4092a6
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.00433115
add esp, 0x108
ret 4