Function at 0x4416a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x5c8b25
mov eax, dword fs:[0]
push eax
sub esp, 0x13c
mov eax, dword [0x694114]
xor eax, esp
mov dword [esp + 0x138], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x694114]
xor eax, esp
push eax
lea eax, [esp + 0x150]
mov dword fs:[0], eax
mov eax, dword [esp + 0x164]
mov esi, dword [esp + 0x160]
mov edi, dword [esp + 0x16c]
mov ebp, ecx
xor ebx, ebx
mov dword [esp + 0x20], ebx
mov ecx, dword [ebp]
mov dword [esp + 0x18], ebp
mov dword [esp + 0x24], eax
mov dword [esp + 0x84], ebp
cmp byte [ecx + 0x20], bl
je 0x441719
lea edx, [ebp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp edi, ebx
push esi
mov dword [esp + 0x15c], ebx
setne byte [esp + 0x1a]
mov dword [esp + 0x20], ebx
mov byte [esp + 0x1b], bl
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
cmp eax, ebx
jne 0x441755
cmp byte [esp + 0x16], bl
je 0x44175d
mov dword [ebp + 8], 4
mov byte [esp + 0x17], 1
mov byte [esp + 0x16], bl
jmp 0x44175d
cmp eax, 2
sete byte [esp + 0x17]
mov ebp, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push esi
call ebp
cmp byte [esp + 0x17], bl
je 0x441775
mov ecx, dword [esp + 0x18]
call fcn.0043fb90
cmp byte [esp + 0x16], bl
je 0x441790
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esp + 0x18]
push esi
mov dword [eax + 8], 3
call ebp
cmp edi, ebx
je 0x44179d
mov edx, dword [edi]
mov eax, dword [edx + 0xc]
mov ecx, edi
call eax
cmp dword [0x695aa8], ebx
je 0x4417b3
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [0x695aa8]
jne 0x4417ba
mov byte [0x695ab8], 1
call fcn.00442940
mov ebp, dword [esp + 0x168]
mov edi, eax
cmp dword [0x695aa8], ebx
je 0x4417de
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [0x695aa8]
jne 0x4417f3
cmp dword [0x695ab4], ebx
jbe 0x4417f3
cmp byte [0x68a3d0], bl
je 0x4417f3
call fcn.00442660
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 4]
mov edx, dword [edi]
mov edx, dword [edx + 0x60]
push ebp
push ecx
mov ecx, edi
call edx
mov esi, eax
cmp esi, ebx
jbe 0x4418a1
cmp esi, 2
jbe 0x441878
cmp esi, 0xffffffff
jne 0x44189f
xor al, al
mov ebp, 7
cmp al, bl
jne 0x4419ad
lea eax, [esp + 0x128]
push 0x5fcf00
push eax
call fcn.00423280
add esp, 8
mov esi, eax
or dword [esp + 0x20], 1
mov byte [esp + 0x158], 1
cmp dword [0x695aa8], ebx
je 0x441991
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [0x695aa8]
je 0x441991
call fcn.004443b0
jmp 0x441996
cmp dword [0x695aa8], ebx
je 0x44188e
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [0x695aa8]
jne 0x44189f
mov eax, dword [edi]
mov edx, dword [eax + 0x5c]
mov ecx, edi
call edx
test al, al
je 0x441dda
cmp esi, ebx
jne 0x4417c8
cmp dword [0x695aa8], ebx
je 0x4418bd
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [0x695aa8]
jne 0x4418c3
mov byte [0x695ab8], bl
mov ebp, dword [esp + 0x18]
mov edx, dword [ebp + 4]
mov esi, dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
lea ecx, [esp + 0x1c]
push ecx
push edx
call esi
test eax, eax
je 0x441900
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x1c]
cmp eax, 0x103
jne 0x441907
push 1
call edi
mov ecx, dword [ebp + 4]
lea eax, [esp + 0x1c]
push eax
push ecx
call esi
test eax, eax
jne 0x4418e2
or eax, 0xffffffff
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x24]
cmp ecx, ebx
je 0x441911
mov dword [ecx], eax
mov ecx, dword [ebp + 4]
cmp ecx, ebx
je 0x441926
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x1c]
mov dword [ebp + 4], ebx
xor edx, edx
cmp eax, 0xffffffff
mov eax, dword [ebp]
setne dl
mov dword [esp + 0x158], 0xffffffff
lea esi, [edx - 1]
and esi, 5
cmp byte [eax + 0x20], bl
je 0x441965
lea ecx, [ebp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x441965
mov ecx, dword [ebp]
cmp ecx, ebx
je 0x441965
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push 1
call eax
mov eax, esi
mov ecx, dword [esp + 0x150]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x138]
xor ecx, esp
call fcn.00585b7b
add esp, 0x148
ret 0x10
mov al, byte [0x68a580]
cmp al, bl
je 0x4419ad
push esi
call fcn.00445fa0
add esp, 4
mov byte [esp + 0x16], 1
cmp eax, 1
jae 0x4419b1
mov byte [esp + 0x16], bl
test byte [esp + 0x20], 1
mov dword [esp + 0x158], ebx
je 0x441a06
mov ecx, dword [esp + 0x144]
and dword [esp + 0x20], 0xfffffffe
push ecx
call fcn.005844d1
add esp, 4
cmp dword [esp + 0x13c], 8
jb 0x4419ee
mov edx, dword [esp + 0x128]
push edx
call fcn.00584768
add esp, 4
xor eax, eax
mov dword [esp + 0x13c], ebp
mov dword [esp + 0x138], ebx
mov word [esp + 0x128], ax
cmp byte [esp + 0x16], bl
je 0x441d96
push str.Cannot_wait_for_thread_termination
lea ecx, [esp + 0xe4]
call fcn.00402bb0
xor ecx, ecx
mov dword [esp + 0x50], ebp
mov dword [esp + 0x4c], ebx
mov word [esp + 0x3c], cx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
xor edx, edx
mov dword [esp + 0x74], ebp
mov dword [esp + 0x70], ebx
mov word [esp + 0x60], dx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], ebx
mov byte [esp + 0x158], 4
call fcn.00425e70
cmp eax, ebx
je 0x441a80
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x64]
push edx
lea ecx, [esp + 0xe8]
push ecx
mov ecx, eax
call fcn.00429320
cmp eax, ebx
jne 0x441a90
lea edx, [esp + 0xe0]
push edx
call fcn.004292f0
add esp, 4
mov esi, eax
call fcn.00420510
mov dword [esp + 0x28], eax
mov byte [esp + 0x158], 5
call fcn.00420510
mov dword [esp + 0x2c], eax
mov byte [esp + 0x158], 6
call fcn.00420510
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], ebx
push str.wx.sys_error
lea ecx, [esp + 0x108]
mov byte [esp + 0x15c], 7
call fcn.00402bb0
mov dword [esp + 0x88], 1
mov dword [esp + 0x90], str....._srcmsw_thread.cpp
mov dword [esp + 0x98], str.wxThreadInternal::WaitForTerminate
mov dword [esp + 0x94], 0x388
mov dword [esp + 0x9c], 0x5fcf00
mov dword [esp + 0xa0], ebx
mov dword [esp + 0xa4], ebx
mov dword [esp + 0xa8], ebx
mov dword [esp + 0xac], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esp + 0xb0], eax
xor eax, eax
mov dword [esp + 0xb4], ebx
mov dword [esp + 0xcc], ebp
mov dword [esp + 0xc8], ebx
mov word [esp + 0xb8], ax
mov dword [esp + 0xd4], ebx
mov dword [esp + 0xd8], ebx
mov byte [esp + 0x158], 9
call sub.KERNEL32.dll_GetLastError
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x10c]
push ecx
lea ecx, [esp + 0xc4]
mov edi, eax
call fcn.00402610
mov ecx, dword [esp + 0xb4]
cmp ecx, ebx
jne 0x441c07
push 0x20
call fcn.00584773
mov esi, eax
add esp, 4
mov dword [esp + 0x24], esi
mov byte [esp + 0x158], 0xa
cmp esi, ebx
je 0x441bf6
push 0x64
call fcn.00447710
push 4
push eax
mov dword [esi + 4], eax
mov dword [esi + 8], ebx
call fcn.00585c5e
mov dword [esi], eax
push 0x64
mov byte [esp + 0x168], 0xb
call fcn.00447710
push 4
push eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], ebx
call fcn.00585c5e
add esp, 0x18
mov dword [esi + 0x10], eax
mov ecx, esi
jmp 0x441bf8
xor ecx, ecx
mov byte [esp + 0x158], 9
mov dword [esp + 0xb4], ecx
lea edx, [esp + 0x104]
push edx
call fcn.004775a0
lea ecx, [esp + 0x28]
mov dword [eax], edi
call fcn.0041de00
push eax
lea eax, [esp + 0x8c]
push eax
call fcn.0040b680
mov ecx, dword [esp + 0xdc]
push ecx
mov byte [esp + 0x164], 8
call fcn.005844d1
add esp, 0xc
cmp dword [esp + 0xcc], 8
jb 0x441c5f
mov edx, dword [esp + 0xb8]
push edx
call fcn.00584768
add esp, 4
mov ecx, dword [esp + 0xb4]
xor eax, eax
mov dword [esp + 0xcc], ebp
mov dword [esp + 0xc8], ebx
mov word [esp + 0xb8], ax
mov esi, ecx
cmp ecx, ebx
je 0x441c92
call fcn.0040c030
push esi
call fcn.00584768
add esp, 4
mov ecx, dword [esp + 0x120]
push ecx
call fcn.005844d1
mov esi, 8
add esp, 4
cmp dword [esp + 0x118], esi
jb 0x441cc0
mov edx, dword [esp + 0x104]
push edx
call fcn.00584768
add esp, 4
xor eax, eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x118], ebp
mov dword [esp + 0x114], ebx
mov word [esp + 0x104], ax
mov byte [esp + 0x158], 4
call fcn.004020c0
mov ecx, dword [esp + 0x7c]
push ecx
call fcn.005844d1
add esp, 4
cmp dword [esp + 0x74], esi
jb 0x441d09
mov edx, dword [esp + 0x60]
push edx
call fcn.00584768
add esp, 4
mov ecx, dword [esp + 0x58]
xor eax, eax
push ecx
mov dword [esp + 0x78], ebp
mov dword [esp + 0x74], ebx
mov word [esp + 0x64], ax
call fcn.005844d1
add esp, 4
cmp dword [esp + 0x50], esi
jb 0x441d38
mov edx, dword [esp + 0x3c]
push edx
call fcn.00584768
add esp, 4
mov ecx, dword [esp + 0xfc]
xor eax, eax
push ecx
mov dword [esp + 0x54], ebp
mov dword [esp + 0x50], ebx
mov word [esp + 0x40], ax
mov byte [esp + 0x15c], bl
call fcn.005844d1
add esp, 4
cmp dword [esp + 0xf4], esi
jb 0x441d77
mov edx, dword [esp + 0xe0]
push edx
call fcn.00584768
add esp, 4
xor eax, eax
mov word [esp + 0xe0], ax
mov dword [esp + 0xf4], ebp
mov dword [esp + 0xf0], ebx
mov al, 1
jmp 0x441824
mov esi, dword [esp + 0x18]
mov ecx, esi
call fcn.0043f660
mov ecx, dword [esi]
mov dword [esp + 0x158], 0xffffffff
cmp byte [ecx + 0x20], bl
je 0x441dd0
lea edx, [esi + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x441dd0
mov ecx, dword [esi]
cmp ecx, ebx
je 0x441dd0
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push 1
call edx
mov eax, 4
jmp 0x441967
mov esi, dword [esp + 0x18]
mov ecx, esi
call fcn.0043f660
mov eax, dword [esi]
mov dword [esp + 0x158], 0xffffffff
cmp byte [eax + 0x20], bl
je 0x441e14
lea ecx, [esi + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x441e14
mov ecx, dword [esi]
cmp ecx, ebx
je 0x441e14
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push 1
call eax
mov eax, 4
jmp 0x441967