Function at 0x430140
Capabilities:
Create thread
Terminate thread

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x6071f0
push eax
mov eax, dword [0x6a1e5c]
mov dword fs:[0], esp
sub esp, 0xc
push ebx
xor ebx, ebx
push esi
cmp eax, ebx
push edi
mov esi, ecx
je 0x43016f
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, esi
call fcn.004300a0
test eax, eax
jne 0x43036b
mov eax, dword [0x69cfe8]
mov dword [esp + 0xc], eax
mov ecx, esi
mov dword [esp + 0x20], ebx
call fcn.0042f4a0
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call fcn.0042ff50
test eax, eax
jne 0x430203
push 0x14
call fcn.005eb722
mov edi, eax
add esp, 4
mov dword [esp + 0x10], edi
cmp edi, ebx
mov byte [esp + 0x20], 1
je 0x4301da
push 4
push ecx
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
call fcn.005eb756
push esi
mov ecx, edi
call fcn.0042f110
mov esi, eax
jmp 0x4301dc
xor esi, esi
mov eax, dword [0x6a1e5c]
mov byte [esp + 0x20], bl
cmp eax, ebx
je 0x4301f0
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [esp + 0x10]
push 0x653cb0
push eax
mov dword [esp + 0x18], esi
call fcn.005d0fb1
mov ecx, esi
call fcn.0042f7d0
mov edx, dword [esi + 0x30]
mov eax, dword [esi + 0x20]
lea ecx, [esi + 0x2c]
push ecx
push ebx
push esi
push 0x430120
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
mov dword [esi + 0x24], eax
je 0x430304
lea ecx, [esp + 0xc]
push ecx
push 2
mov ecx, esi
call fcn.0042fc20
test eax, eax
jne 0x4302c9
mov edx, dword [esi + 0x24]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, esi
call fcn.0042f9a0
mov ecx, esi
call fcn.0042f4a0
push 0x14
call fcn.005eb722
mov edi, eax
add esp, 4
mov dword [esp + 0x14], edi
cmp edi, ebx
mov byte [esp + 0x20], 2
je 0x4302a0
push 5
push ecx
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
call fcn.005eb756
push esi
mov ecx, edi
call fcn.0042f110
mov esi, eax
jmp 0x4302a2
xor esi, esi
mov eax, dword [0x6a1e5c]
mov byte [esp + 0x20], bl
cmp eax, ebx
je 0x4302b6
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [esp + 0x10]
push 0x653cb0
push eax
mov dword [esp + 0x18], esi
call fcn.005d0fb1
push ebx
mov ecx, esi
call fcn.0042fb70
mov eax, dword [0x6a1e5c]
cmp eax, ebx
je 0x4302e1
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], 0xffffffff
call fcn.005eb9e1
mov ecx, dword [esp + 0x18]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x18
ret
push 0x14
call fcn.005eb722
mov edi, eax
add esp, 4
mov dword [esp + 0x14], edi
cmp edi, ebx
mov byte [esp + 0x20], 3
je 0x430342
push 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push eax
push ecx
call fcn.0042f210
add esp, 8
mov ecx, edi
push esi
call fcn.0042f110
mov esi, eax
jmp 0x430344
xor esi, esi
mov eax, dword [0x6a1e5c]
mov byte [esp + 0x20], bl
cmp eax, ebx
je 0x430358
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea edx, [esp + 0x10]
push 0x653cb0
push edx
mov dword [esp + 0x18], esi
call fcn.005d0fb1
push 0x14
call fcn.005eb722
mov edi, eax
add esp, 4
mov dword [esp + 0x14], edi
cmp edi, ebx
mov dword [esp + 0x20], 4
je 0x4303a6
push 2
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push 0x6a1e58
call fcn.005eb756
push esi
mov ecx, edi
call fcn.0042f110
mov esi, eax
jmp 0x4303a8
xor esi, esi
mov eax, dword [0x6a1e5c]
mov dword [esp + 0x20], 0xffffffff
cmp eax, ebx
je 0x4303c0
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [esp + 0x10]
push 0x653cb0
push eax
mov dword [esp + 0x18], esi
call fcn.005d0fb1
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop