Function at 0x408d4f
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47889f
mov eax, dword fs:[0]
push eax
sub esp, 0x36c
mov eax, dword [0x4997d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x339]
mov dword [ebp - 0x338], eax
lea eax, [ebp - 0x2a0]
mov dword [ebp - 0x35c], eax
and dword [ebp - 4], 0
push 0
push 0
lea ecx, [ebp - 0x2a0]
call fcn.00401f59
mov dword [ebp - 4], 1
push dword [ebp + 8]
lea ecx, [ebp - 0x270]
call fcn.004048c6
mov byte [ebp - 4], 2
call fcn.0042f16a
mov dword [ebp - 0x304], eax
call fcn.0042ef29
mov ecx, eax
call fcn.0041077c
lea eax, [ebp - 0x304]
mov dword [ebp - 0x360], eax
mov byte [ebp - 4], 3
push dword [ebp - 0x360]
lea eax, [ebp - 0x270]
push eax
call fcn.0041682a
pop ecx
pop ecx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x304]
call fcn.004107e0
mov eax, dword [ebp - 0x260]
mov dword [ebp - 0x358], eax
cmp dword [ebp - 0x358], 2
jae 0x408e87
lea eax, [ebp - 0x270]
push eax
push str.path_too_short__must_greater_than_2__path:
lea eax, [ebp - 0x2c8]
push eax
call fcn.0041693f
add esp, 0xc
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2c8]
call fcn.004238c5
mov dword [ebp - 0x314], eax
lea eax, [ebp - 0x314]
push eax
lea ecx, [ebp - 0x310]
call fcn.0044bc86
push 0x48ea08
lea eax, [ebp - 0x310]
push eax
call fcn.0044bba1
mov byte [ebp - 4], 5
push 0
push 1
lea ecx, [ebp - 0x2c8]
call fcn.00401ecc
mov byte [ebp - 4], 2
lea eax, [ebp - 0x2a0]
push eax
lea eax, [ebp - 0x270]
push eax
call fcn.00405576
pop ecx
pop ecx
xor eax, eax
mov word [ebp - 0x254], ax
push 0x206
push 0
lea eax, [ebp - 0x252]
push eax
call fcn.0044b400
add esp, 0xc
cmp dword [ebp - 0x28c], 8
jb 0x408ed2
mov eax, dword [ebp - 0x2a0]
mov dword [ebp - 0x364], eax
jmp 0x408ede
lea eax, [ebp - 0x2a0]
mov dword [ebp - 0x364], eax
push 2
push dword [ebp - 0x364]
lea eax, [ebp - 0x254]
push eax
call fcn.0044dab9
add esp, 0xc
lea eax, [ebp - 0x27c]
push eax
lea eax, [ebp - 0x284]
push eax
lea eax, [ebp - 0x2ac]
push eax
lea eax, [ebp - 0x254]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x408f7a
mov eax, dword [ebp - 0x27c]
mov dword [ebp - 0x31c], eax
mov eax, dword [ebp - 0x278]
mov dword [ebp - 0x318], eax
mov byte [ebp - 4], 6
push 0
push 1
lea ecx, [ebp - 0x270]
call fcn.00401ecc
mov byte [ebp - 4], 1
mov dword [ebp - 4], 7
push 0
push 1
lea ecx, [ebp - 0x2a0]
call fcn.00401f59
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x31c]
mov edx, dword [ebp - 0x318]
jmp 0x4090ef
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x320], eax
lea eax, [ebp - 0x320]
push eax
lea eax, [ebp - 0x2e4]
push eax
call fcn.00416a28
pop ecx
pop ecx
mov byte [ebp - 4], 8
lea eax, [ebp - 0x2e4]
push eax
push str.get_disk_free_space_fail__last_error:
lea eax, [ebp - 0x2c]
push eax
call fcn.0041693f
add esp, 0xc
mov dword [ebp - 0x368], eax
mov eax, dword [ebp - 0x368]
mov dword [ebp - 0x36c], eax
mov byte [ebp - 4], 9
push str.__path:
push dword [ebp - 0x36c]
lea eax, [ebp - 0x48]
push eax
call fcn.00404ace
add esp, 0xc
mov dword [ebp - 0x370], eax
mov eax, dword [ebp - 0x370]
mov dword [ebp - 0x374], eax
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x270]
push eax
push dword [ebp - 0x374]
lea eax, [ebp - 0x300]
push eax
call fcn.00404b5b
add esp, 0xc
mov byte [ebp - 4], 0xd
push 0
push 1
lea ecx, [ebp - 0x48]
call fcn.00401ecc
mov byte [ebp - 4], 0xc
mov byte [ebp - 4], 0xf
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00401ecc
mov byte [ebp - 4], 0xe
cmp dword [ebp - 0x2ec], 0x10
jb 0x409055
mov eax, dword [ebp - 0x300]
mov dword [ebp - 0x378], eax
jmp 0x409061
lea eax, [ebp - 0x300]
mov dword [ebp - 0x378], eax
mov eax, dword [ebp - 0x378]
mov dword [ebp - 0x330], eax
lea eax, [ebp - 0x330]
push eax
lea ecx, [ebp - 0x32c]
call fcn.0044bc86
push 0x48ea08
lea eax, [ebp - 0x32c]
push eax
call fcn.0044bba1
mov byte [ebp - 4], 0x10
push 0
push 1
lea ecx, [ebp - 0x300]
call fcn.00401ecc
mov byte [ebp - 4], 8
mov byte [ebp - 4], 0x11
push 0
push 1
lea ecx, [ebp - 0x2e4]
call fcn.00401ecc
mov byte [ebp - 4], 2
mov byte [ebp - 4], 0x12
push 0
push 1
lea ecx, [ebp - 0x270]
call fcn.00401ecc
mov byte [ebp - 4], 1
mov dword [ebp - 4], 0x13
push 0
push 1
lea ecx, [ebp - 0x2a0]
call fcn.00401f59
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.0044b3ec
leave
ret