Function at 0x497110
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x60c510
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x72d150]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x28]
xor ebx, ebx
push eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x34], ebx
call fcn.004337a0
xor ecx, ecx
mov byte [esp + 0x30], 1
cmp byte [esp + 0x3c], cl
je 0x49715c
lea ecx, [ebx + 4]
mov eax, dword [esp + 0x38]
lea edx, [eax + 8]
push edx
push ecx
push eax
push 0x495cd0
push ebx
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0xc], eax
mov eax, dword [esp + 0x38]
cmp dword [eax + 0xc], ebx
jne 0x49722d
call fcn.004895c0
test al, al
jne 0x4971c7
call fcn.004895a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x10]
call eax
test eax, eax
je 0x4971c7
call fcn.004895a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x10]
call eax
mov ecx, dword [eax]
mov edx, dword [ecx + 0x10]
push str.New_thread_cannot_be_started
push 0x34
push str.E:PnzBsPnzBsTempFBCVersion037_00SrcPnzCodeUtilsPnzMtThreadWrapper.cpp
push 2
push eax
call edx
add esp, 0x14
mov edi, dword [0x69883c]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x30], 0
call fcn.00433800
mov eax, dword [esp + 0x38]
mov dword [esp + 0x30], 0xffffffff
cmp eax, ebx
je 0x497326
mov dword [esp + 0x38], ebx
mov esi, dword [eax + 4]
lea ecx, [esi + 4]
call fcn.00489550
test eax, eax
jne 0x497326
mov ecx, dword [esi + 0xc]
mov eax, dword [ecx]
mov edx, dword [eax]
call edx
lea ecx, [esi + 8]
call fcn.00489550
test eax, eax
jne 0x497326
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
jmp 0x497326
mov ecx, esi
call fcn.00496870
mov eax, dword [esp + 0x38]
mov ebx, dword [esi + 0x20]
mov ebp, dword [esi + 8]
add eax, 8
add esi, 8
push eax
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
call fcn.005ef7d0
mov edi, eax
mov eax, dword [edi]
test eax, eax
je 0x49725d
cmp eax, ebp
je 0x497262
call fcn.005cdc9b
cmp dword [edi + 4], ebx
je 0x4972b1
call fcn.004895c0
test al, al
jne 0x4972b1
call fcn.004895a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x10]
call eax
test eax, eax
je 0x4972b1
call fcn.004895a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x10]
call eax
mov edx, dword [esp + 0x38]
mov edx, dword [edx + 8]
mov ecx, dword [eax]
push edx
push str.Thread_with_id__i_already_exists_and_has_been_created_again
push 0x3d
push str.E:PnzBsPnzBsTempFBCVersion037_00SrcPnzCodeUtilsPnzMtThreadWrapper.cpp
push 2
push eax
mov eax, dword [ecx + 0x10]
call eax
add esp, 0x18
mov edx, dword [esp + 0x38]
lea ecx, [esp + 0x38]
push ecx
add edx, 8
push edx
mov ecx, esi
call fcn.00496f30
mov ecx, eax
call sym.start.exe_public:_class_CPnzSmartPtr_struct_CPnzRouterNode::CRpcBatch_____thiscall_CPnzSmartPtr_struct_CPnzRouterNode::CRpcBatch_::operator_class_CPnzSmartPtr_struct_CPnzRouterNode::CRpcBatch__const__
mov eax, dword [esp + 0x38]
mov edi, dword [eax + 8]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x30], 0
call fcn.00433800
mov eax, dword [esp + 0x38]
mov dword [esp + 0x30], 0xffffffff
test eax, eax
je 0x497326
mov dword [esp + 0x38], 0
mov esi, dword [eax + 4]
lea ecx, [esi + 4]
call fcn.00489550
test eax, eax
jne 0x497326
mov ecx, dword [esi + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
call eax
lea ecx, [esi + 8]
call fcn.00489550
test eax, eax
jne 0x497326
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
mov eax, edi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 8