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

Disassembly:
mov eax, 0x45e8c4
call fcn.0045d320
sub esp, 0x54
or dword [ebp - 0x18], 0xffffffff
and dword [ebp - 4], 0
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
push 1
mov eax, dword [esi]
mov dword [ebp - 0x1c], esi
call dword [eax + 0x2c]
mov edi, dword [ebp + 0xc]
mov eax, dword [esi]
test edi, edi
je 0x409598
mov ebx, dword [ebp + 8]
push edi
push ebx
push str.Connecting_to__s:_d
push esi
call dword [eax + 0x14]
add esp, 0x10
mov ecx, esi
push edi
push ebx
call fcn.0040854e
cmp eax, 0xffffffff
mov dword [ebp - 0x18], eax
jne 0x409586
push edi
push ebx
lea eax, [ebp - 0x28]
push str.Couldnt_connect_to_router__s:_d
push eax
call fcn.00409d8b
add esp, 0x10
lea eax, [ebp - 0x28]
push 0x467118
push eax
call sub.MSVCRT.dll__CxxThrowException
mov eax, dword [esi]
push edi
push ebx
push str.Connected_to__s:_d
push esi
call dword [eax + 0x14]
add esp, 0x10
jmp 0x4095d0
movzx ecx, word [0x47a53c]
mov ebx, dword [ebp + 8]
push ecx
push dword [0x47a538]
push ebx
push str.Connecting_to__s_by_proxy__s:_d
push esi
call dword [eax + 0x14]
add esp, 0x14
mov ecx, esi
push ebx
call fcn.0040900b
mov dword [ebp - 0x18], eax
mov eax, dword [esi]
push ebx
push str.Connected_to__s_by_HTTPS_proxy
push esi
call dword [eax + 0x14]
add esp, 0xc
mov eax, dword [esi]
push 2
mov ecx, esi
call dword [eax + 0x2c]
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x4095e4
mov eax, dword [eax]
jmp 0x4095e6
xor eax, eax
test eax, eax
je 0x40960e
push dword [ebp - 0x18]
call dword [sym.imp.WS2_32.dll_closesocket]
lea ecx, [ebp + 0xb]
call fcn.00433a46
mov al, byte [eax]
push 0x467108
mov byte [ebp - 0x11], al
lea eax, [ebp - 0x11]
push eax
call sub.MSVCRT.dll__CxxThrowException
mov al, byte [0x46dadc]
mov ecx, 0x47a1b0
mov byte [ebp - 0x60], al
call fcn.0040da7a
push dword [esi + 8]
push dword [esi + 4]
push dword [esi + 0x14]
push eax
lea eax, [ebp - 0x5f]
push str.AA_s_n_u_n_u_n_u_n
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
mov edi, eax
mov eax, dword [esi]
add esp, 0x18
mov ecx, esi
call dword [eax + 0x30]
test eax, eax
je 0x409656
push eax
lea eax, [ebp + edi - 0x5f]
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
lea eax, [ebp - 0x5f]
push eax
call sub.MSVCRT.dll_strlen
mov edi, eax
pop ecx
inc edi
cmp edi, 0x24
jle 0x409688
push edi
lea eax, [ebp - 0x30]
push str.Init_message_it_too_long__d_bytes
push eax
call fcn.004109c8
add esp, 0xc
lea eax, [ebp - 0x30]
push 0x465b58
push eax
call sub.MSVCRT.dll__CxxThrowException
push str._sa78
push 0
push 0
lea eax, [ebp - 0x5f]
push 0x24
push eax
call fcn.0041079e
add esp, 0x14
push 0x24
pop eax
sub eax, edi
push eax
lea eax, [ebp + edi - 0x5f]
push 0
push eax
call sub.MSVCRT.dll_memset
mov edi, dword [ebp - 0x18]
add esp, 0xc
lea eax, [ebp - 0x60]
push 0
push 0x25
push eax
push edi
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0x25
je 0x4096f1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
lea eax, [ebp - 0x38]
push str.error_d__while_sending_Initial_message
push eax
call fcn.00409d8b
add esp, 0xc
lea eax, [ebp - 0x38]
push 0x467118
push eax
call sub.MSVCRT.dll__CxxThrowException
mov eax, dword [esi]
push ebx
push str.Sent_initial_message_to_router__s
push esi
call dword [eax + 0x14]
mov eax, dword [esi + 0x1c]
add esp, 0xc
test eax, eax
je 0x40970b
mov eax, dword [eax]
jmp 0x40970d
xor eax, eax
test eax, eax
push edi
je 0x409733
call dword [sym.imp.WS2_32.dll_closesocket]
lea ecx, [ebp + 0xb]
call fcn.00433a46
mov al, byte [eax]
push 0x467108
mov byte [ebp - 0x12], al
lea eax, [ebp - 0x12]
push eax
call sub.MSVCRT.dll__CxxThrowException
mov ecx, esi
call fcn.004099c5
push dword [ebp + 0xc]
mov eax, dword [esi]
push ebx
push str.Connected_to_router__s:_d_successfully
push esi
call dword [eax + 0x14]
mov eax, dword [esi]
add esp, 0x10
mov ecx, esi
push 3
call dword [eax + 0x2c]
mov eax, edi
jmp 0x409793
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8