Function at 0x5318a0
Capabilities:
Send data
Send data on socket
Send http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1cc
mov eax, dword [0x6a60f0]
xor eax, ebp
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0x2ee
cmp dword [ebp + 0x20], 0
je 0x531933
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 0x10]
push edx
push str.HTTP_GET__s_on__s:_d
push 0x80
lea eax, [ebp - 0x98]
push eax
call fcn.0053ef25
add esp, 0x18
cmp dword [ebp + 0x20], 0
je 0x531929
mov ecx, dword [ebp + 0x20]
cmp dword [ecx + 8], 0
je 0x531929
push 0xb9
lea edx, [ebp - 0x98]
push edx
push 9
mov eax, dword [ebp + 0x20]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp + 0x20]
mov eax, dword [edx + 8]
call eax
add esp, 0x10
mov dword [ebp - 0x1a8], eax
jmp 0x531933
mov dword [ebp - 0x1a8], 9
mov ecx, dword [ebp + 0x20]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00532620
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x531c2d
cmp dword [ebp + 0x20], 0
je 0x531988
mov ecx, dword [ebp + 0x20]
cmp dword [ecx + 8], 0
je 0x531988
push 0xbe
push str.HTTP_Socket_Open_OK
push 9
mov edx, dword [ebp + 0x20]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp + 0x20]
mov edx, dword [ecx + 8]
call edx
add esp, 0x10
mov dword [ebp - 0x1ac], eax
jmp 0x531992
mov dword [ebp - 0x1ac], 9
mov dword [ebp - 0x1a4], 0
mov dword [ebp - 0x9c], 0
cmp dword [ebp + 0x14], 0
je 0x5319ca
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
push str.GET__s_HTTP_1.0_r_nUser_Agent:_FlexNet_r_n_s_r_n_r_n
lea edx, [ebp - 0x1a0]
push edx
call fcn.00536ca3
add esp, 0x10
jmp 0x5319e2
mov eax, dword [ebp + 0x10]
push eax
push str.GET__s_HTTP_1.0_r_nUser_Agent:_FlexNet_r_n_r_n
lea ecx, [ebp - 0x1a0]
push ecx
call fcn.00536ca3
add esp, 0xc
lea edx, [ebp - 0x1a0]
push edx
call fcn.00532f70
add esp, 4
mov dword [ebp - 0x9c], eax
push 0
mov eax, dword [ebp - 0x9c]
push eax
lea ecx, [ebp - 0x1a0]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.WSOCK32.dll_send]
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0xa0]
cmp eax, dword [ebp - 0x9c]
je 0x531ab5
cmp dword [ebp - 0xa0], 0xffffffff
jne 0x531a72
cmp dword [ebp + 0x20], 0
je 0x531a66
mov ecx, dword [ebp + 0x20]
cmp dword [ecx + 8], 0
je 0x531a66
push 0xd5
push str.Write_on_HTTP_Socket_failed
push 9
mov edx, dword [ebp + 0x20]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp + 0x20]
mov edx, dword [ecx + 8]
call edx
add esp, 0x10
mov dword [ebp - 0x1b0], eax
jmp 0x531a70
mov dword [ebp - 0x1b0], 9
jmp 0x531ab0
cmp dword [ebp + 0x20], 0
je 0x531aa6
mov eax, dword [ebp + 0x20]
cmp dword [eax + 8], 0
je 0x531aa6
push 0xd9
push str.Write_on_HTTP_Socket_incomplete
push 9
mov ecx, dword [ebp + 0x20]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp + 0x20]
mov ecx, dword [eax + 8]
call ecx
add esp, 0x10
mov dword [ebp - 0x1b4], eax
jmp 0x531ab0
mov dword [ebp - 0x1b4], 9
jmp 0x531c1f
cmp dword [ebp + 0x20], 0
je 0x531ae9
mov edx, dword [ebp + 0x20]
cmp dword [edx + 8], 0
je 0x531ae9
push 0xdd
push str.Write_on_HTTP_Socket_OK
push 9
mov eax, dword [ebp + 0x20]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp + 0x20]
mov eax, dword [edx + 8]
call eax
add esp, 0x10
mov dword [ebp - 0x1b8], eax
jmp 0x531af3
mov dword [ebp - 0x1b8], 9
mov ecx, dword [ebp + 0x20]
push ecx
mov edx, dword [ebp - 8]
push edx
lea eax, [ebp - 0x1a4]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00531ca0
add esp, 0x10
test eax, eax
jge 0x531b55
cmp dword [ebp + 0x20], 0
je 0x531b46
mov edx, dword [ebp + 0x20]
cmp dword [edx + 8], 0
je 0x531b46
push 0xe2
push str.Failed_to_parse_HTTP_response_header
push 9
mov eax, dword [ebp + 0x20]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp + 0x20]
mov eax, dword [edx + 8]
call eax
add esp, 0x10
mov dword [ebp - 0x1bc], eax
jmp 0x531b50
mov dword [ebp - 0x1bc], 9
jmp 0x531c1f
cmp dword [ebp + 0x20], 0
je 0x531b89
mov ecx, dword [ebp + 0x20]
cmp dword [ecx + 8], 0
je 0x531b89
push 0xe5
push str.Received_HTTP_response_header
push 9
mov edx, dword [ebp + 0x20]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp + 0x20]
mov edx, dword [ecx + 8]
call edx
add esp, 0x10
mov dword [ebp - 0x1c0], eax
jmp 0x531b93
mov dword [ebp - 0x1c0], 9
mov eax, dword [ebp + 0x1c]
cmp eax, dword [ebp - 0x1a4]
jle 0x531bac
mov ecx, dword [ebp - 0x1a4]
mov dword [ebp - 0x1c4], ecx
jmp 0x531bb5
mov edx, dword [ebp + 0x1c]
mov dword [ebp - 0x1c4], edx
mov eax, dword [ebp + 0x20]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0x1c4]
push edx
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00532e70
add esp, 0x14
mov dword [ebp - 0x10], eax
cmp dword [ebp + 0x20], 0
je 0x531c0b
mov edx, dword [ebp + 0x20]
cmp dword [edx + 8], 0
je 0x531c0b
push 0xe9
push str.Received_HTTP_response_body
push 9
mov eax, dword [ebp + 0x20]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp + 0x20]
mov eax, dword [edx + 8]
call eax
add esp, 0x10
mov dword [ebp - 0x1c8], eax
jmp 0x531c15
mov dword [ebp - 0x1c8], 9
jmp 0x531c1f
mov edx, dword [ebp - 0xc]
push edx
call fcn.00532ae0
add esp, 4
jmp 0x531c6b
cmp dword [ebp + 0x20], 0
je 0x531c61
mov eax, dword [ebp + 0x20]
cmp dword [eax + 8], 0
je 0x531c61
push 0xf2
push str.Failed_to_open_HTTP_socket
push 9
mov ecx, dword [ebp + 0x20]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp + 0x20]
mov ecx, dword [eax + 8]
call ecx
add esp, 0x10
mov dword [ebp - 0x1cc], eax
jmp 0x531c6b
mov dword [ebp - 0x1cc], 9
cmp dword [ebp - 0x10], 0
jle 0x531c73
jmp 0x531c87
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
sub eax, 1
mov dword [ebp - 4], eax
test edx, edx
jne 0x5318c8
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00532ffe
mov esp, ebp
pop ebp
ret