Function at 0x404e00
Capabilities:
Get disk size

Disassembly:
sub esp, 0x834
mov eax, dword [0x41c690]
xor eax, esp
mov dword [esp + 0x830], eax
mov eax, dword [esp + 0x840]
mov ecx, dword [esp + 0x844]
push ebx
mov ebx, dword [esp + 0x840]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
push esi
xor esi, esi
mov dword [esp + 0x2c], eax
mov eax, dword [0x41dd08]
push edi
mov edi, dword [esp + 0x848]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
cmp eax, esi
jne 0x404e92
mov eax, dword [0x41dd00]
cmp eax, esi
je 0x404e7b
push str.GetDiskFreeSpaceExW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x41dd08], eax
cmp eax, esi
jne 0x404e92
push 0
mov dword [0x41dd08], 0xffffffff
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x405076
cmp eax, 0xffffffff
je 0x404eb0
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x40]
push edx
push edi
call eax
mov esi, eax
cmp esi, 0xffffffff
jne 0x404ebd
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x405076
test esi, esi
jne 0x404f0d
push 0x400
lea eax, [esp + 0x44]
push eax
push edi
call fcn.00404c60
add esp, 0xc
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x4c]
push ecx
mov ecx, 0x41dd00
call fcn.00403700
mov esi, eax
test esi, esi
jne 0x404f0d
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
jmp 0x405076
test ebx, ebx
je 0x40506e
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x1c]
push edx
push edi
call ebp
mov esi, eax
test esi, esi
jne 0x404f79
push 0x400
lea eax, [esp + 0x44]
push eax
push edi
call fcn.00404c60
lea ecx, [esp + 0x4c]
push 0x400
push ecx
call fcn.00401230
add esp, 0x14
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x50]
push eax
call ebp
mov esi, eax
test esi, esi
je 0x405068
mov ecx, dword [esp + 0x10]
imul ecx, dword [esp + 0x14]
cmp dword [esp + 0x1c], 0
mov dword [ebx], ecx
ja 0x404f99
cmp dword [esp + 0x18], 0x80000000
jbe 0x40506e
call fcn.00403c60
test al, al
jne 0x40506e
call section..text
test eax, eax
je 0x405022
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x1c]
push edx
push edi
call fcn.00404d10
mov esi, eax
add esp, 0x14
test esi, esi
je 0x405022
mov eax, dword [esp + 0x10]
imul eax, dword [esp + 0x14]
mov dword [ebx], eax
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x30]
test eax, eax
je 0x404ff2
mov dword [eax], ecx
mov ecx, dword [esp + 0x24]
mov dword [eax + 4], ecx
mov eax, dword [esp + 0x34]
test eax, eax
je 0x405007
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov dword [eax], edx
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x840]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00408f97
add esp, 0x834
ret
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov ecx, 1
cmp eax, 2
ja 0x405041
jb 0x40503a
test edx, edx
jae 0x405041
mov ecx, 3
jmp 0x405051
cmp eax, 4
ja 0x405051
jb 0x40504c
test edx, edx
jae 0x405051
mov ecx, 2
mov eax, dword [esp + 0x10]
shr eax, cl
mov esi, 1
imul eax, dword [esp + 0x14]
mov dword [ebx], eax
jmp 0x404fdd
mov dword [ebx], 0
test esi, esi
jne 0x404fdd
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40508e
cmp eax, 0x4d3
jne 0x40508e
xor esi, esi
jmp 0x404fdd
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x1c]
push ecx
push edi
call ebp
mov esi, eax
test esi, esi
jne 0x4050ee
push 0x400
lea edx, [esp + 0x44]
push edx
push edi
call fcn.00404c60
lea eax, [esp + 0x4c]
push 0x400
push eax
call fcn.00401230
add esp, 0x14
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x50]
push edx
call ebp
mov esi, eax
test esi, esi
je 0x405123
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
xor edx, edx
cmp ebx, edx
je 0x405103
mov edi, eax
imul edi, ecx
mov dword [ebx], edi
imul eax, ecx
mov ecx, eax
imul ecx, dword [esp + 0x28]
imul eax, dword [esp + 0x2c]
mov dword [esp + 0x24], edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
jmp 0x404fe1
xor ecx, ecx
cmp ebx, ecx
je 0x40512b
mov dword [ebx], ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
jmp 0x404fe1