Function at 0x4131e0
Capabilities:
Connect to http server
Create http request
Download and write a file
Parse url
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
mov eax, 0x1154
call fcn.00463b50
mov eax, dword [0x4ae23c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor ebx, ebx
push 0xfff
lea eax, [ebp - 0x1103]
push ebx
push eax
mov dword [ebp - 0x110c], ebx
mov byte [ebp - 0x1104], bl
call fcn.00462010
push 0x38
lea ecx, [ebp - 0x1150]
push ebx
push ecx
mov dword [ebp - 0x1114], 0x497bf8
mov dword [ebp - 0x1110], ebx
call fcn.00462010
mov eax, dword [ebp + 0xc]
mov edi, 0x10
add esp, 0x18
lea edx, [ebp - 0x104]
mov dword [ebp - 0x1154], 0x3c
mov dword [ebp - 0x1144], edx
mov dword [ebp - 0x1140], 0xff
mov dword [ebp - 0x1124], 1
cmp dword [ebp + 0x20], edi
jae 0x413279
lea eax, [ebp + 0xc]
mov edx, dword [ebp + 0x1c]
lea ecx, [ebp - 0x1154]
push ecx
push ebx
push edx
push eax
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
test eax, eax
jne 0x4132b4
cmp dword [ebp + 0x20], edi
jb 0x4132a1
mov eax, dword [ebp + 0xc]
push eax
call fcn.00460f43
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004615db
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x14], edi
jb 0x4132bd
mov eax, dword [esi]
jmp 0x4132bf
mov eax, esi
push ebx
push 0x80
push 2
push ebx
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x413302
cmp dword [ebp + 0x20], 0x10
jb 0x4132a1
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00460f43
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004615db
mov esp, ebp
pop ebp
ret
push ebx
push ebx
push ebx
push 1
push 0x497784
call dword [sym.imp.WININET.dll_InternetOpenA]
mov esi, eax
mov dword [ebp - 0x1108], esi
cmp esi, ebx
jne 0x41334e
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0x20], 0x10
jb 0x4132a1
mov edx, dword [ebp + 0xc]
push edx
call fcn.00460f43
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004615db
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x113c]
push 1
push ebx
push 3
push 0x497784
push 0x497784
push eax
lea ecx, [ebp - 0x104]
push ecx
push esi
call dword [sym.imp.WININET.dll_InternetConnectA]
mov ebx, eax
test ebx, ebx
jne 0x4133a1
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp + 0xc]
call fcn.00402690
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004615db
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x1128]
push 1
push 0x84480000
lea edx, [ebp - 0x1114]
push edx
push 0
push str.HTTP_1.1
push eax
push 0x497be8
push ebx
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov esi, eax
test esi, esi
jne 0x4133e3
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebx
call esi
mov ecx, dword [ebp - 0x1108]
push ecx
call esi
jmp 0x41337f
push 0
push 0
push 0
push 0
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
jne 0x413410
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push ebx
call esi
mov edx, dword [ebp - 0x1108]
push edx
call esi
jmp 0x41337f
lea eax, [ebp - 0x110c]
push eax
push 0x1000
lea ecx, [ebp - 0x1104]
push ecx
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x413470
mov edi, edi
mov eax, dword [ebp - 0x110c]
test eax, eax
je 0x413470
push 0
lea edx, [ebp - 0x1118]
push edx
push eax
lea eax, [ebp - 0x1104]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [ebp - 0x110c]
push ecx
push 0x1000
lea edx, [ebp - 0x1104]
push edx
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x413430
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push ebx
call esi
mov eax, dword [ebp - 0x1108]
push eax
call esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp + 0xc]
call fcn.00402690
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.004615db
mov esp, ebp
pop ebp
ret