Function at 0x42de00
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4365e1
mov eax, dword fs:[0]
push eax
sub esp, 0x178
push ebx
push esi
push edi
mov eax, dword [0x445018]
xor eax, esp
push eax
lea eax, [esp + 0x188]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x14], ebx
mov esi, dword [ebx + 4]
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [esi + 0x148]
push eax
mov dword [esp + 0x1c], vtable.SocketEngine::AutoCounter.0
mov dword [esp + 0x20], esi
mov dword [esp + 0x40], eax
mov byte [esp + 0x44], 0
call edi
add dword [esi + 0x160], 1
lea ecx, [esp + 0x3c]
call fcn.004021e0
mov dword [esp + 0x190], 1
mov esi, dword [ebx + 4]
add esi, 0x44
lea eax, [esi + 4]
push eax
mov dword [esp + 0x28], eax
mov byte [esp + 0x2c], 0
call edi
cmp dword [esi + 0x1c], 2
lea ecx, [esp + 0x24]
sete byte [esp + 0x13]
call fcn.004021e0
cmp byte [esp + 0x13], 0
jne 0x42df9a
call fcn.00402130
mov esi, eax
mov eax, dword [esi + 4]
xor edi, edi
push edi
add eax, 0x14
push eax
lea ecx, [esp + 0x4c]
call fcn.004198b0
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
and eax, 0x1f
lea ecx, [esp + 0x44]
mov dword [esp + 0x14], eax
call fcn.004021e0
test byte [esp + 0x14], 1
je 0x42df6b
push 1
push 2
lea ecx, [esp + 0x70]
mov dword [esp + 0x54], 1
mov dword [esp + 0x58], str..NetworkModelSocketEngine.cpp
mov dword [esp + 0x5c], str.SocketEngine::OpenAsync
mov dword [esp + 0x60], 0x119
mov dword [esp + 0x64], edi
mov dword [esp + 0x68], edi
mov dword [esp + 0x6c], edi
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_int_]
mov byte [esp + 0x190], 3
mov edx, dword [ebx + 4]
mov eax, dword [edx + 0x164]
push str._OpenAsync_failure___Closed
push eax
lea ecx, [esp + 0x70]
push str.SEngine_:
push ecx
call fcn.00401ae0
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___void_const__]
push eax
call fcn.00401ae0
add esp, 8
lea ecx, [esp + 0x4c]
mov byte [esp + 0x190], 1
call fcn.00428850
lea ecx, [esp + 0x18]
mov dword [esp + 0x190], 0xffffffff
call fcn.0042d0e0
or eax, 0xffffffff
mov ecx, dword [esp + 0x188]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov esi, dword [ebx + 4]
add esi, 0x124
lea eax, [esi + 4]
push eax
mov dword [esp + 0x38], eax
mov byte [esp + 0x3c], 0
call edi
mov dl, byte [esi + 0x1c]
lea ecx, [esp + 0x34]
mov byte [esp + 0x13], dl
call fcn.004021e0
cmp byte [esp + 0x13], 0
jne 0x42df6b
mov esi, dword [ebx + 4]
mov eax, dword [ebp + 0xc]
add esi, 4
push eax
mov word [esi], 2
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [ebp + 8]
push ecx
mov word [esi + 2], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [esi + 4], eax
mov esi, dword [ebx + 4]
add esi, 0x44
mov edi, 1
call fcn.00430ce0
mov esi, dword [ebx + 4]
add esi, 0x84
lea eax, [esi + 4]
push eax
mov dword [esp + 0x30], eax
mov byte [esp + 0x34], 0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [esi + 0x1c]
lea ecx, [esp + 0x2c]
call fcn.004021e0
test esi, esi
je 0x42e037
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
push 0
push edi
mov ecx, esi
call eax
mov esi, dword [ebx + 4]
mov edi, dword [ebp + 0x10]
add esi, 0x16c
call fcn.00430ce0
mov esi, dword [ebx + 4]
mov edi, dword [ebp + 0x14]
add esi, 0x18c
call fcn.00430ce0
mov edx, dword [ebx + 4]
lea ecx, [esp + 0x20]
push ecx
push 0
push edx
push 0x42e4e0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov esi, dword [ebx + 4]
jne 0x42e167
add esi, 0x44
lea edi, [eax + 2]
call fcn.00430ce0
mov eax, dword [ebx + 4]
add eax, 0x84
call fcn.00430e60
test eax, eax
je 0x42e0a6
mov edx, dword [eax]
push 0
mov ecx, eax
mov eax, dword [edx + 0xc]
push edi
call eax
call fcn.00402130
call fcn.00429250
test al, 0x10
je 0x42df6b
push 1
push 2
lea ecx, [esp + 0x10c]
mov dword [esp + 0xf0], 0x10
mov dword [esp + 0xf4], str..NetworkModelSocketEngine.cpp
mov dword [esp + 0xf8], str.SocketEngine::OpenAsync
mov dword [esp + 0xfc], 0x133
mov dword [esp + 0x100], 0
mov dword [esp + 0x104], 4
mov dword [esp + 0x108], 0xfffff825
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_int_]
push 0xfffff825
push ecx
mov byte [esp + 0x198], 6
mov ecx, dword [ebx + 4]
push str._OpenAsync___
push ecx
lea edx, [esp + 0x114]
push str._SEngine_:
push edx
call fcn.00401ae0
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___void_const__]
push eax
call fcn.00401ae0
add esp, 0xc
mov ecx, eax
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___int_]
lea ecx, [esp + 0xe8]
jmp 0x42df5e
add esi, 0x1cc
mov edi, eax
call fcn.00430ce0
mov esi, dword [ebx + 4]
mov edi, dword [esp + 0x20]
add esi, 0x1ac
call fcn.00430ce0
mov esi, dword [ebx + 4]
add esi, 0x104
xor bl, bl
call fcn.0041ea00
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 4]
mov edx, dword [ecx + 0x168]
push 0x64
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [esp + 0x18]
mov dword [esp + 0x190], 0xffffffff
call fcn.0042d0e0
xor eax, eax
mov ecx, dword [esp + 0x188]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10