Function at 0x4138c8
Capabilities:
Receive data
Receive data on socket
Resolve dns
Send data
Send data on socket
Send http request
Send http request with host header
Set socket configuration

Disassembly:
mov eax, 0x43ef3b
call fcn.0042eda4
sub esp, 0x4dc
mov eax, dword [0x456d70]
push ebx
push esi
push edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], esp
xor ebx, ebx
mov dword [ebp - 4], ebx
xor edi, edi
push 6
inc edi
push edi
push 2
mov dword [ebp - 0x448], edi
mov byte [ebp - 4], 4
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [ebp - 0x444], eax
jne 0x413923
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.s_failed_with_error:__ld_n
call fcn.0042ffed
pop ecx
pop ecx
jmp 0x413960
push 4
push 0x459998
push 0x80
push 0xffff
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
mov esi, 0x442e07
push esi
lea ecx, [ebp + 0x48]
call fcn.00409823
cmp eax, ebx
jne 0x413967
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_gethostbyname]
cmp eax, ebx
mov dword [ebp - 0x44c], eax
jne 0x413967
mov esi, edi
jmp 0x413c7b
push esi
lea ecx, [ebp + 0x64]
mov word [ebp - 0x40], 2
call fcn.00409823
cmp eax, ebx
je 0x413990
cmp dword [ebp + 0x7c], 0x10
mov eax, dword [ebp + 0x68]
jae 0x413986
lea eax, [ebp + 0x68]
push eax
call fcn.0042f5ef
pop ecx
push eax
jmp 0x413992
push 0x50
call dword [sym.imp.WS2_32.dll_htons]
push esi
lea ecx, [ebp + 0x64]
mov word [ebp - 0x3e], ax
call fcn.00409823
cmp eax, ebx
je 0x4139be
cmp dword [ebp + 0x60], 0x10
mov eax, dword [ebp + 0x4c]
jae 0x4139b5
lea eax, [ebp + 0x4c]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
jmp 0x4139cb
mov eax, dword [ebp - 0x44c]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
push 8
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x38]
push ebx
push eax
call fcn.0042d760
add esp, 0xc
push 0x45a1f0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [ebp - 0x44c], eax
je 0x413960
push 0x4433f8
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x413960
push 0x10
lea ecx, [ebp - 0x40]
push ecx
push dword [ebp - 0x444]
call eax
add esp, 0xc
cmp eax, 0xffffffff
je 0x413960
push ebx
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x18], 0xf
call fcn.00406f49
push str.GET__
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 5
call fcn.0040d325
push 0xffffffffffffffff
push ebx
lea eax, [ebp + 0x10]
push eax
lea ecx, [ebp - 0x30]
call fcn.0040ba68
push str._HTTP_1.1_n
lea ecx, [ebp - 0x30]
call fcn.0040ce51
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x413a6d
lea eax, [ebp - 0x2c]
mov esi, dword [sym.imp.WS2_32.dll_send]
push ebx
push dword [ebp - 0x1c]
push eax
push dword [ebp - 0x444]
call esi
push str.Host:
lea ecx, [ebp - 0x30]
call fcn.0040d325
push dword [ebp + 8]
lea ecx, [ebp - 0x30]
call fcn.0040ce51
mov edi, 0x444118
push edi
lea ecx, [ebp - 0x30]
call fcn.0040ce51
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x413ab2
lea eax, [ebp - 0x2c]
push ebx
push dword [ebp - 0x1c]
push eax
push dword [ebp - 0x444]
call esi
push str.User_Agent:_Mozilla_4.0__compatible__MSIE_7.0__MSIE_6.0__Windows_NT_5.1__.NET_CLR_2.0.50727__n
lea ecx, [ebp - 0x30]
call fcn.0040d325
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x413ad8
lea eax, [ebp - 0x2c]
push ebx
push dword [ebp - 0x1c]
push eax
push dword [ebp - 0x444]
call esi
push edi
lea ecx, [ebp - 0x30]
call fcn.0040d325
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x413afa
lea eax, [ebp - 0x2c]
push ebx
push dword [ebp - 0x1c]
push eax
push dword [ebp - 0x444]
call esi
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x30]
call fcn.00409a0d
xor edi, edi
inc edi
cmp dword [ebp + 0xc], edi
mov dword [ebp - 0x448], ebx
jne 0x413c38
mov esi, 0x400
push esi
lea eax, [ebp - 0x440]
push ebx
push eax
call fcn.0042d760
add esp, 0xc
push ebx
push esi
lea eax, [ebp - 0x440]
push eax
push dword [ebp - 0x444]
call dword [sym.imp.WS2_32.dll_recv]
push 0x4440b4
mov ecx, 0x45db00
call fcn.00409823
cmp eax, ebx
jne 0x413b7e
lea eax, [ebp - 0x440]
push eax
mov ecx, 0x45db00
call fcn.0040d325
mov dword [ebp - 0x448], ebx
jmp 0x413c38
cmp dword [ebp + 0x44], 0x10
mov eax, dword [ebp + 0x30]
push edi
jae 0x413b8b
lea eax, [ebp + 0x30]
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x454], esp
push eax
push ecx
call fcn.0041048f
pop ecx
pop ecx
sub esp, 0x1c
lea eax, [ebp - 0x440]
mov ecx, esp
mov dword [ebp - 0x450], esp
push eax
mov byte [ebp - 4], 6
call fcn.0040d800
mov byte [ebp - 4], 5
call fcn.0040b59e
add esp, 0x3c
cmp eax, ebx
jbe 0x413c32
push edi
push 0x1b6
push 2
push 0x45d3b8
lea ecx, [ebp - 0x4e8]
call fcn.00413315
lea eax, [ebp - 0x440]
push eax
lea eax, [ebp - 0x4e8]
push eax
mov byte [ebp - 4], 7
call fcn.0040bf56
pop ecx
pop ecx
lea ecx, [ebp - 0x4e8]
call fcn.00410974
lea ecx, [ebp - 0x488]
mov dword [ebp - 0x448], ebx
mov byte [ebp - 4], 5
call fcn.004133b5
lea ecx, [ebp - 0x488]
mov dword [ebp - 0x488], 0x442e98
call fcn.0041c559
jmp 0x413c38
mov dword [ebp - 0x448], edi
push ebx
push edi
lea ecx, [ebp - 0x30]
call fcn.00409968
lea eax, [ebp - 0x444]
push eax
call fcn.00405fb0
push ebx
lea eax, [ebp - 0x40]
push ebx
push eax
call fcn.0042d760
add esp, 0x10
push dword [ebp - 0x44c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x413c72
mov esi, dword [ebp - 0x448]
xor edi, edi
inc edi
push ebx
push edi
lea ecx, [ebp + 0x10]
call fcn.00409968
push ebx
push edi
lea ecx, [ebp + 0x2c]
call fcn.00409968
push ebx
push edi
lea ecx, [ebp + 0x48]
call fcn.00409968
push ebx
push edi
lea ecx, [ebp + 0x64]
call fcn.00409968
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
mov eax, esi
call fcn.0042d7f1
pop edi
pop esi
pop ebx
leave
ret