Function at 0x430b00
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44d220
push 0x437af8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffa0
push ebx
push esi
push edi
mov dword [ebp - 0x24], 0
mov byte [ebp - 0x39], 0
movzx eax, byte [0x45ded4]
test eax, eax
je 0x430ec6
push 0x45dea4
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
mov dword [ebp - 0x24], 0
mov ecx, dword [0x45dee4]
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x1c], 0
jmp 0x430b71
mov edx, dword [ebp - 0x1c]
add edx, 1
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x44]
jge 0x430bc0
mov ecx, dword [ebp - 0x1c]
mov edx, dword [0x45dee0]
lea eax, [edx + ecx*4]
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x5c]
mov eax, dword [edx]
mov ecx, dword [eax]
push ecx
call fcn.0041d276
add esp, 8
test eax, eax
jne 0x430bbe
mov edx, dword [ebp - 0x1c]
mov eax, dword [0x45dee0]
mov ecx, dword [eax + edx*4]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x1c]
push edx
mov ecx, 0x45dee0
call fcn.00432340
jmp 0x430bc0
jmp 0x430b68
mov dword [ebp - 4], 0xffffffff
call fcn.00430bce
jmp 0x430bda
cmp dword [ebp - 0x24], 0
je 0x430ec6
mov eax, dword [ebp - 0x24]
mov dword [eax + 0x3c], 1
push 0
push 1
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 0x38]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx]
push edx
call fcn.0042fc60
add esp, 8
push 0xc
push 0
lea eax, [ebp - 0x38]
push eax
call fcn.0041d590
add esp, 0xc
push 0x10000001
call fcn.004370c0
test eax, eax
je 0x430c69
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x40], 0
lea ecx, [ebp - 0x40]
push ecx
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x38]
push edx
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x20]
push ecx
call dword [0x45dec0]
push eax
push 0x442eb0
call fcn.00430140
add esp, 8
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 0x3e8
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x40]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x430c9b
push 0
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 0x40]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x3e8
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x44]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x430cd0
push 0
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 0x44]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x24]
cmp dword [eax + 0x48], 0
je 0x430ec6
mov dword [ebp - 0x1c], 0
jmp 0x430cfc
mov ecx, dword [ebp - 0x1c]
add ecx, 1
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x48]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x60], ecx
mov edx, dword [ebp - 0x1c]
cmp edx, dword [ebp - 0x60]
jge 0x430e43
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x48]
mov dword [ebp - 0x64], ecx
mov edx, dword [ebp - 0x64]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x1c]
cmp dword [eax + ecx*4], 0
je 0x430e3e
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x48]
mov dword [ebp - 0x68], eax
mov ecx, dword [ebp - 0x68]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [edx + eax*4]
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x48], 0
mov edx, dword [ebp - 0x50]
lea eax, [ebp - 0x48]
mov dword [edx + 0x18], eax
mov ecx, dword [ebp - 0x50]
mov dword [ecx + 0x14], 1
mov dword [ebp - 0x4c], 0
push 2
push 0
push 0
lea edx, [ebp - 0x4c]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
mov eax, dword [ebp - 0x50]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x430db7
mov edx, dword [ebp - 0x50]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x3e8
mov ecx, dword [ebp - 0x4c]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [ebp - 0x4c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x430dd5
mov eax, dword [ebp - 0x50]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x3e8
mov edx, dword [ebp - 0x50]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [ebp - 0x48], 0
jne 0x430e3e
push 0x45dea4
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [ebp - 0x48], 0
jne 0x430e33
push 0
mov ecx, dword [ebp - 0x50]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [ebp - 0x50]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x50]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x50]
cmp dword [ecx + 0xc], 0
je 0x430e29
mov edx, dword [ebp - 0x50]
mov eax, dword [edx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 0x50]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 0x45dea4
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x430cf3
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x48]
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x58]
mov dword [ebp - 0x54], ecx
cmp dword [ebp - 0x54], 0
je 0x430e7e
mov ecx, dword [ebp - 0x54]
call fcn.00432510
mov edx, 1
and edx, 1
je 0x430e76
mov eax, dword [ebp - 0x54]
push eax
call fcn.00409a3f
add esp, 4
mov ecx, dword [ebp - 0x54]
mov dword [ebp - 0x70], ecx
jmp 0x430e85
mov dword [ebp - 0x70], 0
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 0x38]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x24]
add eax, 0x20
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov byte [ebp - 0x39], 1
mov al, byte [ebp - 0x39]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret