Function at 0x402460
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 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x40c8e8
push eax
mov eax, 0xd2d0
mov dword fs:[0], esp
call fcn.00405a70
push ebx
push ebp
push esi
push edi
mov ebx, ecx
lea eax, [esp + 0x10]
lea ecx, [esp + 0x550]
push eax
push 0x400
push ecx
lea edx, [esp + 0x45c]
push 0x100
push edx
lea eax, [esp + 0x50]
push 0x14
push eax
lea edx, [esp + 0xd30c]
sub esp, 0x10
mov dword [esp + 0xd314], 0
mov ecx, esp
mov dword [esp + 0x3c], esp
push edx
call fcn.00402be0
mov ecx, ebx
call fcn.00402320
mov edi, str.HTTP
lea esi, [esp + 0x3c]
mov cl, byte [esi]
mov dl, byte [edi]
mov al, cl
cmp cl, dl
jne 0x402504
test al, al
je 0x402500
mov dl, byte [esi + 1]
mov cl, byte [edi + 1]
mov al, dl
cmp dl, cl
jne 0x402504
add esi, 2
add edi, 2
test al, al
jne 0x4024dc
xor eax, eax
jmp 0x402509
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40253e
mov ecx, dword [esp + 0xd2f4]
test ecx, ecx
je 0x4025d2
mov al, byte [ecx - 1]
test al, al
je 0x4025c8
cmp al, 0xff
je 0x4025c8
dec al
mov byte [ecx - 1], al
mov eax, 1
jmp 0x402b21
lea eax, [esp + 0x950]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x40250d
push eax
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x4025a3
mov ecx, dword [esp + 0x10]
mov word [esp + 0x2c], 2
push ecx
call dword [sym.imp.WS2_32.dll_htons]
lea edx, [esp + 0x450]
mov ecx, ebx
push edx
mov word [esp + 0x32], ax
call fcn.00402280
mov dword [esp + 0x30], eax
lea eax, [esp + 0x2c]
push 0x10
push eax
push ebp
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x4025dc
mov ecx, dword [esp + 0xd2f4]
test ecx, ecx
je 0x4025d2
mov al, byte [ecx - 1]
test al, al
je 0x4025c8
cmp al, 0xff
je 0x4025c8
dec al
mov byte [ecx - 1], al
mov eax, 1
jmp 0x402b21
dec ecx
push ecx
call fcn.00404ea1
add esp, 4
mov eax, 1
jmp 0x402b21
mov al, byte [esp + 0x550]
test al, al
jne 0x4025ff
push 0x400
lea ecx, [esp + 0x554]
push 0x40f5a4
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov eax, dword [esp + 0xd304]
test eax, eax
jne 0x402622
push str.GET
push ebp
mov ecx, ebx
call fcn.004022a0
lea edx, [esp + 0x50]
mov edi, str.GET
jmp 0x402638
push str.POST
push ebp
mov ecx, ebx
call fcn.004022a0
lea edx, [esp + 0x50]
mov edi, str.POST
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x550]
push ecx
push ebp
mov ecx, ebx
call fcn.004022a0
lea edi, [esp + 0x550]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x50]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str._HTTP_1.0_r_n
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, ebx
call fcn.004022a0
mov edi, str._HTTP_1.0_r_n
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x50]
repne scasb al, byte es:[edi]
not ecx
sub edi, 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
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, ebx
call fcn.004022a0
mov edi, str.Accept:_image_gif__image_x_xbitmap__image_jpeg__image_pjpeg__application_vnd.ms_excel__application_msword__application_vnd.ms_powerpoint____r_n
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x50]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
push str.Accept_Language:_en_us_r_n
rep movsb byte es:[edi], byte [esi]
push ebp
mov ecx, ebx
call fcn.004022a0
mov edi, str.Accept_Language:_en_us_r_n
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x50]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.Accept_Encoding:_gzip__default_r_n
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, ebx
call fcn.004022a0
mov edi, str.Accept_Encoding:_gzip__default_r_n
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x50]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.User_Agent:_Neeao_4.0_r_n
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, ebx
call fcn.004022a0
mov edi, str.User_Agent:_Neeao_4.0_r_n
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x50]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0xd308]
mov ecx, edx
and ecx, 3
test eax, eax
rep movsb byte es:[edi], byte [esi]
je 0x40281d
push eax
lea eax, [esp + 0xae4]
push str.Content_Length:__ld_r_n
push eax
call fcn.00405b8e
add esp, 0xc
lea ecx, [esp + 0xae0]
push ecx
push ebp
mov ecx, ebx
call fcn.004022a0
lea edi, [esp + 0xae0]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x50]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push str.Host:
push ebp
mov ecx, ebx
call fcn.004022a0
mov edi, str.Host:
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x50]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x450]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push ebp
mov ecx, ebx
call fcn.004022a0
lea edi, [esp + 0x450]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x50]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x40f47c
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, ebx
call fcn.004022a0
mov edi, 0x40f47c
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x50]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0xd300]
test edi, edi
je 0x402915
cmp byte [edi], 0
je 0x402915
push edi
push ebp
mov ecx, ebx
call fcn.004022a0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x50]
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0x40f47c
push ebp
mov ecx, ebx
call fcn.004022a0
mov edi, 0x40f47c
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x50]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0xd304]
test edi, edi
je 0x40299d
mov esi, dword [esp + 0xd308]
test esi, esi
je 0x40299d
push eax
push esi
push edi
push ebp
call dword [sym.imp.WS2_32.dll_send]
or ecx, 0xffffffff
xor eax, eax
mov byte [edi + esi], 0
lea edx, [esp + 0x50]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x50]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
shl ecx, 2
push ecx
call fcn.00405c3f
mov edx, eax
mov eax, dword [esp + 0xd310]
lea edi, [esp + 0x54]
or ecx, 0xffffffff
mov dword [eax], edx
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x20]
push ecx
mov ecx, ebx
call fcn.004021a0
xor edi, edi
xor esi, esi
push 0
lea edx, [esp + 0xae4]
push 1
push edx
push ebp
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jge 0x402a0f
mov esi, 1
mov eax, dword [esp + 0xae0]
cmp al, 0xa
je 0x402a21
cmp al, 0xd
je 0x402a2c
inc edi
jmp 0x402a2c
test edi, edi
jne 0x402a2a
mov esi, 1
xor edi, edi
push eax
lea eax, [esp + 0x24]
push eax
mov ecx, ebx
call fcn.004021f0
test esi, esi
je 0x4029f3
mov edi, dword [esp + 0xd30c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x14]
mov dword [edi + 4], ecx
push eax
mov ecx, ebx
mov byte [edx], 0
call fcn.004021a0
push 0
lea ecx, [esp + 0xae4]
push 0xc7ff
push ecx
push ebp
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
test esi, esi
jl 0x402ab7
lea edx, [esp + 0xae0]
push esi
lea eax, [esp + 0x18]
push edx
push eax
mov ecx, ebx
mov byte [esp + esi + 0xaec], 0
call fcn.00402220
test esi, esi
jle 0x402ab7
push 0
lea ecx, [esp + 0xae4]
push 0xc7ff
push ecx
push ebp
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
test esi, esi
jge 0x402a7a
mov edx, dword [esp + 0x18]
push ebp
mov byte [edx], 0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov dword [edi + 8], eax
sub ecx, eax
lea edx, [ebx + 4]
mov dword [edi + 0xc], ecx
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [esp + 0xd2f4]
test eax, eax
je 0x402b1f
mov cl, byte [eax - 1]
test cl, cl
je 0x402b15
cmp cl, 0xff
je 0x402b15
dec cl
mov byte [eax - 1], cl
jmp 0x402b1f
dec eax
push eax
call fcn.00404ea1
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0xd2e0]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xd2dc
ret 0x20