Function at 0x492840
Capabilities:
Print debug messages
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b57fb
mov eax, dword fs:[0]
push eax
sub esp, 0x158
mov eax, dword [0x4e5258]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x11c], ecx
mov eax, dword [ebp - 0x11c]
add eax, 0x30
push eax
lea ecx, [ebp - 0x13c]
call fcn.0048f930
mov dword [ebp - 4], 0
lea ecx, [ebp + 8]
push ecx
lea edx, [ebp - 0x114]
push edx
mov ecx, dword [ebp - 0x11c]
add ecx, 0x20
call fcn.00495470
lea eax, [ebp - 0x158]
push eax
mov ecx, dword [ebp - 0x11c]
add ecx, 0x20
call fcn.0043e480
push eax
lea ecx, [ebp - 0x114]
call fcn.00439040
movzx ecx, al
test ecx, ecx
je 0x49295a
lea ecx, [ebp - 0x114]
call fcn.00439290
mov edx, dword [eax + 8]
mov dword [ebp - 0x140], edx
mov eax, dword [ebp - 0x140]
mov dword [ebp - 0x128], eax
cmp dword [ebp - 0x128], 0
je 0x492910
push 1
mov ecx, dword [ebp - 0x128]
call fcn.00491490
mov dword [ebp - 0x144], eax
jmp 0x49291a
mov dword [ebp - 0x144], 0
mov ecx, dword [ebp - 0x114]
push ecx
lea edx, [ebp - 0x15c]
push edx
mov ecx, dword [ebp - 0x11c]
add ecx, 0x20
call fcn.0048f570
mov byte [ebp - 0x11d], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x13c]
call fcn.00490ae0
mov al, byte [ebp - 0x11d]
jmp 0x492c47
lea ecx, [ebp - 0x114]
call fcn.00439290
mov eax, dword [eax + 8]
cmp dword [eax + 0x24], 0
je 0x492986
lea ecx, [ebp - 0x114]
call fcn.00439290
mov ecx, dword [eax + 8]
cmp dword [ecx + 0x28], 0
jg 0x492a0e
lea ecx, [ebp - 0x114]
call fcn.00439290
mov edx, dword [eax + 8]
mov dword [ebp - 0x148], edx
mov eax, dword [ebp - 0x148]
mov dword [ebp - 0x12c], eax
cmp dword [ebp - 0x12c], 0
je 0x4929c4
push 1
mov ecx, dword [ebp - 0x12c]
call fcn.00491490
mov dword [ebp - 0x14c], eax
jmp 0x4929ce
mov dword [ebp - 0x14c], 0
mov ecx, dword [ebp - 0x114]
push ecx
lea edx, [ebp - 0x160]
push edx
mov ecx, dword [ebp - 0x11c]
add ecx, 0x20
call fcn.0048f570
mov byte [ebp - 0x11e], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x13c]
call fcn.00490ae0
mov al, byte [ebp - 0x11e]
jmp 0x492c47
mov ecx, dword [ebp - 0x11c]
call fcn.00497820
mov dword [ebp - 0x118], eax
mov eax, dword [ebp - 0x118]
mov ecx, dword [ebp + 8]
mov dword [eax + 0x18], ecx
mov edx, dword [ebp + 0xc]
mov dword [eax + 0x1c], edx
mov eax, dword [ebp - 0x118]
mov dword [eax + 0x20], 1
lea ecx, [ebp - 0x114]
call fcn.00439290
mov ecx, dword [eax + 8]
mov edx, dword [ecx + 0x30]
mov dword [ebp - 0x134], edx
lea ecx, [ebp - 0x114]
call fcn.00439290
mov eax, dword [eax + 8]
cmp dword [eax + 0x28], 0
jle 0x492b0f
lea ecx, [ebp - 0x114]
call fcn.00439290
mov ecx, dword [eax + 8]
mov edx, dword [ecx + 0x28]
add edx, 2
push edx
mov ecx, dword [ebp - 0x118]
add ecx, 0x44
call fcn.0049c850
lea ecx, [ebp - 0x114]
call fcn.00439290
mov eax, dword [eax + 8]
movzx ecx, word [eax + 0x28]
push ecx
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x124], ax
push 2
lea edx, [ebp - 0x124]
push edx
push 0
mov ecx, dword [ebp - 0x118]
add ecx, 0x44
call fcn.00491240
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
lea ecx, [ebp - 0x114]
call fcn.00439290
mov eax, dword [eax + 8]
mov ecx, dword [eax + 0x28]
push ecx
lea ecx, [ebp - 0x114]
call fcn.00439290
mov edx, dword [eax + 8]
mov eax, dword [edx + 0x24]
push eax
push 2
mov ecx, dword [ebp - 0x118]
add ecx, 0x44
call fcn.00491240
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
push 0
mov ecx, dword [ebp - 0x118]
add ecx, 0x44
call fcn.00491240
mov dword [ebp - 0x150], eax
mov ecx, dword [ebp - 0x118]
add ecx, 0x44
call fcn.0049d070
mov dword [ebp - 0x154], eax
push 0
mov ecx, dword [ebp - 0x118]
push ecx
push 0
lea edx, [ebp - 0x164]
push edx
push 1
lea eax, [ebp - 0x154]
push eax
mov ecx, dword [ebp - 0x134]
push ecx
call dword [sym.imp.WS2_32.dll_WSASend]
test eax, eax
je 0x492c28
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x130], eax
cmp dword [ebp - 0x130], 0x3e5
je 0x492c28
mov edx, dword [ebp - 0x130]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
push str._Pro5_Lib__DNSProxy::startTcpSend__I64u_failed__err_d__r_n
lea edx, [ebp - 0x110]
push edx
call fcn.00441870
add esp, 0x14
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 0x118]
mov dword [ecx + 0x20], 2
mov ecx, dword [ebp - 0x118]
add ecx, 0x44
call fcn.004603e0
mov edx, dword [ebp - 0x118]
push edx
push 0
mov eax, dword [ebp - 0x134]
push eax
mov ecx, dword [ebp - 0x11c]
add ecx, 4
call fcn.0049c510
movzx ecx, al
test ecx, ecx
jne 0x492c07
mov edx, dword [ebp - 0x118]
push edx
mov ecx, dword [ebp - 0x11c]
call fcn.004946f0
mov byte [ebp - 0x11f], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x13c]
call fcn.00490ae0
mov al, byte [ebp - 0x11f]
jmp 0x492c47
mov byte [ebp - 0x120], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x13c]
call fcn.00490ae0
mov al, byte [ebp - 0x120]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004adff8
mov esp, ebp
pop ebp
ret 8