Function at 0x40335a
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, 0x10
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov ax, word [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov dx, word [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00402d7c
add esp, 0x10
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jae 0x403398
xor eax, eax
jmp 0x403593
mov ecx, dword [ebp + 0x18]
push ecx
push str.GET__s_HTTP_1.1_r_n
mov edx, dword [ebp + 0x1c]
push edx
call fcn.00405962
add esp, 0xc
mov dword [ebp - 0xc], eax
push str.Host:_192.168.2.110_r_n
mov eax, dword [ebp + 0x1c]
add eax, dword [ebp - 0xc]
push eax
call fcn.00405962
add esp, 8
mov ecx, dword [ebp - 0xc]
add ecx, eax
mov dword [ebp - 0xc], ecx
movsx edx, byte [0x42f444]
test edx, edx
je 0x403400
mov eax, dword [0x42f240]
add eax, 1
mov dword [0x42f240], eax
mov ecx, dword [ebp + 0x1c]
add ecx, dword [ebp - 0xc]
push ecx
push 0x42f240
call fcn.00402e6d
add esp, 8
mov edx, dword [ebp - 0xc]
add edx, eax
mov dword [ebp - 0xc], edx
push 0x40db2c
mov eax, dword [ebp + 0x1c]
add eax, dword [ebp - 0xc]
push eax
call fcn.00405962
add esp, 8
mov ecx, dword [ebp - 0xc]
add ecx, eax
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp + 0x1c]
push eax
call fcn.00402d09
add esp, 8
push 0
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp + 0x1c]
push edx
mov eax, dword [ebp - 0x10]
push eax
call sub.WSOCK32.dll_send
mov dword [ebp - 4], eax
mov ecx, 1
test ecx, ecx
je 0x403588
mov edx, dword [ebp + 0x20]
sub edx, dword [ebp - 8]
mov dword [ebp - 0xc], edx
push 0
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp + 0x1c]
add ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call sub.WSOCK32.dll_recv
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jg 0x403571
push 0
push str.recv_done_n
call fcn.00402d09
add esp, 8
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 0x1c]
push ecx
call fcn.00402d09
add esp, 8
push 0
push 0x40db3c
call fcn.00402d09
add esp, 8
push 0x42f240
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp + 0x1c]
push eax
call fcn.0040327b
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 1
jne 0x4034d8
mov ecx, dword [ebp - 0x10]
push ecx
call sub.WSOCK32.dll_closesocket
or eax, 0xffffffff
jmp 0x403593
cmp dword [ebp - 8], 0
jle 0x403563
push 0x7f
push 0x42f0a0
mov edx, dword [str.Product_Name:]
push edx
mov eax, dword [ebp + 0x1c]
push eax
call fcn.00402bb0
add esp, 0x10
push 0x7f
push 0x42f1a0
mov ecx, dword [str.MAC_Address:]
push ecx
mov edx, dword [ebp + 0x1c]
push edx
call fcn.00402bb0
add esp, 0x10
push 0x7f
push 0x42f120
mov eax, dword [str.Software_Version:]
push eax
mov ecx, dword [ebp + 0x1c]
push ecx
call fcn.00402bb0
add esp, 0x10
push 0x7f
push 0x42ee80
mov edx, dword [str.Hardware_Version:]
push edx
mov eax, dword [ebp + 0x1c]
push eax
call fcn.00402bb0
add esp, 0x10
push 0x7f
push 0x40edc0
mov ecx, dword [str.Serial_Number:]
push ecx
mov edx, dword [ebp + 0x1c]
push edx
call fcn.00402bb0
add esp, 0x10
mov eax, dword [ebp - 0x10]
push eax
call sub.WSOCK32.dll_closesocket
mov eax, dword [ebp - 8]
jmp 0x403593
mov ecx, dword [ebp - 8]
add ecx, dword [ebp - 4]
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 0x1c]
add edx, dword [ebp - 8]
mov byte [edx], 0
jmp 0x403442
mov eax, dword [ebp - 0x10]
push eax
call sub.WSOCK32.dll_closesocket
xor eax, eax
mov esp, ebp
pop ebp
ret