Function at 0x401cd0
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
Set socket configuration

Disassembly:
push 0xffffffffffffffff
push 0x52abd0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x9b0
push ebx
push ebp
push esi
push edi
mov esi, ecx
lea eax, [esp + 0x830]
mov dword [esp + 0x9c8], 1
push eax
push 0x202
call dword [sym.imp.WSOCK32.dll_WSAStartup]
test eax, eax
jne 0x401e93
push eax
push 1
push 2
call dword [sym.imp.WSOCK32.dll_socket]
mov ebx, eax
test ebx, ebx
jge 0x401d71
mov ecx, dword [esp + 0x9d8]
push 0x56e518
call fcn.00510d80
call dword [sym.imp.WSOCK32.dll_WSACleanup]
lea ecx, [esp + 0x9d0]
mov byte [esp + 0x9c8], 0
call fcn.00510bf7
lea ecx, [esp + 0x9d4]
mov dword [esp + 0x9c8], 0xffffffff
call fcn.00510bf7
xor eax, eax
jmp 0x401fef
mov eax, dword [esi + 0x10]
xor ecx, ecx
mov dword [esp + 0x10], ecx
push eax
mov dword [esp + 0x18], ecx
mov word [esp + 0x14], 2
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
call dword [sym.imp.WSOCK32.dll_inet_addr]
mov dx, word [esi + 4]
mov dword [esp + 0x14], eax
push edx
call dword [sym.imp.WSOCK32.dll_htons]
mov word [esp + 0x12], ax
lea eax, [esp + 0x10]
push 0x10
push eax
push ebx
call dword [sym.imp.WSOCK32.dll_connect]
test eax, eax
jge 0x401e03
mov ecx, dword [esp + 0x9d8]
push 0x56e504
call fcn.00510d80
call dword [sym.imp.WSOCK32.dll_WSACleanup]
lea ecx, [esp + 0x9d0]
mov byte [esp + 0x9c8], 0
call fcn.00510bf7
lea ecx, [esp + 0x9d4]
mov dword [esp + 0x9c8], 0xffffffff
call fcn.00510bf7
xor eax, eax
jmp 0x401fef
mov edx, dword [esp + 0x9d0]
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x30]
rep stosd dword es:[edi], eax
mov ecx, dword [esi + 0x10]
lea eax, [esp + 0x30]
push ecx
push edx
push 0x56e528
push eax
call fcn.00412aab
lea edi, [esp + 0x40]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
push 0
push ecx
lea ecx, [esp + 0x38]
push ecx
push ebx
call dword [sym.imp.WSOCK32.dll_send]
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x30]
push eax
rep stosd dword es:[edi], eax
lea edx, [esp + 0x34]
mov ecx, 0x100
lea edi, [esp + 0x434]
push 0x3ff
push edx
push ebx
rep stosd dword es:[edi], eax
call dword [sym.imp.WSOCK32.dll_recv]
mov ebp, eax
test ebp, ebp
mov byte [esp + ebp + 0x30], 0
jge 0x401ecb
mov ecx, dword [esp + 0x9d8]
push 0x56e478
call fcn.00510d80
call dword [sym.imp.WSOCK32.dll_WSACleanup]
lea ecx, [esp + 0x9d0]
mov byte [esp + 0x9c8], 0
call fcn.00510bf7
lea ecx, [esp + 0x9d4]
mov dword [esp + 0x9c8], 0xffffffff
call fcn.00510bf7
xor eax, eax
jmp 0x401fef
lea eax, [esp + 0x30]
push 0x56e470
push eax
call fcn.00412e90
mov esi, eax
add esp, 8
test esi, esi
je 0x401ef6
add esi, 4
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
jmp 0x401efa
lea esi, [esp + 0x30]
lea ecx, [esp + 0x30]
push 0x56e454
push ecx
call fcn.00412e90
add esp, 8
test eax, eax
je 0x401f7b
mov al, byte [esi]
xor edx, edx
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], edx
test al, al
mov dword [esp + 0x2c], edx
je 0x401f3f
lea ecx, [esp + 0x20]
cmp al, 0xd
je 0x401f3f
cmp al, 0xa
je 0x401f3f
mov byte [ecx], al
mov al, byte [esi + 1]
inc ecx
inc esi
test al, al
jne 0x401f2c
push 0x10
lea eax, [esp + 0x24]
push 0
push eax
call fcn.00412c4e
add esi, 2
mov ebp, eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ebp, ecx
jle 0x401f67
mov ebp, ecx
push ebp
lea ecx, [esp + 0x434]
push esi
push ecx
call fcn.00412b50
add esp, 0xc
jmp 0x401fa1
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x430]
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 + 0x430]
push ecx
mov ecx, dword [esp + 0x9dc]
call fcn.00510d80
push ebx
call dword [sym.imp.WSOCK32.dll_closesocket]
call dword [sym.imp.WSOCK32.dll_WSACleanup]
lea ecx, [esp + 0x9d0]
mov byte [esp + 0x9c8], 0
call fcn.00510bf7
lea ecx, [esp + 0x9d4]
mov dword [esp + 0x9c8], 0xffffffff
call fcn.00510bf7
mov eax, ebp
mov ecx, dword [esp + 0x9c0]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x9bc
ret 0xc