Function at 0x414410
Capabilities:
Check http status code
Connect to http server
Create http request
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Send data
Send http request
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xac4
mov eax, dword [0x45166c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0xab8], eax
mov eax, dword [eax]
push eax
mov esi, ecx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
je 0x41489b
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsURLA]
test eax, eax
je 0x41489b
push ebx
push edi
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
push str.Mozilla_4.0__Compatible__MSIE_6.0__
call dword [sym.imp.WININET.dll_InternetOpenA]
mov ecx, dword [esi]
mov dword [ebp - 0xaac], eax
lea eax, [ebp - 0x98c]
mov dword [ebp - 0x990], eax
push ecx
or eax, 0xffffffff
lea esi, [ebp - 0x990]
mov byte [ebp - 0x98c], bl
call fcn.00413e70
mov dword [ebp - 0xab4], 4
mov byte [ebp - 0xaa1], 1
mov byte [ebp - 0xaa2], bl
jmp 0x4144b2
xor ebx, ebx
lea ecx, [ebp - 0x9d0]
lea edx, [ebp - 0xa58]
mov byte [ebp - 0xa58], bl
lea eax, [ebp - 0xa14]
mov byte [ebp - 0xa14], bl
mov dword [ebp - 0x9d4], ecx
mov byte [ebp - 0x9d0], bl
lea ecx, [ebp - 0xa5c]
lea ebx, [ebp - 0x990]
mov dword [ebp - 0xa5c], edx
mov dword [ebp - 0xa18], eax
call fcn.004148b0
mov edx, dword [ebp - 0xa18]
mov esi, dword [ebp - 0xa5c]
push edx
call fcn.00423cce
add esp, 4
push 0
push 0
push 3
push 0
movzx eax, ax
push 0
push eax
mov eax, dword [ebp - 0xaac]
push esi
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
mov ecx, dword [ebp - 0x9d4]
push 0
push 0x200000
push 0
push 0
push 0
push ecx
push 0x447090
push eax
mov dword [ebp - 0xab0], eax
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
push 0
push 0
push 0
mov ebx, eax
push 0
push ebx
call dword [sym.imp.WININET.dll_HttpSendRequestA]
mov esi, dword [sym.imp.WININET.dll_HttpQueryInfoA]
push 0
lea edx, [ebp - 0xab4]
push edx
lea eax, [ebp - 0xac0]
push eax
push 0x20000013
push ebx
mov dword [ebp - 0xabc], 0x400
call esi
mov eax, dword [ebp - 0xac0]
cmp eax, 0x12e
jne 0x4146f1
push 0x400
lea ecx, [ebp - 0x508]
push 0
push ecx
call fcn.0042cae0
add esp, 0xc
push 0
lea edx, [ebp - 0xabc]
push edx
lea eax, [ebp - 0x508]
push eax
push 0x16
push ebx
call esi
lea edi, [ebp - 0x948]
lea ecx, [ebp - 0x508]
mov dword [ebp - 0x94c], edi
mov byte [ebp - 0x948], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4145e1
sub ecx, edx
mov esi, ecx
cmp esi, 0x3f
jl 0x414611
lea ecx, [esi + 1]
push ecx
push 0
mov dword [ebp - 0x94c], 0
call fcn.00424f55
mov edi, eax
add esp, 8
mov dword [ebp - 0x94c], edi
push esi
lea edx, [ebp - 0x508]
push edx
push edi
call fcn.00424ca5
mov eax, dword [ebp - 0x94c]
mov byte [esi + eax], 0
mov ecx, dword [ebp - 0x94c]
push str.Location:
push ecx
call fcn.00424e7d
mov esi, dword [ebp - 0x94c]
add esp, 0x14
test eax, eax
jne 0x41464c
or eax, 0xffffffff
jmp 0x41464e
sub eax, esi
lea edi, [eax + 0xa]
test edi, edi
je 0x414672
js 0x41466d
mov eax, esi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x414660
sub eax, edx
cmp edi, eax
jle 0x414672
or eax, 0xffffffff
jmp 0x414692
lea eax, [esi + edi]
push 0x4480c0
push eax
call fcn.00424e7d
add esp, 8
test eax, eax
jne 0x41468c
or eax, 0xffffffff
jmp 0x414692
sub eax, dword [ebp - 0x94c]
sub eax, edi
lea ecx, [ebp - 0xaa0]
lea edx, [ebp - 0x94c]
call fcn.00413f90
mov edx, dword [eax]
push edx
or eax, 0xffffffff
lea esi, [ebp - 0x990]
call fcn.00413e70
mov eax, dword [ebp - 0xaa0]
lea ecx, [ebp - 0xa9c]
cmp eax, ecx
je 0x4146cf
push eax
call fcn.004244b1
add esp, 4
mov eax, dword [ebp - 0x94c]
lea edx, [ebp - 0x948]
cmp eax, edx
je 0x4147f2
push eax
call fcn.004244b1
add esp, 4
jmp 0x4147f2
cmp eax, 0xc8
jne 0x4147eb
mov eax, dword [ebp - 0x990]
push 0x2f
push eax
call fcn.00424f3e
add esp, 8
test eax, eax
jne 0x414716
or eax, 0xffffffff
jmp 0x41471c
sub eax, dword [ebp - 0x990]
lea edi, [eax + 1]
or eax, 0xffffffff
lea ecx, [ebp - 0xaa0]
lea edx, [ebp - 0x990]
call fcn.00413f90
mov ecx, dword [eax]
mov esi, dword [ebp - 0xab8]
mov edx, dword [esi]
push ecx
push edx
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
mov eax, dword [ebp - 0xaa0]
lea ecx, [ebp - 0xa9c]
cmp eax, ecx
je 0x414765
push eax
call fcn.004244b1
add esp, 4
lea edx, [ebp - 0x108]
push edx
or eax, 0xffffffff
call fcn.00413e70
mov eax, dword [esi]
push 0
push 0
push 2
push 0
push 3
push 0xc0000000
mov edi, 0x400
push eax
mov dword [ebp - 0xaa8], edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp dword [ebp - 0xaa8], edi
jne 0x4147dd
lea eax, [ebp - 0xaa8]
push eax
push edi
lea ecx, [ebp - 0x908]
push ecx
push ebx
call dword [sym.imp.WININET.dll_InternetReadFile]
mov eax, dword [ebp - 0xaa8]
push 0
lea edx, [ebp - 0xac4]
push edx
push eax
lea ecx, [ebp - 0x908]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp - 0xaa8], edi
je 0x4147a1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 0xaa2], 1
mov byte [ebp - 0xaa1], 0
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebx
call esi
mov edx, dword [ebp - 0xab0]
push edx
call esi
mov eax, dword [ebp - 0x9d4]
lea ecx, [ebp - 0x9d0]
cmp eax, ecx
je 0x41481d
push eax
call fcn.004244b1
add esp, 4
mov eax, dword [ebp - 0xa18]
lea edx, [ebp - 0xa14]
cmp eax, edx
je 0x414836
push eax
call fcn.004244b1
add esp, 4
mov eax, dword [ebp - 0xa5c]
lea ecx, [ebp - 0xa58]
cmp eax, ecx
je 0x41484f
push eax
call fcn.004244b1
add esp, 4
cmp byte [ebp - 0xaa1], 0
jne 0x4144b0
mov edx, dword [ebp - 0xaac]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 0x990]
lea ecx, [ebp - 0x98c]
pop edi
pop ebx
cmp eax, ecx
je 0x414884
push eax
call fcn.004244b1
add esp, 4
mov al, byte [ebp - 0xaa2]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042396b
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor al, al
pop esi
call fcn.0042396b
mov esp, ebp
pop ebp
ret 4