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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c4
mov eax, dword [0x78ca90]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], 0xffffffff
mov dword [ebp - 4], 1
cmp dword [ebp + 0x20], 0
je 0x405abc
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 - 0x90]
push eax
call fcn.005db7b6
add esp, 0x18
cmp dword [ebp + 0x20], 0
je 0x405ab2
mov ecx, dword [ebp + 0x20]
cmp dword [ecx + 8], 0
je 0x405ab2
push 0x23b
lea edx, [ebp - 0x90]
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 - 0x1a0], eax
jmp 0x405abc
mov dword [ebp - 0x1a0], 9
mov ecx, dword [ebp + 0x20]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00405e20
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x405dae
cmp dword [ebp + 0x20], 0
je 0x405b11
mov ecx, dword [ebp + 0x20]
cmp dword [ecx + 8], 0
je 0x405b11
push 0x240
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 - 0x1a4], eax
jmp 0x405b1b
mov dword [ebp - 0x1a4], 9
mov dword [ebp - 0x19c], 0
mov dword [ebp - 0x94], 0
cmp dword [ebp + 0x14], 0
je 0x405b53
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 - 0x198]
push edx
call fcn.005d3f03
add esp, 0x10
jmp 0x405b6b
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 - 0x198]
push ecx
call fcn.005d3f03
add esp, 0xc
lea edx, [ebp - 0x198]
push edx
call fcn.005cfb40
add esp, 4
mov dword [ebp - 0x94], eax
push 0
mov eax, dword [ebp - 0x94]
push eax
lea ecx, [ebp - 0x198]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x98]
cmp eax, dword [ebp - 0x94]
je 0x405c3e
cmp dword [ebp - 0x98], 0xffffffff
jne 0x405bfb
cmp dword [ebp + 0x20], 0
je 0x405bef
mov ecx, dword [ebp + 0x20]
cmp dword [ecx + 8], 0
je 0x405bef
push 0x257
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 - 0x1a8], eax
jmp 0x405bf9
mov dword [ebp - 0x1a8], 9
jmp 0x405c39
cmp dword [ebp + 0x20], 0
je 0x405c2f
mov eax, dword [ebp + 0x20]
cmp dword [eax + 8], 0
je 0x405c2f
push 0x25b
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 - 0x1ac], eax
jmp 0x405c39
mov dword [ebp - 0x1ac], 9
jmp 0x405da0
cmp dword [ebp + 0x20], 0
je 0x405c72
mov edx, dword [ebp + 0x20]
cmp dword [edx + 8], 0
je 0x405c72
push 0x25f
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 - 0x1b0], eax
jmp 0x405c7c
mov dword [ebp - 0x1b0], 9
mov ecx, dword [ebp + 0x20]
push ecx
lea edx, [ebp - 0x19c]
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.00406780
add esp, 0xc
test eax, eax
jge 0x405cda
cmp dword [ebp + 0x20], 0
je 0x405ccb
mov ecx, dword [ebp + 0x20]
cmp dword [ecx + 8], 0
je 0x405ccb
push 0x264
push str.Failed_to_parse_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 - 0x1b4], eax
jmp 0x405cd5
mov dword [ebp - 0x1b4], 9
jmp 0x405da0
cmp dword [ebp + 0x20], 0
je 0x405d0e
mov eax, dword [ebp + 0x20]
cmp dword [eax + 8], 0
je 0x405d0e
push 0x267
push str.Received_HTTP_response_header
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 - 0x1b8], eax
jmp 0x405d18
mov dword [ebp - 0x1b8], 9
mov edx, dword [ebp + 0x1c]
cmp edx, dword [ebp - 0x19c]
jle 0x405d31
mov eax, dword [ebp - 0x19c]
mov dword [ebp - 0x1bc], eax
jmp 0x405d3a
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x1bc], ecx
mov edx, dword [ebp + 0x20]
push edx
mov eax, dword [ebp - 0x1bc]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.004063e0
add esp, 0x10
mov dword [ebp - 0xc], eax
cmp dword [ebp + 0x20], 0
je 0x405d8c
mov eax, dword [ebp + 0x20]
cmp dword [eax + 8], 0
je 0x405d8c
push 0x26b
push str.Received_HTTP_response_body
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 - 0x1c0], eax
jmp 0x405d96
mov dword [ebp - 0x1c0], 9
jmp 0x405da0
mov eax, dword [ebp - 8]
push eax
call fcn.004063c0
add esp, 4
jmp 0x405dec
cmp dword [ebp + 0x20], 0
je 0x405de2
mov ecx, dword [ebp + 0x20]
cmp dword [ecx + 8], 0
je 0x405de2
push 0x274
push str.Failed_to_open_HTTP_socket
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 - 0x1c4], eax
jmp 0x405dec
mov dword [ebp - 0x1c4], 9
cmp dword [ebp - 0xc], 0
jle 0x405df4
jmp 0x405e08
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
sub ecx, 1
mov dword [ebp - 4], ecx
test eax, eax
jne 0x405a51
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005cfbcb
mov esp, ebp
pop ebp
ret