Function at 0x1000e580
Capabilities:
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
sub esp, 0xc08
mov eax, dword [0x100349e8]
push ebx
push esi
mov esi, 1
test eax, eax
push edi
mov dword [ebp - 8], esi
jne 0x1000e66c
call fcn.1001020d
mov ecx, dword [0x10031240]
mov edx, dword [0x10023c24]
add edx, ecx
mov dword [0x10031f20], eax
cmp eax, edx
jge 0x1000e5ca
cmp eax, ecx
jl 0x1000e5ca
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x1003488c]
mov dword [0x10031240], eax
lea eax, [ebp - 8]
push eax
push 0x4004667f
push ecx
call dword [sym.imp.WSOCK32.dll_ioctlsocket]
mov eax, dword [ebp - 8]
test eax, eax
jle 0x1000e610
cmp eax, 0x2000
jle 0x1000e5fb
mov eax, 0x2000
mov dword [ebp - 8], eax
mov edx, dword [0x1003488c]
push 0
push eax
push 0x10027d80
push edx
call dword [sym.imp.WSOCK32.dll_recv]
mov edx, dword [0x1003488c]
mov al, byte [0x10023c34]
push 0
lea ecx, [ebp - 1]
push esi
push ecx
push edx
mov byte [ebp - 1], al
call dword [sym.imp.WSOCK32.dll_send]
test eax, eax
jle 0x1000e663
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [0x10026fc4]
mov dword [0x100349e8], esi
test eax, eax
je 0x1000e663
mov eax, dword [0x1003488c]
push eax
call dword [sym.imp.WSOCK32.dll_closesocket]
call dword [sym.imp.WSOCK32.dll_WSACleanup]
mov dword [0x10026fc4], 0
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x10026fc0]
test eax, eax
je 0x1000e8de
mov eax, dword [0x100349ec]
test eax, eax
je 0x1000e6b3
call fcn.1001020d
mov ecx, dword [0x10031240]
mov edx, dword [0x10033d84]
add edx, ecx
mov dword [0x10031f20], eax
cmp eax, edx
jge 0x1000e907
cmp eax, ecx
jl 0x1000e907
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.1001020d
mov ecx, dword [0x10031240]
mov dword [0x10031f20], eax
lea edx, [ecx + 0x7d0]
cmp eax, edx
jge 0x1000e6da
cmp eax, ecx
jl 0x1000e6da
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [0x10031240], eax
call fcn.1000dd60
test eax, eax
jne 0x1000e701
mov dword [0x100349ec], esi
call fcn.1001020d
mov dword [0x10031240], eax
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0xa
push 0xd
lea eax, [ebp - 0xc08]
push str.GET__status.shtml_HTTP_1.1_c_c
push eax
call fcn.1000fd5e
push 0xa
push 0xd
lea ecx, [ebp - 0x408]
push str.Host:_0.0.0.0_c_c
push ecx
call fcn.1000fd5e
lea edi, [ebp - 0x408]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0xc08]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0xa
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
push 0xd
and ecx, 3
lea eax, [ebp - 0x408]
push str.Connection:_Keep_Alive_c_c
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.1000fd5e
lea edi, [ebp - 0x408]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0xc08]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0xa
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
push 0xd
and ecx, 3
lea eax, [ebp - 0x408]
push str._c_c
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.1000fd5e
lea edi, [ebp - 0x408]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x40
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp - 0xc08]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0xc08]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
call fcn.1001020d
mov edi, dword [sym.imp.WSOCK32.dll_recv]
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [0x10031240], eax
test esi, esi
je 0x1000e82e
mov ecx, dword [0x1003488c]
push 0
lea eax, [ebp - 0xc08]
push esi
push eax
push ecx
call dword [sym.imp.WSOCK32.dll_send]
sub esi, eax
push 0x64
call ebx
mov edx, dword [0x1003488c]
push 0
push 0x2000
push 0x10027d80
push edx
call edi
test eax, eax
jne 0x1000e86b
call fcn.1001020d
mov ecx, dword [0x10031240]
mov dword [0x10031f20], eax
lea edx, [ecx + 0x7530]
cmp eax, edx
jge 0x1000e88f
cmp eax, ecx
jl 0x1000e88f
jmp 0x1000e811
add eax, 0xfffffff9
xor edx, edx
test eax, eax
jle 0x1000e88f
mov ecx, 2
mov edi, str.Printing
lea esi, [edx + 0x10027d80]
xor ebx, ebx
repe cmpsd dword [esi], dword es:[edi]
je 0x1000e8bc
inc edx
cmp edx, eax
jl 0x1000e874
mov ecx, dword [0x1003488c]
push ecx
call dword [sym.imp.WSOCK32.dll_closesocket]
mov dword [0x100349ec], 1
call fcn.1001020d
pop edi
mov dword [0x10031240], eax
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x1003488c]
push eax
call dword [sym.imp.WSOCK32.dll_closesocket]
call fcn.1001020d
pop edi
mov dword [0x10031240], eax
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.1001020d
mov ecx, dword [0x10031240]
mov edx, dword [0x10033d84]
add edx, ecx
mov dword [0x10031f20], eax
cmp eax, edx
jge 0x1000e907
cmp eax, ecx
jl 0x1000e907
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
mov dword [0x10031240], eax
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret