Function at 0x41e770
Capabilities:
Connect socket
Initialize winsock library
Receive data
Receive data on socket
Resolve dns
Resolve function by parsing pe exports
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
push 0xffffffffffffffff
push 0x41f4c9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x240
mov eax, dword [0x428108]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x260]
sub esp, 0x1c
mov esi, esp
xor ebx, ebx
mov dword [esp + 0x268], eax
mov ebp, 0xf
mov eax, edi
mov dword [esi + 0x18], ebp
mov dword [esi + 0x14], ebx
mov dword [esp + 0x34], esp
mov byte [esi + 4], bl
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x41e7c0
sub eax, ecx
push eax
push edi
mov ecx, esi
call fcn.004024ea
lea eax, [esp + 0x48]
push eax
call fcn.0041e4e0
add esp, 0x20
mov ecx, dword [esp + 0x30]
push 0xffffffffffffffff
push ebx
push ecx
lea ecx, [esp + 0x80]
mov dword [esp + 0x264], ebx
mov dword [esp + 0x98], ebp
mov dword [esp + 0x94], ebx
mov byte [esp + 0x84], bl
call fcn.0040258d
mov eax, dword [esp + 0x30]
push 0xffffffffffffffff
add eax, 0x1c
push ebx
push eax
lea ecx, [esp + 0x9c]
mov byte [esp + 0x264], 1
mov dword [esp + 0xb4], ebp
mov dword [esp + 0xb0], ebx
mov byte [esp + 0xa0], bl
call fcn.0040258d
push 0x22
push str.GET__verb__HTTP_1.0_nHost:__host__n_n
lea ecx, [esp + 0x60]
mov byte [esp + 0x260], 2
mov dword [esp + 0x78], ebp
mov dword [esp + 0x74], ebx
mov byte [esp + 0x64], bl
call fcn.004024ea
push 0xffffffffffffffff
push 0xffffffffffffffff
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x3c], esp
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0xbc]
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
push edx
mov byte [esp + 0x288], 3
mov byte [ecx + 4], bl
call fcn.0040258d
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x68], esp
push 6
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
push str._verb_
mov byte [esp + 0x2a0], 4
mov byte [ecx + 4], bl
call fcn.004024ea
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x80], esp
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0xbc]
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
push eax
mov byte [esp + 0x2c0], 5
mov byte [ecx + 4], bl
call fcn.0040258d
mov byte [esp + 0x2b4], 3
lea ecx, [esp + 0x98]
push ecx
call fcn.0041e250
add esp, 0x60
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x64]
mov byte [esp + 0x264], 6
call fcn.0040258d
mov eax, dword [esp + 0x54]
mov esi, 0x10
cmp eax, esi
mov byte [esp + 0x258], 3
jb 0x41e937
mov edx, dword [esp + 0x40]
push edx
call fcn.00415f5a
add esp, 4
push 0xffffffffffffffff
push 0xffffffffffffffff
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x3c], esp
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0xa0]
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
push eax
mov byte [ecx + 4], bl
call fcn.0040258d
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x68], esp
push 6
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
push 0x4228f0
mov byte [esp + 0x2a0], 7
mov byte [ecx + 4], bl
call fcn.004024ea
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x80], esp
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0xbc]
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
push edx
mov byte [esp + 0x2c0], 8
mov byte [ecx + 4], bl
call fcn.0040258d
lea eax, [esp + 0x98]
push eax
mov byte [esp + 0x2b8], 3
call fcn.0041e250
add esp, 0x60
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x64]
mov byte [esp + 0x264], 9
call fcn.0040258d
cmp dword [esp + 0x54], esi
mov byte [esp + 0x258], 3
jb 0x41e9f8
mov ecx, dword [esp + 0x40]
push ecx
call fcn.00415f5a
add esp, 4
lea ecx, [esp + 0x20]
call fcn.0041eec0
lea edx, [esp + 0xbc]
push edx
push 2
mov byte [esp + 0x260], 0xa
mov dword [esp + 0x30], ebx
call dword [sym.imp.WS2_32.dll_WSAStartup]
push ebx
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esp + 0x1c], eax
cmp dword [esp + 0x8c], esi
mov eax, dword [esp + 0x78]
mov word [esp + 0xac], 2
jae 0x41ea47
lea eax, [esp + 0x78]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
cmp eax, ebx
jne 0x41eb0d
lea ecx, [esp + 0x20]
mov byte [esp + 0x258], 3
call fcn.0041eed0
cmp dword [esp + 0x70], esi
jb 0x41ea7a
mov eax, dword [esp + 0x5c]
push eax
call fcn.00415f5a
add esp, 4
cmp dword [esp + 0xa8], esi
mov dword [esp + 0x70], ebp
mov dword [esp + 0x6c], ebx
mov byte [esp + 0x5c], bl
jb 0x41ea9f
mov ecx, dword [esp + 0x94]
push ecx
call fcn.00415f5a
add esp, 4
cmp dword [esp + 0x8c], esi
mov dword [esp + 0xa8], ebp
mov dword [esp + 0xa4], ebx
mov byte [esp + 0x94], bl
jb 0x41eaca
mov edx, dword [esp + 0x78]
push edx
call fcn.00415f5a
add esp, 4
mov eax, dword [esp + 0x30]
cmp eax, ebx
mov dword [esp + 0x8c], ebp
mov dword [esp + 0x88], ebx
mov byte [esp + 0x78], bl
je 0x41eb06
mov ecx, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x38]
lea edx, [esp + 0x30]
push edx
push ecx
push eax
call fcn.0040e518
mov edx, dword [esp + 0x40]
push edx
call fcn.00415f5a
add esp, 0x14
xor eax, eax
jmp 0x41edc4
movsx ecx, word [eax + 0xa]
mov eax, dword [eax + 0xc]
mov esi, dword [eax]
mov edx, ecx
shr ecx, 2
lea edi, [esp + 0xb0]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
push 0x50
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.WS2_32.dll_htons]
mov esi, dword [esp + 0x1c]
mov word [esp + 0xae], ax
mov edi, 0x10
push edi
lea eax, [esp + 0xb0]
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x41ed03
push 0x7d0
push esi
lea ecx, [esp + 0x28]
call fcn.0041ef50
cmp dword [esp + 0x70], edi
mov eax, dword [esp + 0x5c]
jae 0x41eb79
lea eax, [esp + 0x5c]
mov ecx, dword [esp + 0x6c]
push ebx
push ecx
push eax
push esi
call dword [sym.imp.WS2_32.dll_send]
mov edx, dword [esp + 0x1c]
push ebx
xor esi, esi
xor edi, edi
push edx
lea ecx, [esp + 0x28]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x18], edi
call fcn.0041eee0
test eax, eax
je 0x41ec67
mov dword [esp + 0x28], 1
mov eax, dword [esp + 0x1c]
push eax
lea ecx, [esp + 0x24]
call fcn.0041efb0
mov ebp, eax
cmp ebp, ebx
je 0x41ec62
push ebp
call fcn.0041656d
mov esi, eax
mov ecx, ebp
mov edx, ecx
shr ecx, 2
xor eax, eax
add esp, 4
mov edi, esi
rep stosd dword es:[edi], eax
push ebx
mov ecx, edx
and ecx, 3
push ebp
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x24]
push esi
push eax
mov dword [esp + 0x28], esi
call dword [sym.imp.WS2_32.dll_recv]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
add eax, ebp
mov dword [esp + 0x10], eax
inc eax
push eax
push ecx
call fcn.004166e2
mov edx, dword [esp + 0x2c]
lea edi, [edx + eax]
mov dword [esp + 0x1c], eax
mov ecx, ebp
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x20]
add edx, ebp
push ecx
mov dword [esp + 0x30], edx
call fcn.0041657f
mov edx, dword [esp + 0x28]
add esp, 0xc
push ebx
push edx
lea ecx, [esp + 0x28]
call fcn.0041eee0
test eax, eax
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
jne 0x41ebb6
mov ebp, 0xf
xor eax, eax
cmp edi, ebx
jle 0x41ece8
mov cl, 0xd
nop
cmp byte [eax + esi], cl
jne 0x41ec89
cmp byte [eax + esi + 1], 0xa
jne 0x41ec89
cmp byte [eax + esi + 2], cl
jne 0x41ec89
cmp byte [eax + esi + 3], 0xa
je 0x41ec90
inc eax
cmp eax, edi
jl 0x41ec70
jmp 0x41ece8
mov ecx, 0xfffffffc
sub ecx, eax
add edi, ecx
cmp edi, ebx
mov dword [esp + 0x10], edi
jle 0x41ecd0
mov ecx, edi
mov edx, ecx
lea esi, [eax + esi + 4]
mov eax, dword [esp + 0x14]
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, edx
inc ecx
push ecx
push eax
call fcn.004166e2
add esp, 8
mov dword [esp + 0x14], eax
mov esi, eax
jmp 0x41ece4
mov ecx, eax
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x264]
mov ecx, dword [esp + 0x268]
mov dword [eax], esi
mov esi, dword [esp + 0x1c]
mov dword [ecx], edi
mov edi, 0x10
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
lea ecx, [esp + 0x20]
mov byte [esp + 0x258], 3
call fcn.0041eed0
cmp dword [esp + 0x70], edi
jb 0x41ed34
mov edx, dword [esp + 0x5c]
push edx
call fcn.00415f5a
add esp, 4
cmp dword [esp + 0xa8], edi
mov dword [esp + 0x70], ebp
mov dword [esp + 0x6c], ebx
mov byte [esp + 0x5c], bl
jb 0x41ed59
mov eax, dword [esp + 0x94]
push eax
call fcn.00415f5a
add esp, 4
cmp dword [esp + 0x8c], edi
mov dword [esp + 0xa8], ebp
mov dword [esp + 0xa4], ebx
mov byte [esp + 0x94], bl
jb 0x41ed84
mov ecx, dword [esp + 0x78]
push ecx
call fcn.00415f5a
add esp, 4
mov eax, dword [esp + 0x30]
cmp eax, ebx
mov dword [esp + 0x8c], ebp
mov dword [esp + 0x88], ebx
mov byte [esp + 0x78], bl
je 0x41edc0
mov edx, dword [esp + 0x18]
push edx
mov edx, dword [esp + 0x38]
lea ecx, [esp + 0x30]
push ecx
push edx
push eax
call fcn.0040e518
mov eax, dword [esp + 0x40]
push eax
call fcn.00415f5a
add esp, 0x14
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x250]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x24c]
call fcn.004177c2
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24c
ret