Function at 0x407ea0
Capabilities:
Get disk information
Get disk size
Get memory capacity
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x3e4
mov edx, dword [esp + 0x3f4]
mov ecx, dword [esp + 0x3ec]
xor eax, eax
push ebp
mov ebp, dword [esp + 0x3ec]
cmp ebp, eax
push esi
mov esi, dword [esp + 0x3f8]
mov dword [esp + 0x10], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x14], eax
je 0x408813
cmp ecx, 1
jl 0x408813
cmp esi, eax
je 0x408813
cmp edx, 1
jl 0x408813
push ebx
mov ebx, ecx
shr ecx, 2
push edi
mov edi, ebp
rep stosd dword es:[edi], eax
mov ecx, ebx
and ecx, 3
rep stosb byte es:[edi], al
xor eax, eax
mov ecx, edx
shr ecx, 2
mov edi, esi
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
xor eax, eax
mov ecx, 0x20
lea edi, [esp + 0xb0]
rep stosd dword es:[edi], eax
lea eax, [esp + 0xb0]
push 0x80
push eax
lea eax, [esp + 0x24]
call fcn.004076a0
lea eax, [esp + 0xb8]
add esp, 8
lea edx, [eax + 1]
jmp 0x407f50
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407f50
mov ecx, ebp
sub eax, edx
lea esi, [ecx + 1]
mov edi, edi
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x407f60
mov ebx, dword [esp + 0x3fc]
sub ecx, esi
add ecx, eax
cmp ecx, ebx
jge 0x408803
mov eax, ebp
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407f80
lea ecx, [esp + 0xb0]
push ecx
sub eax, edx
add eax, ebp
push str._s
push eax
call fcn.00458ee7
lea edx, [esp + 0x3c]
push edx
call fcn.00407560
mov eax, dword [esp + 0x40]
push eax
lea ecx, [esp + 0xc4]
push str.___ld
push ecx
call fcn.00458ee7
lea eax, [esp + 0xcc]
add esp, 0x1c
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407fd0
mov ecx, ebp
sub eax, edx
lea esi, [ecx + 1]
mov edi, edi
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x407fe0
sub ecx, esi
add ecx, eax
cmp ecx, ebx
jge 0x408803
lea eax, [esp + 0xb0]
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408000
mov edi, ebp
sub eax, edx
dec edi
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x408010
mov ecx, eax
shr ecx, 2
mov esi, edx
mov edx, dword [esp + 0x1c]
rep movsd dword es:[edi], dword [esi]
push edx
mov ecx, eax
lea eax, [esp + 0xb4]
and ecx, 3
push 0x46b170
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00458ee7
lea eax, [esp + 0xbc]
add esp, 0xc
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408050
mov ecx, ebp
sub eax, edx
lea esi, [ecx + 1]
mov edi, edi
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x408060
sub ecx, esi
add ecx, eax
cmp ecx, ebx
jge 0x408803
lea eax, [esp + 0xb0]
mov esi, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408080
mov edi, ebp
sub eax, esi
dec edi
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x408090
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push str.GlobalMemoryStatusEx
rep movsb byte es:[edi], byte [esi]
push str.kernel32.dll
mov byte [esp + 0xb8], 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, eax
test edx, edx
je 0x408151
xor eax, eax
mov ecx, 0x10
lea edi, [esp + 0x170]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x170]
push ecx
mov dword [esp + 0x174], 0x40
call edx
test eax, eax
je 0x408151
mov eax, dword [esp + 0x178]
mov ecx, dword [esp + 0x17c]
mov edx, eax
or edx, ecx
je 0x408151
add eax, 0x80000
adc ecx, 0
shrd eax, ecx, 0x14
shr ecx, 0x14
push ecx
push eax
lea eax, [esp + 0xb8]
push str.___I64d
push eax
call fcn.00458ee7
mov ecx, dword [esp + 0x188]
mov eax, dword [esp + 0x18c]
add esp, 0x10
or ecx, eax
je 0x408151
mov al, byte [esp + 0xb0]
test al, al
jne 0x4081ca
xor edx, edx
mov dword [esp + 0x90], edx
mov dword [esp + 0x94], edx
mov dword [esp + 0x98], edx
mov dword [esp + 0x9c], edx
mov dword [esp + 0xa0], edx
mov dword [esp + 0xa4], edx
lea eax, [esp + 0x90]
mov dword [esp + 0xa8], edx
push eax
mov dword [esp + 0xb0], edx
mov dword [esp + 0x94], 0x20
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov ecx, dword [esp + 0x98]
add ecx, 0x80000
shr ecx, 0x14
push ecx
lea edx, [esp + 0xb4]
push str.___ld
push edx
call fcn.00458ee7
add esp, 0xc
lea eax, [esp + 0xb0]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4081d4
sub eax, edx
mov edx, eax
mov eax, ebp
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4081e4
mov ecx, dword [esp + 0x3fc]
sub eax, esi
add eax, edx
cmp eax, ecx
jge 0x408803
lea eax, [esp + 0xb0]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408207
sub eax, edx
dec ebp
mov edi, ebp
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x408213
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.0044bae0
cmp eax, 6
je 0x408258
cmp eax, 5
je 0x408258
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0x2710
push str.net_use
call fcn.00446f70
add esp, 0x14
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dx, word [0x46b130]
mov dword [esp + 0x34], eax
mov al, byte [0x46b132]
push 1
mov byte [esp + 0xb4], 0
mov dword [esp + 0x14], 0x5c3a41
mov word [esp + 0x18], dx
mov byte [esp + 0x1a], al
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push str.GetDiskFreeSpaceExA
push str.kernel32.dll
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, dword [esp + 0x34]
test ebx, ebx
mov dword [esp + 0x1c], eax
je 0x4087c4
test bl, 1
je 0x40872b
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov ebp, eax
cmp ebp, 3
je 0x40830d
cmp ebp, 2
je 0x40830d
cmp ebp, 4
je 0x40830d
cmp ebp, 5
jne 0x40872b
cmp ebp, 4
je 0x40830d
cmp ebp, eax
jne 0x408571
movsx edx, byte [esp + 0x10]
push edx
lea eax, [esp + 0xb4]
push str._c______CDROM
push eax
call fcn.00458ee7
add esp, 0xc
jmp 0x408571
movsx ecx, byte [esp + 0x10]
push ecx
lea edx, [esp + 0xb4]
push str._c
push edx
call fcn.00458ee7
mov eax, dword [esp + 0x28]
xor edi, edi
add esp, 0xc
cmp eax, edi
je 0x408389
lea eax, [esp + 0x88]
push eax
lea ecx, [esp + 0x54]
push ecx
lea edx, [esp + 0x50]
push edx
lea eax, [esp + 0x1c]
push eax
call dword [esp + 0x2c]
mov esi, eax
cmp esi, edi
jne 0x40841c
cmp ebp, 3
jne 0x408414
call dword [sym.imp.KERNEL32.dll_GetLastError]
movsx ecx, byte [esp + 0x10]
push ecx
push eax
lea edx, [esp + 0x1fc]
push str.ERROR:_GetDiskFreeSpaceEx___failed_with_error__d_on_fixed_disk_volume__c:_n
push edx
call fcn.00458ee7
lea eax, [esp + 0x200]
push eax
jmp 0x408401
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
mov esi, eax
cmp esi, edi
je 0x4083d5
mov eax, dword [esp + 0x24]
imul eax, dword [esp + 0x20]
mov ecx, eax
imul ecx, dword [esp + 0x28]
imul eax, dword [esp + 0x2c]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], edi
jmp 0x408414
cmp ebp, 3
jne 0x408414
call dword [sym.imp.KERNEL32.dll_GetLastError]
movsx edx, byte [esp + 0x10]
push edx
push eax
lea eax, [esp + 0x1fc]
push str.ERROR:_GetDiskFreeSpace___failed_with_error__d_on_fixed_disk_volume__c:_n
push eax
call fcn.00458ee7
lea ecx, [esp + 0x200]
push ecx
mov dword [esp + 0x204], 1
call fcn.0043e010
add esp, 0x14
cmp esi, edi
je 0x4084b0
mov esi, 0x14
mov dword [esp + 0x34], esi
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
shrd eax, edx, cl
shr edx, cl
push 0xa
lea ecx, [esp + 0x154]
push ecx
push edx
push eax
call fcn.0045a432
add esp, 0x10
mov dword [esp + 0x34], esi
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x54]
shrd eax, edx, cl
shr edx, cl
push 0xa
lea ecx, [esp + 0x134]
push ecx
push edx
push eax
call fcn.0045a432
lea eax, [esp + 0xc0]
add esp, 0x10
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408480
sub eax, edx
lea edx, [esp + 0x130]
push edx
lea ecx, [esp + 0x154]
push ecx
lea edx, [esp + eax + 0xb8]
push str.___s___s
push edx
call fcn.00458ee7
add esp, 0x10
jmp 0x4084de
lea eax, [esp + 0xb0]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4084c0
sub eax, edx
lea eax, [esp + eax + 0xb0]
push 0x46b040
push eax
call fcn.00458ee7
add esp, 8
lea edi, [esp + 0xb0]
dec edi
cmp ebp, 3
jne 0x408515
jmp 0x4084f0
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4084f0
mov ecx, dword [str.__Fixed]
mov edx, dword [0x46b038]
mov ax, word [0x46b03c]
mov dword [edi], ecx
mov dword [edi + 4], edx
mov word [edi + 8], ax
jmp 0x408571
cmp ebp, 2
jne 0x408550
lea ebx, [ebx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x408520
mov ecx, dword [str.__Removable]
mov edx, dword [0x46b028]
mov eax, dword [0x46b02c]
mov dword [edi], ecx
mov cx, word [0x46b030]
mov dword [edi + 4], edx
mov dword [edi + 8], eax
mov word [edi + 0xc], cx
jmp 0x408571
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x408550
mov edx, dword [str.__Network]
mov eax, dword [0x46b01c]
mov ecx, dword [0x46b020]
mov dword [edi], edx
mov dword [edi + 4], eax
mov dword [edi + 8], ecx
xor eax, eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
xor edx, edx
mov dword [esp + 0x64], eax
mov dword [esp + 0x78], edx
mov dword [esp + 0x68], eax
push 0xf
mov dword [esp + 0x80], edx
mov dword [esp + 0x84], edx
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x88], edx
lea ecx, [esp + 0x7c]
push ecx
mov dword [esp + 0x7c], eax
lea edx, [esp + 0x44]
push edx
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x54]
push ecx
push 0x1f
lea edx, [esp + 0x70]
push edx
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
cmp ebp, 4
mov esi, eax
jne 0x40867a
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40867a
mov cl, byte [esp + 0x10]
lea edx, [esp + 0x14]
push edx
push eax
mov byte [esp + 0x1c], cl
call fcn.0044db90
add esp, 8
test eax, eax
je 0x40867a
add eax, 2
lea ebx, [ebx]
mov cl, byte [eax]
cmp cl, 0x20
je 0x40861c
cmp cl, 9
jne 0x40861f
inc eax
jmp 0x408610
cmp byte [eax], 0x5c
jne 0x40867a
cmp byte [eax + 1], 0x5c
jne 0x40867a
xor ecx, ecx
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], ecx
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x70], ecx
mov dword [esp + 0x74], ecx
mov cl, byte [eax]
xor edx, edx
cmp cl, 0x20
je 0x40867a
cmp cl, 9
je 0x40867a
cmp cl, 0xd
je 0x40867a
cmp cl, 0xa
je 0x40867a
test cl, cl
je 0x40867a
cmp edx, 0x1f
jae 0x40867a
inc eax
mov byte [esp + edx + 0x58], cl
mov cl, byte [eax]
inc edx
cmp cl, 0x20
jne 0x408655
test esi, esi
jne 0x4086be
mov al, byte [esp + 0x58]
test al, al
jne 0x4086be
lea edi, [esp + 0xb0]
dec edi
mov edi, edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x408690
mov edx, dword [str._____r_n]
mov eax, dword [0x46b010]
mov cx, word [0x46b014]
mov dword [edi], edx
mov dl, byte [0x46b016]
mov dword [edi + 4], eax
mov word [edi + 8], cx
mov byte [edi + 0xa], dl
jmp 0x40872b
xor eax, eax
mov ecx, 0xf
lea edi, [esp + 0x1b0]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x1b0]
push eax
push 0x469e50
lea ecx, [esp + 0x60]
push 0x469e4c
push ecx
call fcn.0044dcb0
lea eax, [esp + 0xc0]
add esp, 0x10
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408700
sub eax, edx
lea edx, [esp + 0x78]
push edx
lea ecx, [esp + 0x1b4]
push ecx
lea edx, [esp + eax + 0xb8]
push str.___s___s_r_n
push edx
call fcn.00458ee7
add esp, 0x10
lea eax, [esp + 0xb0]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408735
sub eax, edx
test eax, eax
jle 0x4087b0
lea eax, [esp + 0xb0]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408750
mov edi, dword [esp + 0x400]
sub eax, edx
mov edx, eax
mov eax, edi
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408767
mov ecx, dword [esp + 0x404]
sub eax, esi
add eax, edx
cmp eax, ecx
jge 0x4087ea
lea eax, [esp + 0xb0]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408786
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x408790
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov byte [esp + 0xb0], 0
mov cl, byte [esp + 0x10]
shr ebx, 1
inc cl
test ebx, ebx
mov byte [esp + 0x10], cl
jne 0x4082b2
push 0
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4087dd
push eax
call fcn.0045932f
add esp, 4
pop edi
pop ebx
pop esi
xor eax, eax
pop ebp
add esp, 0x3e4
ret
push 0
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x408803
push eax
call fcn.0045932f
add esp, 4
pop edi
pop ebx
pop esi
mov eax, 0xfffffffe
pop ebp
add esp, 0x3e4
ret
pop esi
or eax, 0xffffffff
pop ebp
add esp, 0x3e4
ret