Function at 0x40370f
Capabilities:
Get disk size

Disassembly:
mov eax, 0x419220
call fcn.0040fbd0
sub esp, 0x50c
mov eax, dword [0x4220b8]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor ebx, ebx
push ebx
push 0xffffffffffffffff
push ebx
push ebx
mov edi, esi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x4f4], ebx
call fcn.00403634
push dword [ebp + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
add esi, 0x12
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
mov esi, dword [ebp + 0xc]
push dword [ebp + 0x10]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x4f8], esi
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]
push 4
push 0x41cd6c
mov dword [ebp + 0xc], ebx
mov byte [eax + 0x10], bl
push esi
jmp 0x4039c7
push 0xe
push str.http:__
push dword [ebp - 0x4f8]
call fcn.00418d26
add esp, 0xc
test eax, eax
jne 0x403a80
push 0x5e
push dword [ebp - 0x4f8]
call fcn.0040e0c8
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x403a80
lea eax, [esi + 2]
push 0x5e
push eax
mov dword [ebp - 0x4fc], eax
call fcn.0040e0c8
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0x508], eax
je 0x403a80
add eax, 2
push eax
call fcn.0040e0ea
sub esi, dword [ebp - 0x4f8]
pop ecx
mov ecx, dword [ebp + 0xc]
sar esi, 1
mov dword [ebp - 0x518], eax
lea eax, [ecx + eax + 0x1000]
inc esi
push esi
push dword [ebp - 0x4f8]
mov dword [ebp + 0xc], eax
lea eax, [ebp - 0x2e8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
lea eax, [ebp - 0x2e8]
push 0x2f
push eax
call fcn.0040e14e
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.0040c6a3
pop ecx
mov dword [ebp - 0x4f8], eax
cmp eax, ebx
mov byte [ebp - 4], 1
je 0x4038f6
lea eax, [ebp - 0x4f0]
push eax
lea eax, [ebp - 0x510]
push eax
call fcn.00404582
lea eax, [ebp - 0x2e8]
push eax
lea eax, [ebp - 0x50c]
mov byte [ebp - 4], 2
or dword [ebp - 0x4f4], 1
push eax
call fcn.00404582
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 - 0x518]
mov dword [ebp - 4], 3
push dword [ebp - 0x4fc]
or dword [ebp - 0x4f4], 2
call fcn.0040e0ea
pop ecx
push eax
push 2
push dword [ebp - 0x4f8]
call fcn.00403581
mov dword [ebp - 0x4f8], eax
jmp 0x4038fc
mov dword [ebp - 0x4f8], ebx
test byte [ebp - 0x4f4], 2
je 0x40391a
mov eax, dword [ebp - 0x50c]
and dword [ebp - 0x4f4], 0xfffffffd
add eax, 0xfffffff0
call fcn.0040252d
mov dword [ebp - 4], ebx
test byte [ebp - 0x4f4], 1
je 0x40393b
mov eax, dword [ebp - 0x510]
and dword [ebp - 0x4f4], 0xfffffffe
add eax, 0xfffffff0
call fcn.0040252d
mov eax, dword [ebp - 0x508]
add eax, 2
push 0x5e
push eax
call fcn.0040e0c8
cmp eax, ebx
pop ecx
pop ecx
je 0x403a80
lea esi, [eax + 2]
push esi
call fcn.0040e0ea
pop ecx
mov ecx, dword [ebp - 0x4f8]
push dword [ebp + 8]
mov dword [ecx + 0x50], eax
mov eax, ecx
call fcn.00403569
mov eax, dword [ebp + 8]
cmp byte [eax + 0x10], bl
jne 0x40399f
push 0x5e
push esi
call fcn.0040e0c8
cmp eax, ebx
pop ecx
pop ecx
je 0x403998
add eax, 2
push eax
call fcn.0040e0ea
cmp eax, 1
pop ecx
je 0x40399f
mov eax, dword [ebp + 8]
mov byte [eax + 0x10], 1
mov esi, 0x41cd6c
push esi
push dword [ebp - 0x508]
call fcn.0040e17e
cmp eax, ebx
pop ecx
pop ecx
je 0x403a80
push 4
add eax, 4
push esi
mov dword [ebp - 0x4f8], eax
push eax
call fcn.0040e010
add esp, 0xc
test eax, eax
jne 0x4037b0
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.004091c3
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.0040e1dc
mov esi, dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
add esp, 0x10
lea eax, [ebp - 0x500]
push eax
push ebx
push ebx
lea eax, [ebp - 0x18]
push eax
call esi
mov eax, dword [ebp - 0x4fc]
cmp eax, ebx
ja 0x403a90
jae 0x403a73
push 5
call fcn.004091a0
lea eax, [eax*2 + 0x423928]
push eax
lea eax, [ebp - 0xe0]
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 2
je 0x403a80
lea eax, [ebp - 0x500]
push eax
push ebx
push ebx
lea eax, [ebp - 0x18]
push eax
call esi
mov eax, dword [ebp - 0x4fc]
cmp eax, ebx
jb 0x403a36
ja 0x403a90
mov eax, dword [ebp - 0x500]
cmp eax, dword [ebp + 0xc]
jbe 0x403a36
jmp 0x403a90
mov edi, dword [ebp + 8]
push ebx
push 0xffffffffffffffff
push ebx
push ebx
call fcn.00403634
push 0xfffffffffffffffa
pop ebx
mov eax, dword [ebp - 0x504]
add eax, 0xfffffff0
call fcn.0040252d
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.0040f3d9
leave
ret 0xc