Function at 0x5e06e0
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x707367
mov eax, dword fs:[0]
push eax
sub esp, 0xc4
mov eax, dword [0x831704]
xor eax, esp
mov dword [esp + 0xc0], eax
push ebx
push esi
push edi
mov eax, dword [0x831704]
xor eax, esp
push eax
lea eax, [esp + 0xd4]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [0x82e960], 0
mov edi, dword [esp + 0xe4]
mov ebx, dword [esp + 0xe8]
je 0x5e0771
cmp dword [esi + 8], 0
jne 0x5e073f
cmp dword [esi + 4], 0
je 0x5e0771
push str.Create__ing_thread_twice_
push str.m_state__STATE_NEW___m_hThread
push str.wxThreadInternal::Create
push 0x293
push str....._srcmsw_thread.cpp
call fcn.005c7220
add esp, 0x14
cmp byte [0x87c8e0], 0
je 0x5e0771
mov byte [0x87c8e0], 0
int3
lea eax, [esi + 0x10]
push eax
push 4
push edi
push 0x5e22a0
push ebx
push 0
call dword [sym.imp.MSVCR120.dll__beginthreadex]
add esp, 0x18
mov dword [esi + 4], eax
test eax, eax
jne 0x5e09b6
sub esp, 0x20
mov ecx, esp
push 0x721844
call fcn.00418040
push 1
call fcn.00439d10
add esp, 0x24
test al, al
je 0x5e09b2
push str.Cant_create_thread
lea ecx, [esp + 0x6c]
call fcn.00418040
xor eax, eax
mov dword [esp + 0xdc], 0
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], 0
mov word [esp + 0x24], ax
mov dword [esp + 0x3c], eax
mov byte [esp + 0xdc], 1
call fcn.005eae80
test eax, eax
je 0x5e0811
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x6c]
push ecx
mov ecx, eax
call fcn.005ecae0
mov esi, eax
test esi, esi
jne 0x5e0820
lea eax, [esp + 0x68]
push eax
call fcn.005ed1e0
add esp, 4
mov esi, eax
call fcn.005c92f0
mov dword [esp + 0x10], eax
mov byte [esp + 0xdc], 2
call fcn.005c92f0
mov dword [esp + 0x14], eax
mov byte [esp + 0xdc], 3
call fcn.005c92f0
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], 0
push str.wx.sys_error
lea ecx, [esp + 0x4c]
mov byte [esp + 0xe0], 4
call fcn.00418040
push 0x721844
push str.wxThreadInternal::Create
push 0x2b8
push str....._srcmsw_thread.cpp
push 1
lea ecx, [esp + 0x9c]
call fcn.00439de0
mov esi, eax
mov byte [esp + 0xdc], 6
call sub.KERNEL32.dll_GetLastError
push eax
lea eax, [esp + 0x4c]
mov ecx, esi
push eax
call fcn.0049dde0
lea ecx, [esp + 0x10]
mov esi, eax
call fcn.005e6500
push eax
push esi
call fcn.00439e70
push dword [esp + 0xd0]
mov esi, dword [sym.imp.MSVCR120.dll_free]
mov byte [esp + 0xe8], 5
call esi
add esp, 0xc
cmp dword [esp + 0xc4], 8
jb 0x5e08f0
push dword [esp + 0xb0]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
mov dword [esp + 0xc4], 7
lea ecx, [esp + 0x90]
mov dword [esp + 0xc0], 0
mov word [esp + 0xb0], ax
call fcn.00439c40
push dword [esp + 0x60]
call esi
add esp, 4
cmp dword [esp + 0x5c], 8
jb 0x5e0938
push dword [esp + 0x48]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
mov dword [esp + 0x5c], 7
lea ecx, [esp + 0x10]
mov dword [esp + 0x58], 0
mov word [esp + 0x48], ax
mov byte [esp + 0xdc], 1
call fcn.00420020
push dword [esp + 0x3c]
call esi
add esp, 4
cmp dword [esp + 0x38], 8
jb 0x5e097c
push dword [esp + 0x24]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
push dword [esp + 0x80]
xor eax, eax
mov dword [esp + 0x3c], 7
mov dword [esp + 0x38], 0
mov word [esp + 0x28], ax
call esi
add esp, 4
cmp dword [esp + 0x7c], 8
jb 0x5e09b2
push dword [esp + 0x68]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
xor al, al
jmp 0x5e09c8
mov eax, dword [esi + 0xc]
cmp eax, 0x32
je 0x5e09c6
push eax
mov ecx, esi
call fcn.005e1d30
mov al, 1
mov ecx, dword [esp + 0xd4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc0]
xor ecx, esp
call fcn.006d1ba7
add esp, 0xd0
ret 8