Function at 0x4180a0
Capabilities:
Connect socket
Initialize winsock library
Receive data
Receive data on socket
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10d4
call fcn.00425320
mov eax, dword [0x44b5a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov eax, dword [ebp + 8]
mov edi, ecx
mov ecx, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x10c4], ecx
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x10bc], ecx
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x10c0], ecx
lea ecx, [ebp - 0x10d4]
push ecx
push 0x400
lea ecx, [ebp - 0xf18]
push ecx
push 0x100
lea ecx, [ebp - 0x318]
push ecx
push 0x14
lea ecx, [ebp - 0x18]
push ecx
push eax
mov ecx, edi
call fcn.00417fb0
lea eax, [ebp - 0x18]
push str.HTTP
push eax
call fcn.00424ce0
pop ecx
pop ecx
test eax, eax
je 0x418125
xor eax, eax
inc eax
jmp 0x418507
lea eax, [ebp - 0x10b8]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x41811d
push esi
push eax
inc eax
push eax
push 2
pop eax
push eax
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x418195
push 2
pop eax
push dword [ebp - 0x10d4]
mov word [ebp - 0xf28], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0xf26], ax
lea eax, [ebp - 0x318]
push eax
mov ecx, edi
call fcn.00417ee7
mov dword [ebp - 0xf24], eax
push 0x10
lea eax, [ebp - 0xf28]
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x41819d
xor eax, eax
inc eax
jmp 0x418506
cmp byte [ebp - 0xf18], 0
jne 0x4181bd
push 0x400
push 0x43e5e8
lea eax, [ebp - 0xf18]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov ecx, edi
test ebx, ebx
jne 0x4181d5
push str.GET
push esi
call fcn.004185d1
push str.GET
jmp 0x4181e5
push str.POST
push esi
call fcn.004185d1
push str.POST
lea eax, [ebp - 0xb18]
push eax
call fcn.00424be0
pop ecx
pop ecx
lea eax, [ebp - 0xf18]
push eax
push esi
mov ecx, edi
call fcn.004185d1
lea eax, [ebp - 0xf18]
push eax
lea eax, [ebp - 0xb18]
push eax
call fcn.00424bf0
pop ecx
pop ecx
push str._HTTP_1.0_r_n
push esi
mov ecx, edi
call fcn.004185d1
lea eax, [ebp - 0xb18]
push str._HTTP_1.0_r_n
push eax
call fcn.00424bf0
pop ecx
pop ecx
push str.Accept:_image_gif__image_x_xbitmap__image_jpeg__image_pjpeg__application_vnd.ms_excel__application_msword__application_vnd.ms_powerpoint____r_n
push esi
mov ecx, edi
call fcn.004185d1
lea eax, [ebp - 0xb18]
push str.Accept:_image_gif__image_x_xbitmap__image_jpeg__image_pjpeg__application_vnd.ms_excel__application_msword__application_vnd.ms_powerpoint____r_n
push eax
call fcn.00424bf0
pop ecx
pop ecx
push str.Accept_Language:_en_us_r_n
push esi
mov ecx, edi
call fcn.004185d1
lea eax, [ebp - 0xb18]
push str.Accept_Language:_en_us_r_n
push eax
call fcn.00424bf0
cmp dword [ebp + 0x1c], 0
pop ecx
pop ecx
je 0x41829d
push str.Accept_Encoding:_gzip__deflate_r_n
push esi
mov ecx, edi
call fcn.004185d1
lea eax, [ebp - 0xb18]
push str.Accept_Encoding:_gzip__deflate_r_n
push eax
call fcn.00424bf0
pop ecx
pop ecx
push str.User_Agent:_Mozilla_4.0_r_n
push esi
mov ecx, edi
call fcn.004185d1
lea eax, [ebp - 0xb18]
push str.User_Agent:_Mozilla_4.0_r_n
push eax
call fcn.00424bf0
mov eax, dword [ebp - 0x10bc]
pop ecx
pop ecx
test eax, eax
je 0x418300
push eax
lea eax, [ebp - 0x218]
push str.Content_Length:__ld_r_n
push eax
call fcn.0042527d
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push esi
mov ecx, edi
call fcn.004185d1
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0xb18]
push eax
call fcn.00424bf0
pop ecx
pop ecx
push str.Host:
push esi
mov ecx, edi
call fcn.004185d1
lea eax, [ebp - 0xb18]
push str.Host:
push eax
call fcn.00424bf0
pop ecx
pop ecx
lea eax, [ebp - 0x318]
push eax
push esi
mov ecx, edi
call fcn.004185d1
lea eax, [ebp - 0x318]
push eax
lea eax, [ebp - 0xb18]
push eax
call fcn.00424bf0
pop ecx
pop ecx
push 0x43e714
push esi
mov ecx, edi
call fcn.004185d1
lea eax, [ebp - 0xb18]
push 0x43e714
push eax
call fcn.00424bf0
mov eax, dword [ebp - 0x10c4]
pop ecx
cmp byte [eax], 0
pop ecx
je 0x41838d
push eax
push esi
mov ecx, edi
call fcn.004185d1
mov ecx, dword [ebp - 0x10c4]
push ecx
lea eax, [ebp - 0xb18]
push eax
call fcn.00424bf0
pop ecx
pop ecx
push 0x43e714
push esi
mov ecx, edi
call fcn.004185d1
lea eax, [ebp - 0xb18]
push 0x43e714
push eax
call fcn.00424bf0
mov eax, dword [ebp - 0x10bc]
pop ecx
pop ecx
test eax, eax
je 0x4183df
test ebx, ebx
je 0x4183df
push 0
push eax
push ebx
push esi
call dword [sym.imp.WS2_32.dll_send]
mov ecx, dword [ebp - 0x10bc]
lea eax, [ebp - 0xb18]
push ebx
push eax
mov byte [ecx + ebx], 0
call fcn.00424bf0
pop ecx
pop ecx
lea eax, [ebp - 0xb18]
push eax
call fcn.004238d0
inc eax
push eax
call fcn.00425140
mov ecx, dword [ebp - 0x10c0]
mov dword [ecx], eax
lea ecx, [ebp - 0xb18]
push ecx
push eax
call fcn.00424be0
add esp, 0x10
lea eax, [ebp - 0x10d0]
push eax
mov ecx, edi
call fcn.00417f66
xor ebx, ebx
and dword [ebp - 0x10bc], ebx
push 0
push 1
lea eax, [ebp - 0x218]
push eax
push esi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
push 1
pop eax
cmovs ebx, eax
cmp byte [ebp - 0x218], 0xa
je 0x418454
cmp byte [ebp - 0x218], 0xd
je 0x418465
inc dword [ebp - 0x10bc]
jmp 0x418465
cmp dword [ebp - 0x10bc], 0
cmove ebx, eax
and dword [ebp - 0x10bc], 0
push dword [ebp - 0x218]
lea eax, [ebp - 0x10d0]
push eax
mov ecx, edi
call fcn.00417f3f
test ebx, ebx
je 0x418420
mov eax, dword [ebp - 0x10d0]
mov ecx, dword [ebp - 0x10c0]
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0x10cc]
mov ecx, edi
mov byte [eax], 0
lea eax, [ebp - 0x10d0]
push eax
call fcn.00417f66
push 0
push 0x1ff
lea eax, [ebp - 0x218]
push eax
push esi
call dword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
test ebx, ebx
js 0x4184e0
push ebx
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x10d0]
push ecx
mov ecx, edi
mov byte [ebp + ebx - 0x218], 0
call fcn.00417f02
test ebx, ebx
jg 0x4184a3
mov ecx, dword [ebp - 0x10cc]
mov eax, dword [ebp - 0x10d0]
mov edx, dword [ebp - 0x10c0]
mov byte [ecx], 0
sub ecx, eax
push esi
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00423fbd
leave
ret 0x18