Function at 0x430410
Capabilities:
Create thread
Terminate thread

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x606960
push eax
mov eax, dword [0x6a0f7c]
mov dword fs:[0], esp
sub esp, 0xc
push ebx
xor ebx, ebx
push esi
cmp eax, ebx
push edi
mov esi, ecx
je 0x43043f
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, esi
call fcn.00430370
test eax, eax
jne 0x43063b
mov eax, dword [0x69c108]
mov dword [esp + 0xc], eax
mov ecx, esi
mov dword [esp + 0x20], ebx
call fcn.0042f770
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call fcn.00430220
test eax, eax
jne 0x4304d3
push 0x14
call fcn.005eae36
mov edi, eax
add esp, 4
mov dword [esp + 0x10], edi
cmp edi, ebx
mov byte [esp + 0x20], 1
je 0x4304aa
push 4
push ecx
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
call fcn.005eae6a
push esi
mov ecx, edi
call fcn.0042f3e0
mov esi, eax
jmp 0x4304ac
xor esi, esi
mov eax, dword [0x6a0f7c]
mov byte [esp + 0x20], bl
cmp eax, ebx
je 0x4304c0
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [esp + 0x10]
push 0x653da0
push eax
mov dword [esp + 0x18], esi
call fcn.005d06b1
mov ecx, esi
call fcn.0042faa0
mov edx, dword [esi + 0x30]
mov eax, dword [esi + 0x20]
lea ecx, [esi + 0x2c]
push ecx
push ebx
push esi
push 0x4303f0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
mov dword [esi + 0x24], eax
je 0x4305d4
lea ecx, [esp + 0xc]
push ecx
push 2
mov ecx, esi
call fcn.0042fef0
test eax, eax
jne 0x430599
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.0042fc70
mov ecx, esi
call fcn.0042f770
push 0x14
call fcn.005eae36
mov edi, eax
add esp, 4
mov dword [esp + 0x14], edi
cmp edi, ebx
mov byte [esp + 0x20], 2
je 0x430570
push 5
push ecx
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
call fcn.005eae6a
push esi
mov ecx, edi
call fcn.0042f3e0
mov esi, eax
jmp 0x430572
xor esi, esi
mov eax, dword [0x6a0f7c]
mov byte [esp + 0x20], bl
cmp eax, ebx
je 0x430586
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [esp + 0x10]
push 0x653da0
push eax
mov dword [esp + 0x18], esi
call fcn.005d06b1
push ebx
mov ecx, esi
call fcn.0042fe40
mov eax, dword [0x6a0f7c]
cmp eax, ebx
je 0x4305b1
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], 0xffffffff
call fcn.005eb0f5
mov ecx, dword [esp + 0x18]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x18
ret
push 0x14
call fcn.005eae36
mov edi, eax
add esp, 4
mov dword [esp + 0x14], edi
cmp edi, ebx
mov byte [esp + 0x20], 3
je 0x430612
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.0042f4e0
add esp, 8
mov ecx, edi
push esi
call fcn.0042f3e0
mov esi, eax
jmp 0x430614
xor esi, esi
mov eax, dword [0x6a0f7c]
mov byte [esp + 0x20], bl
cmp eax, ebx
je 0x430628
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea edx, [esp + 0x10]
push 0x653da0
push edx
mov dword [esp + 0x18], esi
call fcn.005d06b1
push 0x14
call fcn.005eae36
mov edi, eax
add esp, 4
mov dword [esp + 0x14], edi
cmp edi, ebx
mov dword [esp + 0x20], 4
je 0x430676
push 2
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push 0x6a0f78
call fcn.005eae6a
push esi
mov ecx, edi
call fcn.0042f3e0
mov esi, eax
jmp 0x430678
xor esi, esi
mov eax, dword [0x6a0f7c]
mov dword [esp + 0x20], 0xffffffff
cmp eax, ebx
je 0x430690
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [esp + 0x10]
push 0x653da0
push eax
mov dword [esp + 0x18], esi
call fcn.005d06b1
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop