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

Disassembly:
push 0xffffffffffffffff
push 0x49f158
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c86e0]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
call fcn.00461729
xor ecx, ecx
xor edi, edi
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x403ec3
push 0x80004005
call fcn.00401fb0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov dword [esp + 0x50], edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ebp, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov ebx, 1
mov edx, dword [esp + 0x20]
mov ecx, edi
shr edx, cl
and edx, ebx
je 0x403fb1
call fcn.00461729
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x403eb9
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
lea ecx, [edi + 0x41]
push ecx
lea edx, [esp + 0x1c]
push str._c:_
push edx
mov byte [esp + 0x5c], bl
call fcn.00402a20
mov esi, dword [esp + 0x24]
add esp, 0xc
push esi
call ebp
cmp eax, 3
jne 0x403f90
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x44]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
je 0x403f90
mov ecx, dword [esp + 0x30]
cmp ecx, dword [esp + 0x28]
jb 0x403f90
mov eax, dword [esp + 0x2c]
ja 0x403f7a
cmp eax, dword [esp + 0x24]
jbe 0x403f90
mov dword [esp + 0x24], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x28], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.004027c0
lea eax, [esi - 0x10]
mov byte [esp + 0x50], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403fb1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add edi, ebx
cmp edi, 0x20
jl 0x403ef4
mov ebx, dword [esp + 0x58]
mov eax, dword [esp + 0x1c]
mov esi, dword [ebx]
lea ebp, [eax - 0x10]
sub esi, 0x10
cmp ebp, esi
je 0x40401a
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x40400e
mov ecx, dword [ebp]
cmp ecx, dword [esi]
jne 0x40400e
push ebp
call fcn.00402840
add esp, 4
mov ebx, eax
or edx, 0xffffffff
lock xadd dword [edi], edx
dec edx
test edx, edx
jg 0x404001
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov eax, dword [esp + 0x58]
add ebx, 0x10
mov dword [eax], ebx
mov ebx, eax
jmp 0x40401a
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, ebx
call fcn.00401c60
push 0x4ac5d8
mov eax, ebx
call fcn.00406220
mov edi, eax
mov eax, 0x4ac5d8
call fcn.00406280
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
push ecx
push edx
lea eax, [esp + 0x28]
push eax
call fcn.004398a0
add esp, 0xc
mov ecx, dword [esp + 0x5c]
push eax
mov byte [esp + 0x54], 2
call fcn.004027c0
mov byte [esp + 0x50], 0
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 0x40407d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x50], 0xffffffff
lea ecx, [ebp + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40409f
mov ecx, dword [ebp]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebp
call edx
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret