Function at 0x403713
Capabilities:
Get disk size

Disassembly:
mov eax, 0x4195b6
call fcn.0040fe54
sub esp, 0x510
mov eax, dword [0x4220b8]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
push ebx
push 0xffffffffffffffff
push ebx
push ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x4f4], ebx
call fcn.00403638
push dword [ebp + 0x10]
lea esi, [edi + 0x12]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
call edi
push dword [0x422cec]
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov eax, dword [0x422e4c]
mov ecx, 0x422e4c
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x504], eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x500]
push eax
mov dword [ebp - 4], ebx
call fcn.00404504
push 0x41ca78
push 0x41ce6c
lea eax, [ebp - 0x500]
push eax
mov byte [ebp - 4], 1
call fcn.0040454f
push dword [ebp + 0x10]
mov esi, dword [ebp - 0x500]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push dword [ebp + 0x10]
mov dword [ebp - 0x514], eax
lea eax, [ebp - 0x4f0]
push eax
call edi
mov eax, dword [ebp + 8]
mov dword [ebp + 0xc], ebx
mov byte [eax + 0x10], bl
jmp 0x4039bc
push 0xe
push str.http:__
push esi
call fcn.00419066
add esp, 0xc
test eax, eax
jne 0x403a71
push 0x5e
push esi
call fcn.0040e2b9
mov ebx, eax
test ebx, ebx
pop ecx
pop ecx
je 0x403a6f
lea eax, [ebx + 2]
push 0x5e
push eax
mov dword [ebp - 0x518], eax
call fcn.0040e2b9
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 0x508], eax
je 0x403a6f
add eax, 2
push eax
call fcn.0040e2db
pop ecx
mov ecx, dword [ebp + 0xc]
sub ebx, esi
mov dword [ebp - 0x51c], eax
sar ebx, 1
lea eax, [ecx + eax + 0x1000]
inc ebx
push ebx
mov dword [ebp + 0xc], eax
push esi
lea eax, [ebp - 0x2e8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
lea eax, [ebp - 0x2e8]
push 0x2f
push eax
call fcn.0040e33f
pop ecx
inc eax
inc eax
pop ecx
push eax
mov eax, dword [ebp - 0x514]
lea eax, [ebp + eax*2 - 0x4f0]
push eax
call edi
push 0x54
call fcn.0040c951
pop ecx
mov dword [ebp - 0x4f8], eax
test eax, eax
mov byte [ebp - 4], 2
je 0x4038ff
lea eax, [ebp - 0x4f0]
push eax
lea eax, [ebp - 0x510]
push eax
call fcn.00404504
lea eax, [ebp - 0x2e8]
push eax
lea eax, [ebp - 0x50c]
mov byte [ebp - 4], 3
or dword [ebp - 0x4f4], 1
push eax
call fcn.00404504
mov eax, dword [ebp + 8]
add eax, 0x12
push eax
lea eax, [ebp - 0x510]
push eax
lea eax, [ebp - 0x50c]
push eax
push dword [ebp - 0x51c]
mov dword [ebp - 4], 4
push dword [ebp - 0x518]
or dword [ebp - 0x4f4], 2
call fcn.0040e2db
pop ecx
push eax
push 2
push dword [ebp - 0x4f8]
call fcn.00403585
mov ebx, eax
jmp 0x403901
xor ebx, ebx
test byte [ebp - 0x4f4], 2
je 0x40391f
mov eax, dword [ebp - 0x50c]
and dword [ebp - 0x4f4], 0xfffffffd
add eax, 0xfffffff0
call fcn.0040252e
mov dword [ebp - 4], 1
test byte [ebp - 0x4f4], 1
je 0x403944
mov eax, dword [ebp - 0x510]
and dword [ebp - 0x4f4], 0xfffffffe
add eax, 0xfffffff0
call fcn.0040252e
mov eax, dword [ebp - 0x508]
add eax, 2
push 0x5e
push eax
call fcn.0040e2b9
test eax, eax
pop ecx
pop ecx
je 0x403a6f
lea esi, [eax + 2]
push esi
call fcn.0040e2db
pop ecx
push dword [ebp + 8]
mov dword [ebx + 0x50], eax
mov eax, ebx
call fcn.0040356d
mov ebx, dword [ebp + 8]
cmp byte [ebx + 0x10], 0
jne 0x4039a0
push 0x5e
push esi
call fcn.0040e2b9
test eax, eax
pop ecx
pop ecx
je 0x40399c
add eax, 2
push eax
call fcn.0040e2db
cmp eax, 1
pop ecx
je 0x4039a0
mov byte [ebx + 0x10], 1
push 0xa
push dword [ebp - 0x508]
call fcn.0040e2b9
test eax, eax
pop ecx
pop ecx
je 0x403a6f
lea esi, [eax + 2]
xor ebx, ebx
cmp word [esi], 0xa
jne 0x4037d0
push 4
push dword [ebp + 0x10]
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push 0x6d
lea eax, [ebp - 0x504]
call fcn.00409223
mov eax, dword [ebp + 0xc]
shr eax, 0x14
inc eax
push eax
movzx eax, word [ebp - 0x18]
push eax
push dword [ebp - 0x504]
lea eax, [ebp - 0xe0]
push eax
call fcn.0040e36f
mov esi, dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
add esp, 0x10
lea eax, [ebp - 0x4fc]
push eax
push ebx
push ebx
lea eax, [ebp - 0x18]
push eax
call esi
mov eax, dword [ebp - 0x4f8]
cmp eax, ebx
ja 0x403a81
jae 0x403a62
push 5
call fcn.00409200
lea eax, [eax*2 + 0x423b30]
push eax
lea eax, [ebp - 0xe0]
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 2
je 0x403a71
lea eax, [ebp - 0x4fc]
push eax
push ebx
push ebx
lea eax, [ebp - 0x18]
push eax
call esi
mov eax, dword [ebp - 0x4f8]
cmp eax, ebx
jb 0x403a25
ja 0x403a81
mov eax, dword [ebp - 0x4fc]
cmp eax, dword [ebp + 0xc]
jbe 0x403a25
jmp 0x403a81
xor ebx, ebx
mov edi, dword [ebp + 8]
push ebx
push 0xffffffffffffffff
push ebx
push ebx
call fcn.00403638
push 0xfffffffffffffffa
pop ebx
mov eax, dword [ebp - 0x500]
add eax, 0xfffffff0
call fcn.0040252e
mov eax, dword [ebp - 0x504]
add eax, 0xfffffff0
call fcn.0040252e
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
mov eax, ebx
pop ebx
call fcn.0040f65e
leave
ret 0xc