Function at 0x4e76af
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55e749
mov eax, dword fs:[0]
push eax
sub esp, 0x26c
mov eax, dword [0x5b4a28]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x239]
mov dword [ebp - 0x238], eax
lea eax, [ebp - 0x1a0]
mov dword [ebp - 0x260], eax
and dword [ebp - 4], 0
push 0
push 0
lea ecx, [ebp - 0x1a0]
call fcn.00405420
mov dword [ebp - 4], 1
push dword [ebp + 8]
lea ecx, [ebp - 0x170]
call fcn.00407bc0
mov byte [ebp - 4], 2
call fcn.004a4be6
mov dword [ebp - 0x204], eax
call fcn.004a4927
mov ecx, eax
call fcn.00409160
lea eax, [ebp - 0x204]
mov dword [ebp - 0x264], eax
mov byte [ebp - 4], 3
push dword [ebp - 0x264]
lea eax, [ebp - 0x170]
push eax
call fcn.004ec081
pop ecx
pop ecx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x204]
call fcn.00409250
mov eax, dword [ebp - 0x160]
mov dword [ebp - 0x258], eax
cmp dword [ebp - 0x258], 2
jae 0x4e77e7
lea eax, [ebp - 0x170]
push eax
push str.path_too_short__must_greater_than_2__path:
lea eax, [ebp - 0x1c8]
push eax
call fcn.0040e820
add esp, 0xc
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x1c8]
call fcn.00405470
mov dword [ebp - 0x214], eax
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 0x210]
call fcn.004b3926
push 0x5a5b14
lea eax, [ebp - 0x210]
push eax
call fcn.004b3841
mov byte [ebp - 4], 5
push 0
push 1
lea ecx, [ebp - 0x1c8]
call fcn.00405420
mov byte [ebp - 4], 2
lea eax, [ebp - 0x1a0]
push eax
lea eax, [ebp - 0x170]
push eax
call fcn.0043c9cf
pop ecx
pop ecx
mov byte [ebp - 0x154], 0
push 0x103
push 0
lea eax, [ebp - 0x153]
push eax
call fcn.004b7da0
add esp, 0xc
lea ecx, [ebp - 0x1a0]
call fcn.00405470
mov dword [ebp - 0x25c], eax
push 2
push dword [ebp - 0x25c]
push 0x104
lea eax, [ebp - 0x154]
push eax
call fcn.004ba04f
add esp, 0x10
lea eax, [ebp - 0x17c]
push eax
lea eax, [ebp - 0x184]
push eax
lea eax, [ebp - 0x1ac]
push eax
lea eax, [ebp - 0x154]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
je 0x4e78cb
mov eax, dword [ebp - 0x17c]
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp - 0x178]
mov dword [ebp - 0x218], eax
mov byte [ebp - 4], 6
push 0
push 1
lea ecx, [ebp - 0x170]
call fcn.00405420
mov byte [ebp - 4], 1
mov dword [ebp - 4], 7
push 0
push 1
lea ecx, [ebp - 0x1a0]
call fcn.00405420
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x21c]
mov edx, dword [ebp - 0x218]
jmp 0x4e7a40
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x220], eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x1e4]
push eax
call fcn.0045b23e
pop ecx
pop ecx
mov byte [ebp - 4], 8
lea eax, [ebp - 0x1e4]
push eax
push str.get_disk_free_space_fail__last_error:
lea eax, [ebp - 0x2c]
push eax
call fcn.0040e820
add esp, 0xc
mov dword [ebp - 0x268], eax
mov eax, dword [ebp - 0x268]
mov dword [ebp - 0x26c], eax
mov byte [ebp - 4], 9
push str.__path:
push dword [ebp - 0x26c]
lea eax, [ebp - 0x48]
push eax
call fcn.0040e7d0
add esp, 0xc
mov dword [ebp - 0x270], eax
mov eax, dword [ebp - 0x270]
mov dword [ebp - 0x274], eax
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x170]
push eax
push dword [ebp - 0x274]
lea eax, [ebp - 0x200]
push eax
call fcn.0043b964
add esp, 0xc
mov byte [ebp - 4], 0xd
push 0
push 1
lea ecx, [ebp - 0x48]
call fcn.00405420
mov byte [ebp - 4], 0xc
mov byte [ebp - 4], 0xf
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00405420
mov byte [ebp - 4], 0xe
cmp dword [ebp - 0x1ec], 0x10
jb 0x4e79a6
mov eax, dword [ebp - 0x200]
mov dword [ebp - 0x278], eax
jmp 0x4e79b2
lea eax, [ebp - 0x200]
mov dword [ebp - 0x278], eax
mov eax, dword [ebp - 0x278]
mov dword [ebp - 0x230], eax
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x22c]
call fcn.004b3926
push 0x5a5b14
lea eax, [ebp - 0x22c]
push eax
call fcn.004b3841
mov byte [ebp - 4], 0x10
push 0
push 1
lea ecx, [ebp - 0x200]
call fcn.00405420
mov byte [ebp - 4], 8
mov byte [ebp - 4], 0x11
push 0
push 1
lea ecx, [ebp - 0x1e4]
call fcn.00405420
mov byte [ebp - 4], 2
mov byte [ebp - 4], 0x12
push 0
push 1
lea ecx, [ebp - 0x170]
call fcn.00405420
mov byte [ebp - 4], 1
mov dword [ebp - 4], 0x13
push 0
push 1
lea ecx, [ebp - 0x1a0]
call fcn.00405420
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b2f5a
leave
ret