Function at 0x4038b0
Capabilities:
Connect socket
Initialize winsock library
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:
push 0xffffffffffffffff
push 0x43635f
mov eax, dword fs:[0]
push eax
mov eax, 0xcf14
call fcn.00424df0
mov eax, dword [0x446650]
xor eax, esp
mov dword [esp + 0xcf10], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x446650]
xor eax, esp
push eax
lea eax, [esp + 0xcf28]
mov dword fs:[0], eax
mov eax, dword [esp + 0xcf58]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x34], edx
xor ebp, ebp
mov dword [esp + 0xcf30], ebp
push ebp
mov ebx, 0xf
push 0x43cba8
lea ecx, [esp + 0x58]
mov dword [esp + 0x70], ebx
mov dword [esp + 0x6c], ebp
mov byte [esp + 0x5c], 0
call fcn.00404690
push 0x400
push 0x100
lea eax, [esp + 0x22c]
push eax
push 0x14
lea ecx, [esp + 0x220]
push ecx
sub esp, 0x1c
mov ecx, esp
mov byte [esp + 0xcf60], 1
mov dword [esp + 0x54], esp
push 0xffffffffffffffff
push ebp
lea edx, [esp + 0xcf74]
mov dword [ecx + 0x18], ebx
mov dword [ecx + 0x14], ebp
push edx
lea esi, [esp + 0x60]
lea edi, [esp + 0x360]
mov byte [ecx + 4], 0
call fcn.00404430
mov edx, esi
mov ecx, edi
call fcn.00403610
mov edi, str.HTTP
lea esi, [esp + 0x210]
mov ecx, 5
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x4039f8
mov byte [esp + 0xcf30], al
mov esi, 0x10
cmp dword [esp + 0x68], esi
jb 0x4039bd
mov ecx, dword [esp + 0x54]
push ecx
call fcn.004052d3
add esp, 4
mov dword [esp + 0xcf30], 0xffffffff
cmp dword [esp + 0xcf54], esi
mov byte [esp + 0x54], 0
mov dword [esp + 0x64], ebp
mov dword [esp + 0x68], ebx
jb 0x4039ee
mov edx, dword [esp + 0xcf40]
push edx
call fcn.004052d3
add esp, 4
mov eax, 1
jmp 0x404016
lea eax, [esp + 0x7c]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
cmp eax, ebp
je 0x403a16
mov byte [esp + 0xcf30], 0
jmp 0x4039a5
push ebp
push 1
push 2
mov dword [esp + 0x58], 0x7d1
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
push 4
lea eax, [esp + 0x50]
push eax
push 0x1006
push 0xffff
push esi
mov dword [esp + 0x4c], esi
call dword [sym.imp.WS2_32.dll_setsockopt]
or edi, 0xffffffff
cmp esi, edi
jne 0x403a7a
mov esi, 0x10
mov byte [esp + 0xcf30], 0
cmp dword [esp + 0x68], esi
jb 0x403a6e
mov ecx, dword [esp + 0x54]
push ecx
call fcn.004052d3
add esp, 4
mov dword [esp + 0xcf30], edi
jmp 0x4039c8
mov eax, dword [esp + 0x24]
push eax
mov word [esp + 0x70], 2
call dword [sym.imp.WS2_32.dll_htons]
lea ecx, [esp + 0x224]
push ecx
mov word [esp + 0x72], ax
call dword [sym.imp.WS2_32.dll_gethostbyname]
cmp eax, ebp
jne 0x403aa7
xor eax, eax
jmp 0x403aae
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov eax, dword [eax]
mov dword [esp + 0x70], eax
push 0x10
lea eax, [esp + 0x70]
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x403af2
lea ecx, [esp + 0x50]
mov byte [esp + 0xcf30], 0
call fcn.00404300
lea ecx, [esp + 0xcf3c]
mov dword [esp + 0xcf30], edi
call fcn.00404300
mov eax, 1
jmp 0x404016
cmp byte [esp + 0x324], 0
jne 0x403b14
push 0x400
push 0x43c748
lea ecx, [esp + 0x32c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
cmp byte [esp + 0xcf38], 0
je 0x403b2a
lea edx, [esp + 0x50]
push edx
mov edx, str.POST
jmp 0x403b34
lea eax, [esp + 0x50]
push eax
mov edx, str.GET
call fcn.00404330
lea eax, [esp + 0x324]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x403b43
sub eax, edx
push eax
lea ecx, [esp + 0x328]
push ecx
lea eax, [esp + 0x58]
call fcn.004045a0
push 0xb
push str._HTTP_1.1_r_n
lea eax, [esp + 0x58]
call fcn.004045a0
push 0xc800
lea edx, [esp + 0x728]
push ebp
push edx
call fcn.00422f10
mov edi, dword [esp + 0xcf68]
add esp, 0xc
cmp edi, ebp
je 0x403bb7
push edi
push str.Content_Length:__ld_r_n
lea edx, [esp + 0x72c]
call fcn.00404ea0
add esp, 8
lea eax, [esp + 0x50]
push eax
lea edx, [esp + 0x728]
call fcn.00404330
push 6
push str.Host:
lea eax, [esp + 0x58]
call fcn.004045a0
lea eax, [esp + 0x224]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x403bd1
sub eax, edx
push eax
lea ecx, [esp + 0x228]
push ecx
lea eax, [esp + 0x58]
call fcn.004045a0
push 2
push 0x43c950
lea eax, [esp + 0x58]
call fcn.004045a0
mov edx, dword [esp + 0x2c]
cmp edx, ebp
je 0x403c15
cmp byte [edx], 0
je 0x403c15
lea eax, [esp + 0x50]
push eax
call fcn.00404330
push 2
push 0x43c950
lea eax, [esp + 0x58]
call fcn.004045a0
cmp dword [esp + 0x68], 0x10
mov edx, dword [esp + 0x54]
jae 0x403c34
lea edx, [esp + 0x54]
push esi
call fcn.004035e0
mov eax, dword [esp + 0x28]
cmp eax, ebp
je 0x403c5b
cmp edi, ebp
je 0x403c5b
push ebp
push edi
push eax
push esi
call dword [sym.imp.WS2_32.dll_send]
push esi
mov edx, str._r_n_r_n
call fcn.004035e0
lea esi, [esp + 0x40]
call fcn.00403550
push 0xc800
lea ecx, [esp + 0x728]
push ebp
push ecx
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
call fcn.00422f10
mov ebp, dword [esp + 0x54]
mov edi, dword [esp + 0x50]
mov ebx, dword [esp + 0x4c]
add esp, 0xc
mov eax, dword [esp + 0x38]
push 0
mov esi, 1
push esi
lea edx, [esp + 0x72c]
push edx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jg 0x403cb1
mov dword [esp + 0x1c], esi
mov al, byte [esp + 0x724]
cmp al, 0xa
je 0x403cc6
cmp al, 0xd
je 0x403cd9
add dword [esp + 0x18], esi
jmp 0x403cd9
cmp dword [esp + 0x18], 0
jne 0x403cd1
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], 0
mov esi, edi
sub esi, ebx
cmp esi, ebp
mov byte [esp + 0x20], al
jb 0x403cf6
add ebp, ebp
push ebp
push ebx
call fcn.0042180d
mov ebx, eax
add esp, 8
lea edi, [esi + ebx]
mov cl, byte [esp + 0x20]
mov byte [edi], cl
add edi, 1
cmp dword [esp + 0x1c], 0
je 0x403c8e
mov ebp, dword [esp + 0x34]
mov byte [edi], 0
push 0x43cba8
lea ecx, [esp + 0x40]
mov dword [ebp + 4], ebx
call fcn.004027b0
mov byte [esp + 0xcf30], 2
mov edx, dword [ebp + 4]
push edx
lea ecx, [esp + 0x40]
call fcn.00402ab0
push ecx
mov ecx, esp
mov dword [esp + 0x38], esp
push str.Content_Length
call fcn.004027b0
mov byte [esp + 0xcf34], 3
mov eax, dword [esp + 0x40]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x2c], esp
mov esi, esp
push eax
call fcn.00402c00
add eax, 0x10
mov dword [esi], eax
lea eax, [esp + 0x3c]
add esp, 4
push eax
mov byte [esp + 0xcf3c], 2
call fcn.00403270
add esp, 0xc
mov byte [esp + 0xcf30], 4
mov ecx, dword [esp + 0x30]
push 0x43cba8
xor edi, edi
push ecx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x24], 1
call fcn.00422632
add esp, 8
cmp eax, edi
setne al
test al, al
je 0x403dde
push ecx
lea edx, [esp + 0x34]
mov ecx, esp
mov dword [esp + 0x38], esp
push edx
call fcn.00402ca0
call fcn.00403780
add esp, 4
cmp eax, edi
je 0x403dde
mov eax, dword [esp + 0x30]
push eax
call fcn.00421e2f
add esp, 4
mov dword [esp + 0x24], eax
jmp 0x403de2
mov dword [esp + 0x1c], edi
lea esi, [esp + 0x40]
call fcn.00403550
mov dword [esp + 0x2c], edi
nop
mov ecx, dword [esp + 0x2c]
cmp ecx, dword [esp + 0x24]
jl 0x403e05
cmp dword [esp + 0x1c], 0
jne 0x403f7e
push 0xc800
lea edx, [esp + 0x728]
push 0
push edx
call fcn.00422f10
add esp, 0xc
cmp dword [esp + 0x1c], 0
je 0x403e44
mov ecx, dword [esp + 0x38]
push 0
push 0xc7ff
lea eax, [esp + 0x72c]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
jmp 0x403f56
push 0x43cba8
lea ecx, [esp + 0x2c]
call fcn.004027b0
mov byte [esp + 0xcf30], 5
xor esi, esi
push 0xc800
lea edx, [esp + 0x728]
push 0
push edx
call fcn.00422f10
mov ebx, dword [esp + 0x44]
mov edi, dword [sym.imp.WS2_32.dll_recv]
add esp, 0xc
push 0
push 1
lea eax, [esp + 0x72c]
push eax
push ebx
call edi
test eax, eax
jg 0x403e95
mov esi, 1
mov al, byte [esp + 0x724]
cmp al, 0xa
je 0x403ed1
cmp al, 0xd
je 0x403ecd
lea eax, [esp + 0x724]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x403eb0
sub eax, edx
push eax
lea ecx, [esp + 0x728]
push ecx
lea ecx, [esp + 0x30]
call fcn.004023a0
test esi, esi
je 0x403e5c
mov eax, dword [esp + 0x28]
push 0x10
lea edx, [esp + 0x38]
push edx
push eax
call fcn.0042205f
add esp, 0xc
push 0xc800
lea ecx, [esp + 0x728]
push 0
push ecx
mov esi, eax
call fcn.00422f10
add esp, 0xc
push 0
push esi
lea edx, [esp + 0x72c]
push edx
push ebx
call edi
push 0x65
mov esi, eax
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 2
lea eax, [esp + 0x20]
push eax
push ebx
mov byte [esp + 0x28], 0
mov word [esp + 0x29], 0
call edi
mov byte [esp + 0xcf30], 4
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403f56
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
jle 0x403f7e
add dword [esp + 0x2c], esi
lea ecx, [esp + 0x724]
mov byte [esp + esi + 0x724], 0
mov ebx, esi
push ecx
lea esi, [esp + 0x44]
call fcn.00403580
jmp 0x403df0
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x38]
mov byte [eax], 0
sub eax, ecx
push edx
mov dword [ebp + 8], ecx
mov dword [ebp + 0xc], eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov byte [esp + 0xcf30], 2
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403fc4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xcf30], 1
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403fec
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x50]
mov byte [esp + 0xcf30], 0
call fcn.00404300
lea ecx, [esp + 0xcf3c]
mov dword [esp + 0xcf30], 0xffffffff
call fcn.00404300
xor eax, eax
mov ecx, dword [esp + 0xcf28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xcf10]
xor ecx, esp
call fcn.00420cad
add esp, 0xcf20
ret 0x28