Function at 0x40545d
Capabilities:
Get disk size

Disassembly:
push 0x38
mov eax, 0x4db89e
call fcn.004bb7e0
mov esi, ecx
mov dword [ebp - 0x2c], esi
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.00408401
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x28]
push eax
call fcn.00409ceb
add esp, 0xc
push dword [eax]
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.004035cd
mov ecx, dword [ebp - 0x28]
mov ebx, eax
neg ebx
sbb bl, bl
add ecx, 0xfffffff0
mov byte [ebp - 4], 0
call fcn.00404c8b
inc bl
je 0x405528
push ecx
mov ecx, esp
push str.5a5e4d5c57605e515b604d5a4f535e5c5a
call fcn.00401855
lea eax, [ebp - 0x2c]
push eax
call fcn.00408c98
pop ecx
pop ecx
push eax
push ecx
mov ecx, esp
push str.4d5a5e5b605956535a6059504d604c
mov byte [ebp - 4], 2
call fcn.00401855
lea eax, [ebp + 8]
push eax
call fcn.00408c98
pop ecx
pop ecx
push eax
lea eax, [ebp + 0xc]
push eax
mov byte [ebp - 4], 3
call fcn.0044ced3
add esp, 0xc
push eax
mov ecx, esi
mov byte [ebp - 4], 4
call fcn.00405c09
mov ecx, dword [ebp + 0xc]
lea ecx, [ecx - 0x10]
call fcn.00404c8b
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.00404c8b
mov ecx, dword [ebp - 0x2c]
lea ecx, [ecx - 0x10]
jmp 0x405b68
push dword [esi + 0x24]
push ecx
mov ecx, esp
push str.606076716c6b7e73737a6d607d767c6060
call fcn.00401855
lea eax, [ebp - 0x28]
push eax
call fcn.00408c98
pop ecx
pop ecx
push dword [eax]
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 5
call fcn.00404ca7
mov ecx, dword [ebp - 0x28]
xor ebx, ebx
add ecx, 0xfffffff0
mov byte [ebp - 4], bl
call fcn.00404c8b
push dword [esi + 0x28]
push ecx
mov ecx, esp
push str.606076716c6b7e73737a6d60697a6d7679767a6d6060
call fcn.00401855
lea eax, [ebp - 0x28]
push eax
call fcn.00408c98
pop ecx
pop ecx
push dword [eax]
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 6
call fcn.00404ca7
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
mov byte [ebp - 4], bl
call fcn.00404c8b
push dword [esi + 0x2c]
push ecx
mov ecx, esp
push str.606076716c6b7e73737a6d600a0f60697a6d7679767a6d6060
call fcn.00401855
lea eax, [ebp - 0x28]
push eax
call fcn.00408c98
pop ecx
pop ecx
push dword [eax]
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 7
call fcn.00404ca7
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
mov byte [ebp - 4], bl
call fcn.00404c8b
push dword [esi + 0x44]
push ecx
mov ecx, esp
push str.606076716c6b7e73737a6d60697a6d6c7670716060
call fcn.00401855
lea eax, [ebp - 0x28]
push eax
call fcn.00408c98
pop ecx
pop ecx
push dword [eax]
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 8
call fcn.00404ca7
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
mov byte [ebp - 4], bl
call fcn.00404c8b
push dword [esi + 0x4c]
push ecx
mov ecx, esp
push str.60606c706a6d7c7a60767b6060
call fcn.00401855
lea eax, [ebp - 0x28]
push eax
call fcn.00408c98
pop ecx
pop ecx
push dword [eax]
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 9
call fcn.00404ca7
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
mov byte [ebp - 4], bl
call fcn.00404c8b
push dword [esi + 0x50]
push ecx
mov ecx, esp
push str.60606c6a7d60767b6060
call fcn.00401855
lea eax, [ebp - 0x28]
push eax
call fcn.00408c98
pop ecx
pop ecx
push dword [eax]
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0xa
call fcn.00404ca7
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
mov byte [ebp - 4], bl
call fcn.00404c8b
push dword [esi + 0x54]
push ecx
mov ecx, esp
push str.60606a65767b6060
call fcn.00401855
lea eax, [ebp - 0x28]
push eax
call fcn.00408c98
pop ecx
pop ecx
push dword [eax]
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0xb
call fcn.00404ca7
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
mov byte [ebp - 4], bl
call fcn.00404c8b
push dword [esi + 0x48]
push ecx
mov ecx, esp
push str.606076716c6b7e73737e6b767071606b76727a606f737e7c7a7770737b7a6d6060
call fcn.00401855
lea eax, [ebp - 0x28]
push eax
call fcn.00408c98
pop ecx
pop ecx
push dword [eax]
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0xc
call fcn.00404ca7
mov ecx, dword [ebp - 0x28]
mov byte [ebp - 4], bl
lea ecx, [ecx - 0x10]
call fcn.00404c8b
cmp byte [esi + 0x68], bl
mov ecx, 0x4e6c50
mov eax, 0x4e6444
cmove eax, ecx
push eax
push ecx
mov ecx, esp
push str.1d606076716c6b7e73737e6b767071606b777e717466706a606f7e787a606f737e7c7a7770737b7a6d60601d
call fcn.00401855
lea eax, [ebp - 0x28]
push eax
call fcn.00408c98
pop ecx
pop ecx
push dword [eax]
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0xd
call fcn.00404ca7
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
mov byte [ebp - 4], bl
call fcn.00404c8b
cmp byte [ebp + 0xc], bl
je 0x405791
cmp byte [esi + 0x8c], bl
jne 0x405791
push ecx
mov ecx, esp
push str.60606d7a76716c6b7e73736060
call fcn.00401855
lea eax, [ebp - 0x28]
push eax
call fcn.00408c98
pop ecx
pop ecx
push dword [eax]
mov byte [ebp - 4], 0xe
push ecx
mov ecx, esp
push str.606079766d6c6b6076716c6b7e73736060
call fcn.00401855
lea eax, [ebp + 0xc]
push eax
call fcn.00408c98
pop ecx
pop ecx
push dword [eax]
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0xf
call fcn.00404ca7
mov ecx, dword [ebp + 0xc]
lea ecx, [ecx - 0x10]
call fcn.00404c8b
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
mov byte [ebp - 4], bl
call fcn.00404c8b
push dword [esi + 0x58]
push ecx
mov ecx, esp
push str.70686c7a6d606f737e7c7a7770737b7a6d6060
call fcn.00401855
lea eax, [ebp - 0x24]
push eax
call fcn.00408c98
pop ecx
pop ecx
push eax
push ecx
mov ecx, esp
push str.60607b7a797e6a736b607d6d
mov byte [ebp - 4], 0x10
call fcn.00401855
lea eax, [ebp - 0x28]
push eax
call fcn.00408c98
pop ecx
pop ecx
push eax
lea eax, [ebp + 0xc]
push eax
mov byte [ebp - 4], 0x11
call fcn.00401dfb
add esp, 0xc
push dword [eax]
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0x12
call fcn.00404ca7
mov ecx, dword [ebp + 0xc]
lea ecx, [ecx - 0x10]
call fcn.00404c8b
mov ecx, dword [ebp - 0x28]
lea ecx, [ecx - 0x10]
call fcn.00404c8b
mov ecx, dword [ebp - 0x24]
mov byte [ebp - 4], bl
lea ecx, [ecx - 0x10]
call fcn.00404c8b
mov eax, dword [esi + 0x38]
sub eax, dword [esi + 0x34]
mov ecx, ebx
mov dword [ebp - 0x28], ebx
test eax, 0xfffffffc
jle 0x4059a2
mov eax, dword [esi + 0x34]
mov eax, dword [eax + ecx*4]
sub eax, 0x10
push eax
call fcn.0040356e
lea edi, [eax + 0x10]
pop ecx
mov dword [ebp + 0xc], edi
push ebx
push 0x4e692c
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 0x13
call fcn.00403740
mov dword [ebp - 0x30], eax
cmp eax, 0xffffffff
je 0x40596b
push eax
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp + 0xc]
call fcn.0040491d
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0x14
call fcn.00404a54
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.0040356e
add eax, 0x10
pop ecx
mov dword [ebp - 0x20], eax
mov eax, dword [edi - 0xc]
sub eax, dword [ebp - 0x30]
lea ecx, [ebp + 0xc]
dec eax
push eax
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], 0x15
call fcn.0040540c
push 0x4e6444
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0x16
call fcn.004035cd
test eax, eax
je 0x4058bb
push 0x4e6c50
lea ecx, [ebp - 0x14]
call fcn.00405fa6
mov esi, dword [ebp - 0x14]
push esi
push ecx
mov ecx, esp
push str.606f737e7c7a7770737b7a6d60601d
call fcn.00401855
lea eax, [ebp - 0x40]
push eax
call fcn.00408c98
pop ecx
pop ecx
mov ebx, eax
push 0x4e6e5c
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0x17
call fcn.00401814
lea ecx, [ebp - 0x20]
push ecx
push eax
lea eax, [ebp - 0x38]
push eax
mov byte [ebp - 4], 0x18
call fcn.0044ced3
push ebx
push eax
lea eax, [ebp - 0x34]
push eax
mov byte [ebp - 4], 0x19
call fcn.0044ced3
add esp, 0x18
push dword [eax]
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0x1a
call fcn.00404ca7
mov ecx, dword [ebp - 0x34]
lea ecx, [ecx - 0x10]
call fcn.00404c8b
mov ecx, dword [ebp - 0x38]
lea ecx, [ecx - 0x10]
call fcn.00404c8b
mov ecx, dword [ebp - 0x3c]
lea ecx, [ecx - 0x10]
call fcn.00404c8b
mov ecx, dword [ebp - 0x40]
lea ecx, [ecx - 0x10]
call fcn.00404c8b
lea ecx, [esi - 0x10]
call fcn.00404c8b
mov ecx, dword [ebp - 0x20]
lea ecx, [ecx - 0x10]
call fcn.00404c8b
mov ecx, dword [ebp - 0x24]
lea ecx, [ecx - 0x10]
call fcn.00404c8b
mov esi, dword [ebp - 0x2c]
xor ebx, ebx
call fcn.0040658e
test al, al
jne 0x40597f
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
lea ecx, [edi - 0x10]
mov byte [ebp - 4], bl
call fcn.00404c8b
mov eax, dword [esi + 0x38]
sub eax, dword [esi + 0x34]
mov ecx, dword [ebp - 0x28]
inc ecx
sar eax, 2
mov dword [ebp - 0x28], ecx
cmp ecx, eax
jl 0x405822
lea eax, [esi + 0x7c]
push eax
mov esi, 0x4e6e60
lea eax, [ebp - 0x14]
push esi
push eax
call fcn.00401eaf
push esi
push eax
lea eax, [ebp - 0x20]
push eax
mov byte [ebp - 4], 0x1b
call fcn.00401e50
add esp, 0x18
push dword [eax]
mov byte [ebp - 4], 0x1c
push ecx
mov ecx, esp
push 0x4e6e64
call fcn.00401855
lea eax, [ebp - 0x24]
push eax
call fcn.00408c98
pop ecx
pop ecx
push eax
push ecx
mov ecx, esp
push str.7671797060
mov byte [ebp - 4], 0x1d
call fcn.00401855
lea eax, [ebp - 0x28]
push eax
call fcn.00408c98
pop ecx
pop ecx
push eax
push ecx
mov ecx, esp
push str.766b7670717e7360
mov byte [ebp - 4], 0x1e
call fcn.00401855
lea eax, [ebp - 0x30]
push eax
call fcn.00408c98
pop ecx
pop ecx
mov esi, eax
push str.___A
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0x1f
call fcn.00401814
push 0x4e6edc
push eax
lea eax, [ebp - 0x38]
push eax
mov byte [ebp - 4], 0x20
call fcn.00401e50
push esi
push eax
lea eax, [ebp - 0x3c]
push eax
mov byte [ebp - 4], 0x21
call fcn.0044ced3
add esp, 0x18
push eax
lea eax, [ebp - 0x40]
push eax
mov byte [ebp - 4], 0x22
call fcn.0044ced3
add esp, 0xc
mov byte [ebp - 4], 0x23
push eax
lea eax, [ebp + 0xc]
push eax
call fcn.0044ced3
add esp, 0xc
push dword [eax]
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0x24
call fcn.00404ca7
mov ecx, dword [ebp + 0xc]
lea ecx, [ecx - 0x10]
call fcn.00404c8b
mov ecx, dword [ebp - 0x40]
lea ecx, [ecx - 0x10]
call fcn.00404c8b
mov ecx, dword [ebp - 0x3c]
lea ecx, [ecx - 0x10]
call fcn.00404c8b
mov ecx, dword [ebp - 0x38]
lea ecx, [ecx - 0x10]
call fcn.00404c8b
mov ecx, dword [ebp - 0x34]
lea ecx, [ecx - 0x10]
call fcn.00404c8b
mov ecx, dword [ebp - 0x30]
lea ecx, [ecx - 0x10]
call fcn.00404c8b
mov ecx, dword [ebp - 0x28]
lea ecx, [ecx - 0x10]
call fcn.00404c8b
mov ecx, dword [ebp - 0x24]
lea ecx, [ecx - 0x10]
call fcn.00404c8b
mov ecx, dword [ebp - 0x20]
lea ecx, [ecx - 0x10]
call fcn.00404c8b
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], bl
lea ecx, [ecx - 0x10]
call fcn.00404c8b
push 0x5311f0
lea ecx, [ebp - 0x18]
call fcn.00401749
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 4], 0x25
call fcn.00409120
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
call fcn.00408954
add esp, 0x10
test al, al
jne 0x405b5e
push ecx
mov ecx, esp
push str.484d564b5a605956535a6059504d604c5a5e4d5c57605e515b604d5a4f535e5c5a
call fcn.00401855
lea eax, [ebp + 0xc]
push eax
call fcn.00408c98
pop ecx
pop ecx
mov ecx, dword [ebp - 0x2c]
push eax
mov byte [ebp - 4], 0x26
call fcn.00405c09
mov ecx, dword [ebp + 0xc]
lea ecx, [ecx - 0x10]
call fcn.00404c8b
mov dword [ebp - 0x1c], ebx
jmp 0x405b62
mov byte [ebp - 0x1c], 1
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.00404c8b
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00404c8b
mov al, byte [ebp - 0x1c]
call fcn.004bb7ae
ret 8