Function at 0x403578
Capabilities:
Get disk size

Disassembly:
mov eax, 0x41a60d
call fcn.00410f20
sub esp, 0x510
mov eax, dword [0x4240b8]
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.0040349d
push dword [ebp + 0x10]
lea esi, [edi + 0x12]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
call edi
push dword [0x424cec]
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov eax, dword [0x424e6c]
mov ecx, 0x424e6c
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x4f8], eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x504]
push eax
mov dword [ebp - 4], ebx
call fcn.004043b4
push 0x41da74
push 0x41de80
lea eax, [ebp - 0x504]
push eax
mov byte [ebp - 4], 1
call fcn.004043ff
push dword [ebp + 0x10]
mov esi, dword [ebp - 0x504]
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 byte [eax + 0x10], bl
cmp word [esi], 0xa
mov dword [ebp + 0xc], ebx
je 0x403876
push 0x5e
push esi
call fcn.0040f279
mov ebx, eax
test ebx, ebx
pop ecx
pop ecx
je 0x40391f
lea eax, [ebx + 2]
push 0x5e
push eax
mov dword [ebp - 0x518], eax
call fcn.0040f279
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 0x508], eax
je 0x40391f
add eax, 2
push eax
call fcn.0040f29b
mov ecx, dword [ebp + 0xc]
push 0xe
mov dword [ebp - 0x51c], eax
lea eax, [ecx + eax + 0x1000]
push str.http:__
push esi
mov dword [ebp + 0xc], eax
call fcn.0041a166
add esp, 0x10
test eax, eax
jne 0x4036ae
sub ebx, esi
sar ebx, 1
inc ebx
push ebx
push esi
lea eax, [ebp - 0x220]
jmp 0x4036f7
push dword [0x424c6c]
lea eax, [ebp - 0x4f8]
push 0x4256d8
push str.http:___s:_d
push eax
call fcn.004023bd
add esp, 0x10
push dword [ebp - 0x4f8]
lea eax, [ebp - 0x220]
push eax
call edi
sub ebx, esi
sar ebx, 1
inc ebx
push ebx
push esi
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [ebp + eax*2 - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
lea eax, [ebp - 0x220]
push 0x2f
push eax
call fcn.0040f2ff
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.0040d90f
pop ecx
mov dword [ebp - 0x4fc], eax
test eax, eax
mov byte [ebp - 4], 2
je 0x4037af
lea eax, [ebp - 0x4f0]
push eax
lea eax, [ebp - 0x510]
push eax
call fcn.004043b4
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x50c]
mov byte [ebp - 4], 3
or dword [ebp - 0x4f4], 1
push eax
call fcn.004043b4
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.0040f29b
pop ecx
push eax
push 2
push dword [ebp - 0x4fc]
call fcn.004033ea
mov ebx, eax
jmp 0x4037b1
xor ebx, ebx
test byte [ebp - 0x4f4], 2
je 0x4037cf
mov eax, dword [ebp - 0x50c]
and dword [ebp - 0x4f4], 0xfffffffd
add eax, 0xfffffff0
call fcn.0040252d
mov dword [ebp - 4], 1
test byte [ebp - 0x4f4], 1
je 0x4037f4
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.0040f279
test eax, eax
pop ecx
pop ecx
je 0x40391f
lea esi, [eax + 2]
push esi
call fcn.0040f29b
pop ecx
push dword [ebp + 8]
mov dword [ebx + 0x50], eax
mov eax, ebx
call fcn.004033d2
mov ebx, dword [ebp + 8]
cmp byte [ebx + 0x10], 0
jne 0x403850
push 0x5e
push esi
call fcn.0040f279
test eax, eax
pop ecx
pop ecx
je 0x40384c
add eax, 2
push eax
call fcn.0040f29b
cmp eax, 1
pop ecx
je 0x403850
mov byte [ebx + 0x10], 1
push 0xa
push dword [ebp - 0x508]
call fcn.0040f279
test eax, eax
pop ecx
pop ecx
je 0x40391f
lea esi, [eax + 2]
cmp word [esi], 0xa
jne 0x40363a
xor ebx, ebx
push 4
push dword [ebp + 0x10]
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push 0x6d
lea ecx, [ebp - 0x4f8]
call fcn.00409e31
mov eax, dword [ebp + 0xc]
shr eax, 0x14
inc eax
push eax
movzx eax, word [ebp - 0x18]
push eax
push dword [ebp - 0x4f8]
lea eax, [ebp - 0x2e8]
push eax
call fcn.0040f32f
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 0x403931
jae 0x403912
push 5
call fcn.00409cd8
lea eax, [eax*2 + 0x425b50]
push eax
lea eax, [ebp - 0x2e8]
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 2
je 0x403921
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 0x4038d5
ja 0x403931
mov eax, dword [ebp - 0x500]
cmp eax, dword [ebp + 0xc]
jbe 0x4038d5
jmp 0x403931
xor ebx, ebx
mov edi, dword [ebp + 8]
push ebx
push 0xffffffffffffffff
push ebx
push ebx
call fcn.0040349d
push 0xfffffffffffffffa
pop ebx
mov eax, dword [ebp - 0x504]
add eax, 0xfffffff0
call fcn.0040252d
mov eax, dword [ebp - 0x4f8]
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.00410727
leave
ret 0xc