Function at 0x432850
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Receive data
Receive data on socket
Resolve dns
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46da58
mov eax, dword fs:[0]
push eax
sub esp, 0xed4
mov eax, dword [0x487b30]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.004327e0
mov eax, dword [ebp + 8]
mov dword [ebp - 0xeb4], eax
lea ecx, [ebp - 0x65c]
mov dword [ebp - 0xeb8], ecx
mov edx, dword [ebp - 0xeb8]
mov dword [ebp - 0xebc], edx
mov eax, dword [ebp - 0xeb4]
mov cl, byte [eax]
mov byte [ebp - 0xebd], cl
mov edx, dword [ebp - 0xeb8]
mov al, byte [ebp - 0xebd]
mov byte [edx], al
mov ecx, dword [ebp - 0xeb4]
add ecx, 1
mov dword [ebp - 0xeb4], ecx
mov edx, dword [ebp - 0xeb8]
add edx, 1
mov dword [ebp - 0xeb8], edx
cmp byte [ebp - 0xebd], 0
jne 0x4328a1
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x53c]
push ecx
lea edx, [ebp - 0x134]
push edx
lea eax, [ebp - 0x65c]
push eax
call fcn.00432530
add esp, 0x10
lea ecx, [ebp - 0x134]
push ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 0x668], eax
cmp dword [ebp - 0x668], 0
jne 0x43292d
call fcn.00432840
xor eax, eax
jmp 0x432dd9
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebp - 0x554], eax
cmp dword [ebp - 0x554], 0xffffffff
jne 0x432954
call fcn.00432840
xor eax, eax
jmp 0x432dd9
xor edx, edx
mov dword [ebp - 0x550], edx
mov dword [ebp - 0x54c], edx
mov dword [ebp - 0x548], edx
mov dword [ebp - 0x544], edx
mov eax, 2
mov word [ebp - 0x550], ax
movzx ecx, word [ebp - 0x10]
push ecx
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x54e], ax
mov edx, dword [ebp - 0x668]
mov eax, dword [edx + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx]
mov dword [ebp - 0x54c], edx
push 0x10
lea eax, [ebp - 0x550]
push eax
mov ecx, dword [ebp - 0x554]
push ecx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x4329d3
mov edx, dword [ebp - 0x554]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
call fcn.00432840
xor eax, eax
jmp 0x432dd9
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xec4], eax
mov ecx, dword [ebp - 0xec4]
add ecx, 1
mov dword [ebp - 0xec8], ecx
mov edx, dword [ebp - 0xec4]
mov al, byte [edx]
mov byte [ebp - 0xec9], al
add dword [ebp - 0xec4], 1
cmp byte [ebp - 0xec9], 0
jne 0x4329eb
mov ecx, dword [ebp - 0xec4]
sub ecx, dword [ebp - 0xec8]
mov dword [ebp - 0xed0], ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0xed0]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
lea edx, [ebp - 0x134]
push edx
lea eax, [ebp - 0x53c]
push eax
push str.POST___s_HTTP_1.1_r_nContent_Type:_application_x_www_form_urlencoded_r_nAccept:___r_nUser_Agent:_Mozilla_4.0__compatible__MSIE_5.01__Windows_NT_5.0__r_nHost:__s:_d_r_nContent_Length:_d_r_nConnection:_Keep_Alive_r_n_r_n_s
lea ecx, [ebp - 0xa74]
push ecx
call fcn.0045895f
add esp, 0x1c
mov dword [ebp - 0x66c], 0
mov dword [ebp - 0x670], 0
lea edx, [ebp - 0xa74]
mov dword [ebp - 0xed4], edx
mov eax, dword [ebp - 0xed4]
add eax, 1
mov dword [ebp - 0xed8], eax
mov ecx, dword [ebp - 0xed4]
mov dl, byte [ecx]
mov byte [ebp - 0xed9], dl
add dword [ebp - 0xed4], 1
cmp byte [ebp - 0xed9], 0
jne 0x432a7b
mov eax, dword [ebp - 0xed4]
sub eax, dword [ebp - 0xed8]
mov dword [ebp - 0xee0], eax
mov ecx, dword [ebp - 0xee0]
mov dword [ebp - 0xa78], ecx
mov edx, dword [ebp - 0x670]
cmp edx, dword [ebp - 0xa78]
jge 0x432b2b
push 0
mov eax, dword [ebp - 0xa78]
sub eax, dword [ebp - 0x670]
push eax
mov ecx, dword [ebp - 0x670]
lea edx, [ebp + ecx - 0xa74]
push edx
mov eax, dword [ebp - 0x554]
push eax
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 0x66c], eax
cmp dword [ebp - 0x66c], 0xffffffff
jne 0x432b17
mov ecx, dword [ebp - 0x554]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
call fcn.00432840
xor eax, eax
jmp 0x432dd9
mov edx, dword [ebp - 0x670]
add edx, dword [ebp - 0x66c]
mov dword [ebp - 0x670], edx
jmp 0x432ab7
mov dword [ebp - 0xa7c], 0
mov dword [ebp - 0x664], 1
mov dword [ebp - 0x540], 0
push 0x474e13
lea ecx, [ebp - 0x30]
call fcn.004069d0
mov dword [ebp - 4], 0
push 0x1000
call fcn.0044c542
add esp, 4
mov dword [ebp - 0xea4], eax
mov eax, dword [ebp - 0xea4]
mov dword [ebp - 0x138], eax
push 0x1000
push 0
mov ecx, dword [ebp - 0x138]
push ecx
call fcn.00459470
add esp, 0xc
mov dword [ebp - 0x660], 0
mov dword [ebp - 0x13c], 0
push 0
mov edx, dword [ebp - 0x664]
push edx
lea eax, [ebp - 0xe7c]
push eax
mov ecx, dword [ebp - 0x554]
push ecx
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 0xa78], eax
cmp dword [ebp - 0xa78], 0
jle 0x432d52
cmp dword [ebp - 0x13c], 4
jge 0x432c27
movsx edx, byte [ebp - 0xe7c]
cmp edx, 0xd
je 0x432bf7
movsx eax, byte [ebp - 0xe7c]
cmp eax, 0xa
jne 0x432c08
mov ecx, dword [ebp - 0x13c]
add ecx, 1
mov dword [ebp - 0x13c], ecx
jmp 0x432c12
mov dword [ebp - 0x13c], 0
movzx edx, byte [ebp - 0xe7c]
push edx
lea ecx, [ebp - 0x30]
call fcn.00432e00
jmp 0x432d4d
cmp dword [ebp - 0x540], 0
jg 0x432ce3
push 0
push str.Content_Length
lea ecx, [ebp - 0x30]
call fcn.00432e20
mov dword [ebp - 0xe80], eax
cmp dword [ebp - 0xe80], 0
jle 0x432cc3
mov eax, dword [ebp - 0xe80]
add eax, 0xf
mov dword [ebp - 0xe80], eax
mov ecx, dword [ebp - 0xe80]
push ecx
push 0x477340
lea ecx, [ebp - 0x30]
call fcn.00432e20
mov dword [ebp - 0xea0], eax
mov edx, dword [ebp - 0xea0]
sub edx, dword [ebp - 0xe80]
push edx
mov eax, dword [ebp - 0xe80]
push eax
lea ecx, [ebp - 0xe9c]
push ecx
lea ecx, [ebp - 0x30]
call fcn.00432e50
lea ecx, [ebp - 0xe9c]
call fcn.00405700
push eax
call fcn.00457acc
add esp, 4
mov dword [ebp - 0x540], eax
lea ecx, [ebp - 0xe9c]
call fcn.004056e0
push 0
push str.404_Not_Found
lea ecx, [ebp - 0x30]
call fcn.00432e20
mov dword [ebp - 0xe80], eax
cmp dword [ebp - 0xe80], 0
jle 0x432ce3
jmp 0x432d52
mov edx, dword [ebp - 0xa78]
push edx
lea eax, [ebp - 0xe7c]
push eax
mov ecx, dword [ebp - 0x138]
add ecx, dword [ebp - 0x660]
push ecx
call fcn.0045c020
add esp, 0xc
mov edx, dword [ebp - 0x660]
add edx, dword [ebp - 0xa78]
mov dword [ebp - 0x660], edx
mov dword [ebp - 0x664], 0x400
mov eax, dword [ebp - 0xa7c]
add eax, dword [ebp - 0xa78]
mov dword [ebp - 0xa7c], eax
cmp dword [ebp - 0x540], 0
jle 0x432d4d
mov ecx, dword [ebp - 0xa7c]
cmp ecx, dword [ebp - 0x540]
jl 0x432d4d
jmp 0x432d52
jmp 0x432ba6
push 2
mov edx, dword [ebp - 0x554]
push edx
call dword [sym.imp.WS2_32.dll_shutdown]
mov eax, dword [ebp - 0x554]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
call fcn.00432840
cmp dword [ebp - 0xa7c], 0xa
jge 0x432db8
mov ecx, dword [ebp - 0x138]
mov dword [ebp - 0xea8], ecx
mov edx, dword [ebp - 0xea8]
push edx
call fcn.0044c54d
add esp, 4
mov dword [ebp - 0xeac], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.004056e0
mov eax, dword [ebp - 0xeac]
jmp 0x432dd9
mov eax, dword [ebp - 0x138]
mov dword [ebp - 0xeb0], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.004056e0
mov eax, dword [ebp - 0xeb0]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004567ae
mov esp, ebp
pop ebp
ret