Function at 0x4f9a3d
Capabilities:
Create thread
Set socket configuration

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5bdb5d
push eax
mov dword fs:[0], esp
sub esp, 0x11c
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x74]
test eax, eax
je 0x4f9b71
mov ecx, dword [esi + 0x8c]
mov edx, dword [eax + 0xec]
cmp ecx, edx
jl 0x4f9b71
mov eax, dword [eax + 8]
push str.travelsky
push eax
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
test eax, eax
jne 0x4f9b71
push eax
push 0x2b
mov ecx, esi
call fcn.0050c150
mov eax, dword [0x641030]
test eax, eax
je 0x4f9af2
mov cl, byte [eax + 0x40]
test cl, cl
je 0x4f9af2
add eax, 0x250
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [esi + 0x74]
push 0
push 0x62bc58
push 0x6145d8
push ecx
add edx, 0xac
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [0x641030]
push str.runtime
push str.tdsms
mov ecx, dword [eax + 0x44]
push ecx
call fcn.004ed3c0
mov edx, dword [0x641030]
add esp, 0x1c
mov eax, dword [edx + 0x248]
lea ecx, [edx + 0x248]
call dword [eax + 0x1c]
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push 0x62bc58
call sub.MFC42.DLL_CString::CString_3
push ecx
mov dword [esp + 0x13c], 0
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x6145d8
call sub.MFC42.DLL_CString::CString_3
mov edx, dword [esi + 0x74]
push ecx
add edx, 0xac
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
mov byte [esp + 0x144], 1
call sub.MFC42.DLL_CString::CString_2
push ecx
mov byte [esp + 0x144], 2
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x6192e0
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [0x63bc8c]
mov dword [esp + 0x144], 0xffffffff
call fcn.00459390
jmp 0x4fa787
mov eax, dword [esi + 0x168]
test eax, eax
jne 0x4f9ca7
mov ecx, esi
call fcn.00505fa0
test al, al
je 0x4f9ca7
mov eax, dword [esi + 0x8c]
lea ecx, [esp + 0x2c]
inc eax
push eax
push str.VCPID
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
mov eax, dword [0x641030]
add esp, 0xc
test eax, eax
je 0x4f9c16
mov cl, byte [eax + 0x40]
test cl, cl
je 0x4f9c16
add eax, 0x250
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x74]
lea edx, [esp + 0x2c]
push 0
push edx
push 0x6145d8
push ecx
add eax, 0xac
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [0x641030]
push str.runtime
push str.tdsms
mov edx, dword [ecx + 0x44]
push edx
call fcn.004ed3c0
mov eax, dword [0x641030]
add esp, 0x1c
mov edx, dword [eax + 0x248]
lea ecx, [eax + 0x248]
call dword [edx + 0x1c]
push ecx
lea eax, [esp + 0x30]
mov ecx, esp
mov dword [esp + 0x14], esp
push eax
call sub.MFC42.DLL_CString::CString_3
push ecx
mov dword [esp + 0x13c], 3
mov ecx, esp
mov dword [esp + 0x24], esp
push 0x6145d8
call sub.MFC42.DLL_CString::CString_3
mov edx, dword [esi + 0x74]
push ecx
add edx, 0xac
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
mov byte [esp + 0x144], 4
call sub.MFC42.DLL_CString::CString_2
push ecx
mov byte [esp + 0x144], 5
mov ecx, esp
mov dword [esp + 0x24], esp
push 0x6192e0
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [0x63bc8c]
mov dword [esp + 0x144], 0xffffffff
call fcn.00459390
push 0
push 0x26
mov ecx, esi
call fcn.0050c150
mov ecx, esi
call fcn.00505f30
jmp 0x4fa787
cmp dword [esi + 0x78], 0x26
jne 0x4f9cb8
push 0
push 0x27
mov ecx, esi
call fcn.0050c150
mov eax, dword [esi + 0x74]
mov ebx, dword [sym.imp.MSVCRT.dll_sprintf]
mov ebp, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [eax + 0x118]
mov edx, dword [ecx - 8]
test edx, edx
je 0x4f9dd6
mov edx, dword [esi + 0x8c]
mov eax, ecx
inc edx
lea ecx, [esp + 0x2c]
push edx
push eax
push 0x62bc34
push ecx
call ebx
mov eax, dword [0x641030]
add esp, 0x10
test eax, eax
je 0x4f9d5b
mov cl, byte [eax + 0x40]
test cl, cl
je 0x4f9d5b
add eax, 0x250
push eax
call ebp
mov eax, dword [esi + 0x74]
lea edx, [esp + 0x2c]
push 0
push edx
push 0x6145d8
push ecx
add eax, 0xac
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [0x641030]
push str.runtime
push str.tdsms
mov edx, dword [ecx + 0x44]
push edx
call fcn.004ed3c0
mov eax, dword [0x641030]
add esp, 0x1c
mov edx, dword [eax + 0x248]
lea ecx, [eax + 0x248]
call dword [edx + 0x1c]
push ecx
lea eax, [esp + 0x30]
mov ecx, esp
mov dword [esp + 0x14], esp
push eax
call sub.MFC42.DLL_CString::CString_3
push ecx
mov dword [esp + 0x13c], 6
mov ecx, esp
mov dword [esp + 0x24], esp
push 0x6145d8
call sub.MFC42.DLL_CString::CString_3
mov edx, dword [esi + 0x74]
push ecx
add edx, 0xac
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
mov byte [esp + 0x144], 7
call sub.MFC42.DLL_CString::CString_2
push ecx
mov byte [esp + 0x144], 8
mov ecx, esp
mov dword [esp + 0x24], esp
push 0x6192e0
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [0x63bc8c]
or edi, 0xffffffff
mov dword [esp + 0x144], edi
call fcn.00459390
jmp 0x4f9dd9
or edi, 0xffffffff
mov ecx, dword [esi + 0x8c]
lea eax, [esi + 8]
inc ecx
lea edx, [esp + 0x2c]
push ecx
push eax
push 0x62bc10
push edx
call ebx
mov eax, dword [0x641030]
add esp, 0x10
test eax, eax
je 0x4f9e5e
mov cl, byte [eax + 0x40]
test cl, cl
je 0x4f9e5e
add eax, 0x250
push eax
call ebp
mov edx, dword [esi + 0x74]
lea eax, [esp + 0x2c]
push 0
push eax
push 0x6145d8
push ecx
add edx, 0xac
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [0x641030]
push str.runtime
push str.tdsms
mov ecx, dword [eax + 0x44]
push ecx
call fcn.004ed3c0
mov edx, dword [0x641030]
add esp, 0x1c
mov eax, dword [edx + 0x248]
lea ecx, [edx + 0x248]
call dword [eax + 0x1c]
push ecx
lea edx, [esp + 0x30]
mov ecx, esp
mov dword [esp + 0x14], esp
push edx
call sub.MFC42.DLL_CString::CString_3
push ecx
mov dword [esp + 0x13c], 9
mov ecx, esp
mov dword [esp + 0x24], esp
push 0x6145d8
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [esi + 0x74]
push ecx
add eax, 0xac
mov ecx, esp
mov dword [esp + 0x24], esp
push eax
mov byte [esp + 0x144], 0xa
call sub.MFC42.DLL_CString::CString_2
push ecx
mov byte [esp + 0x144], 0xb
mov ecx, esp
mov dword [esp + 0x24], esp
push 0x6192e0
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [0x63bc8c]
mov dword [esp + 0x144], edi
call fcn.00459390
mov eax, dword [esi + 0x74]
mov cl, byte [eax + 0x9e]
test cl, cl
je 0x4f9ff7
mov edx, dword [0x641030]
lea ecx, [eax + 0xa0]
add eax, 0xa4
push ecx
push eax
lea ecx, [edx + 0x28]
call fcn.005188d0
mov ecx, dword [esi + 0x74]
mov byte [ecx + 0x9e], al
mov edx, dword [esi + 0x74]
mov al, byte [edx + 0x9e]
test al, al
jne 0x4f9ff7
mov eax, dword [0x641030]
test eax, eax
je 0x4f9f82
mov cl, byte [eax + 0x40]
test cl, cl
je 0x4f9f82
add eax, 0x250
push eax
call ebp
mov eax, dword [esi + 0x74]
push 0
push 0x62bbe8
push 0x6145d8
push ecx
add eax, 0xac
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [0x641030]
push str.runtime
push str.tdsms
mov edx, dword [ecx + 0x44]
push edx
call fcn.004ed3c0
mov eax, dword [0x641030]
add esp, 0x1c
mov edx, dword [eax + 0x248]
lea ecx, [eax + 0x248]
call dword [edx + 0x1c]
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push 0x62bbe8
call sub.MFC42.DLL_CString::CString_3
push ecx
mov dword [esp + 0x13c], 0xc
mov ecx, esp
mov dword [esp + 0x24], esp
push 0x6145d8
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [esi + 0x74]
push ecx
add eax, 0xac
mov ecx, esp
mov dword [esp + 0x24], esp
push eax
mov byte [esp + 0x144], 0xd
call sub.MFC42.DLL_CString::CString_2
push ecx
mov byte [esp + 0x144], 0xe
mov ecx, esp
mov dword [esp + 0x24], esp
push 0x6192e0
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [0x63bc8c]
mov dword [esp + 0x144], edi
call fcn.00459390
mov ecx, dword [esi + 0x74]
mov al, byte [ecx + 0x9e]
test al, al
je 0x4fa10e
mov ecx, esi
call fcn.0050cb70
mov eax, dword [esi + 0x74]
lea ecx, [esp + 0x2c]
mov edx, dword [eax + 0xa0]
mov eax, dword [eax + 0xac]
push edx
push eax
push str.____________s_
push ecx
call ebx
mov eax, dword [0x641030]
add esp, 0x10
test eax, eax
je 0x4fa098
mov cl, byte [eax + 0x40]
test cl, cl
je 0x4fa098
add eax, 0x250
push eax
call ebp
mov eax, dword [esi + 0x74]
lea edx, [esp + 0x2c]
push 0
push edx
push 0x6145d8
push ecx
add eax, 0xac
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [0x641030]
push str.runtime
push str.tdsms
mov edx, dword [ecx + 0x44]
push edx
call fcn.004ed3c0
mov eax, dword [0x641030]
add esp, 0x1c
mov edx, dword [eax + 0x248]
lea ecx, [eax + 0x248]
call dword [edx + 0x1c]
push ecx
lea eax, [esp + 0x30]
mov ecx, esp
mov dword [esp + 0x14], esp
push eax
call sub.MFC42.DLL_CString::CString_3
push ecx
mov dword [esp + 0x13c], 0xf
mov ecx, esp
mov dword [esp + 0x24], esp
push 0x6145d8
call sub.MFC42.DLL_CString::CString_3
mov edx, dword [esi + 0x74]
push ecx
add edx, 0xac
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
mov byte [esp + 0x144], 0x10
call sub.MFC42.DLL_CString::CString_2
push ecx
mov byte [esp + 0x144], 0x11
mov ecx, esp
mov dword [esp + 0x24], esp
push 0x6192e0
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [0x63bc8c]
mov dword [esp + 0x144], edi
call fcn.00459390
mov eax, dword [esi + 0x74]
mov ebx, dword [sym.imp.MSVCRT.dll__mbsicmp]
add eax, 8
push str.travelsky
mov eax, dword [eax]
push eax
call ebx
add esp, 8
test eax, eax
mov al, byte [esi + 0x2c]
je 0x4fa647
test al, al
je 0x4fa326
push 0x30
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
mov dword [esp + 0x134], 0x12
je 0x4fa160
mov ecx, eax
call sym.ETermProxy.exe_public:_void___thiscall_CSslClientSocket::constructor_void_
jmp 0x4fa162
xor eax, eax
mov dword [esi + 0x3c], eax
mov dword [eax + 8], esi
mov eax, dword [esi + 0x74]
mov dword [esi + 0x154], edi
add eax, 8
mov byte [esi + 0x158], 0
push str.eterm_ddn
mov dword [esp + 0x138], edi
mov eax, dword [eax]
push eax
call ebx
add esp, 8
test eax, eax
jne 0x4fa2c4
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [esi + 0x74]
lea edx, [esp + 0x14]
mov ebx, 0x13
mov ecx, dword [eax]
mov dword [esp + 0x134], ebx
push ecx
push 0x62bba0
push edx
call sub.MFC42.DLL_CString::Format
mov eax, dword [0x641030]
add esp, 0xc
test eax, eax
je 0x4fa232
mov cl, byte [eax + 0x40]
test cl, cl
je 0x4fa232
add eax, 0x250
push eax
call ebp
push 0
lea ecx, [esp + 0x18]
call fcn.0041a850
push eax
mov eax, dword [esi + 0x74]
push 0x6145d8
push ecx
add eax, 0xac
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [0x641030]
push str.runtime
push str.tdsms
mov edx, dword [ecx + 0x44]
push edx
call fcn.004ed3c0
mov eax, dword [0x641030]
add esp, 0x1c
mov edx, dword [eax + 0x248]
lea ecx, [eax + 0x248]
call dword [edx + 0x1c]
push ecx
lea eax, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x14], esp
push eax
call sub.MFC42.DLL_CString::CString_2
push ecx
mov byte [esp + 0x13c], 0x14
mov ecx, esp
mov dword [esp + 0x24], esp
push 0x6145d8
call sub.MFC42.DLL_CString::CString_3
mov edx, dword [esi + 0x74]
push ecx
add edx, 0xac
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
mov byte [esp + 0x144], 0x15
call sub.MFC42.DLL_CString::CString_2
push ecx
mov byte [esp + 0x144], 0x16
mov ecx, esp
mov dword [esp + 0x30], esp
push 0x6192e0
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [0x63bc8c]
mov byte [esp + 0x144], bl
call fcn.00459390
mov eax, dword [esi + 0x74]
push eax
lea ecx, [eax + 0x118]
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x14]
mov dword [esp + 0x134], edi
call sub.MFC42.DLL_CString::CString
mov eax, dword [esi + 0x150]
lea edi, [esi + 0x150]
test eax, eax
jne 0x4fa316
mov ebp, dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
mov ebx, 1
push 0
push ebx
push 0
call ebp
push 0
push 0
push ebx
push 0
mov dword [esi + 0x160], eax
call ebp
push edi
push 0
push esi
push 0x4faa80
push 0
push 0
mov dword [esi + 0x15c], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x164], eax
push 0
push 8
mov ecx, esi
call fcn.0050c150
jmp 0x4fa780
mov eax, dword [esi + 0x74]
push str.eterm_ky
add eax, 8
mov eax, dword [eax]
push eax
call ebx
add esp, 8
test eax, eax
jne 0x4fa3e7
push 0xc6fc
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
mov dword [esp + 0x134], 0x17
je 0x4fa36a
mov ecx, eax
call fcn.0050ec70
jmp 0x4fa36c
xor eax, eax
push 0x14
mov dword [esp + 0x138], edi
mov dword [esi + 0x404], eax
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
mov dword [esp + 0x134], 0x18
je 0x4fa39f
mov ecx, eax
call sym.ETermProxy.exe_public:_void___thiscall_CClientSock::constructor_void_
jmp 0x4fa3a1
xor eax, eax
push 2
mov dword [esi + 0x16c], eax
push 0
mov dword [eax + 8], esi
mov ecx, dword [esi + 0x16c]
push 0x3f
push 1
mov dword [esp + 0x144], edi
call sub.MFC42.DLL_CAsyncSocket::Socket
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0x16c]
push eax
lea eax, [esi + 8]
mov edx, dword [ecx]
push eax
call dword [edx + 0x4c]
push 0
push 7
mov ecx, esi
call fcn.0050c150
jmp 0x4fa787
push 0x14
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
mov dword [esp + 0x134], 0x19
je 0x4fa40d
mov ecx, eax
call sym.ETermProxy.exe_public:_void___thiscall_CClientSock::constructor_void_
jmp 0x4fa40f
xor eax, eax
push 2
mov dword [esi + 0x3c], eax
push 0
mov ebx, 1
mov dword [eax + 8], esi
mov ecx, dword [esi + 0x3c]
push 0x3f
push ebx
mov dword [esp + 0x144], edi
call sub.MFC42.DLL_CAsyncSocket::Socket
mov eax, dword [esi + 0x74]
mov edi, dword [sym.imp.MSVCRT.dll__mbsicmp]
add eax, 8
push str.eterm_ddn
mov eax, dword [eax]
push eax
call edi
add esp, 8
test eax, eax
jne 0x4fa5c6
mov edx, dword [esi + 0x3c]
lea ecx, [esp + 0x28]
push 4
mov dword [esp + 0x2c], ebx
mov eax, dword [edx + 4]
push ecx
push 4
push 0xffff
push eax
call sub.WSOCK32.dll_setsockopt
mov ecx, dword [esi + 0x74]
mov eax, dword [ecx]
mov ecx, dword [esi + 0x3c]
push eax
push 0
call sub.MFC42.DLL_CAsyncSocket::Bind
test eax, eax
jne 0x4fa5eb
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x24]
mov edi, eax
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [esi + 0x74]
mov edx, dword [esi + 0x28]
push edi
push edx
mov ecx, dword [eax]
lea edx, [esp + 0x2c]
push ecx
mov ebx, 0x1a
push 0x62bb74
push edx
mov dword [esp + 0x148], ebx
call sub.MFC42.DLL_CString::Format
mov eax, dword [0x641030]
add esp, 0x14
test eax, eax
je 0x4fa52f
mov cl, byte [eax + 0x40]
test cl, cl
je 0x4fa52f
add eax, 0x250
push eax
call ebp
push 0
lea ecx, [esp + 0x28]
call fcn.0041a850
push eax
mov eax, dword [esi + 0x74]
push 0x6145d8
push ecx
add eax, 0xac
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [0x641030]
push str.runtime
push str.tdsms
mov edx, dword [ecx + 0x44]
push edx
call fcn.004ed3c0
mov eax, dword [0x641030]
add esp, 0x1c
mov edx, dword [eax + 0x248]
lea ecx, [eax + 0x248]
call dword [edx + 0x1c]
push ecx
lea eax, [esp + 0x28]
mov ecx, esp
mov dword [esp + 0x24], esp
push eax
call sub.MFC42.DLL_CString::CString_2
push ecx
mov byte [esp + 0x13c], 0x1b
mov ecx, esp
mov dword [esp + 0x18], esp
push 0x6145d8
call sub.MFC42.DLL_CString::CString_3
mov edx, dword [esi + 0x74]
push ecx
add edx, 0xac
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
mov byte [esp + 0x144], 0x1c
call sub.MFC42.DLL_CString::CString_2
push ecx
mov byte [esp + 0x144], 0x1d
mov ecx, esp
mov dword [esp + 0x28], esp
push 0x6192e0
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [0x63bc8c]
mov byte [esp + 0x144], bl
call fcn.00459390
push 0
push 0xf
mov ecx, esi
call fcn.0050c150
lea ecx, [esp + 0x24]
mov dword [esp + 0x134], 0xffffffff
call sub.MFC42.DLL_CString::CString
jmp 0x4fa780
mov eax, dword [esi + 0x74]
cmp byte [eax + 0x58], bl
jne 0x4fa5eb
mov eax, dword [eax + 8]
push str.eterm_vpn
push eax
call edi
add esp, 8
test eax, eax
jne 0x4fa5eb
mov ecx, esi
call fcn.0050d990
test al, al
je 0x4fa61c
mov eax, dword [esi + 0x74]
mov cl, byte [eax + 0x9e]
test cl, cl
mov ecx, dword [esi + 0x3c]
mov edx, dword [ecx]
je 0x4fa62c
mov eax, dword [eax + 0xa0]
push 0x162
push eax
call dword [edx + 0x4c]
push 0
push 5
mov ecx, esi
call fcn.0050c150
jmp 0x4fa780
push 0
push 0xf
mov ecx, esi
call fcn.0050c150
jmp 0x4fa780
mov eax, dword [esi + 0x28]
push eax
lea eax, [esi + 8]
push eax
call dword [edx + 0x4c]
push 0
push 7
mov ecx, esi
call fcn.0050c150
jmp 0x4fa780
test al, al
je 0x4fa6f2
push 0x30
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
mov dword [esp + 0x134], 0x1e
je 0x4fa675
mov ecx, eax
call sym.ETermProxy.exe_public:_void___thiscall_CSslClientSocket::constructor_void_
jmp 0x4fa677
xor eax, eax
mov dword [esi + 0x3c], eax
mov dword [eax + 8], esi
mov eax, dword [esi + 0x150]
mov dword [esp + 0x134], edi
mov dword [esi + 0x154], edi
lea edi, [esi + 0x150]
test eax, eax
mov byte [esi + 0x158], 0
mov ebx, 1
jne 0x4fa6e3
mov ebp, dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
push 0
push ebx
push 0
call ebp
push 0
push 0
push ebx
push 0
mov dword [esi + 0x160], eax
call ebp
push edi
push 0
push esi
push 0x4faa80
push 0
push 0
mov dword [esi + 0x15c], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x164], eax
push 0
mov byte [esi + 0x138], bl
push 8
jmp 0x4fa776
mov ebx, 1
push 0x14
mov byte [esi + 0x138], bl
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
mov dword [esp + 0x134], 0x1f
je 0x4fa723
mov ecx, eax
call sym.ETermProxy.exe_public:_void___thiscall_CClientSock::constructor_void_
jmp 0x4fa725
xor eax, eax
push 2
mov dword [esi + 0x3c], eax
push 0
mov dword [eax + 8], esi
mov ecx, dword [esi + 0x3c]
push 0x3f
push ebx
mov dword [esp + 0x144], edi
call sub.MFC42.DLL_CAsyncSocket::Socket
mov eax, dword [esi + 0x74]
mov cl, byte [eax + 0x9e]
test cl, cl
mov ecx, dword [esi + 0x3c]
mov edx, dword [ecx]
je 0x4fa768
mov eax, dword [eax + 0xa0]
push 0x162
push eax
call dword [edx + 0x4c]
push 0
push 5
jmp 0x4fa776
push 0x50
push str.web2.travelsky.com
call dword [edx + 0x4c]
push 0
push 7
mov ecx, esi
call fcn.0050c150
mov dword [esi + 0x7c], ebx
mov ecx, esi
call sym.ETermProxy.exe_public:_void___thiscall_CClientObject::StartTimer_void_
mov ecx, dword [esp + 0x12c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x128
ret