Function at 0x7ce2d132
Capabilities:
Terminate process

Disassembly:
sub esp, 0x1c
and dword [esp], 0
push ebx
push ebp
push esi
push edi
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
test byte [edi + 0x18], 1
mov esi, eax
mov eax, dword [0x7ce4df6c]
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], eax
jne 0x7ce2d161
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
cmp dword [edi + 0x10], esi
jne 0x7ce2d16f
inc word [edi + 0x1a]
jmp 0x7ce2d1f9
and dword [esp + 0x18], 0
mov esi, dword [edi + 0xc]
lea ebx, [edi + 0xc]
test esi, esi
mov ebp, esi
jne 0x7ce2d196
push esi
push 0x1000
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
mov esi, eax
test esi, esi
jmp 0x7ce2d332
mov ecx, esi
mov eax, 0xff800000
and ecx, eax
cmp ecx, eax
jne 0x7ce2d205
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
and dword [esp + 0x18], 0
mov esi, dword [ebx]
cmp dword [esp + 0x10], 0
jge 0x7ce2d17a
cmp dword [esp + 0x10], 0
jl 0x7ce2d1d8
mov eax, dword [esp + 0x28]
inc dword [edi + 0x14]
inc dword [edi + 0x24]
mov dword [edi + 0x10], eax
mov word [edi + 0x1a], 1
jmp 0x7ce2d1f9
cmp dword [0x7ce50f44], 0
je 0x7ce2d1e7
call dword [sym.imp.KERNEL32.dll_DebugBreak]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
inc dword [esp + 0x18]
mov eax, dword [esp + 0x18]
cmp eax, dword [0x7ce50f3c]
jbe 0x7ce2d1b3
push esi
add esi, 0x800000
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
mov esi, eax
cmp esi, ebp
jne 0x7ce2d1b5
lea eax, [edi + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
xor ebp, ebp
mov ecx, edi
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x10], ebp
call fcn.7ce2ce11
cmp eax, ebp
je 0x7ce2d25a
push dword [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [esp + 0x14], eax
jmp 0x7ce2d267
or dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x10], 0x80010101
cmp dword [esp + 0x14], ebp
jne 0x7ce2d277
mov dword [esp + 0x20], 0xff800800
jmp 0x7ce2d2b9
cmp dword [esp + 0x14], 0x102
mov dword [esp + 0x20], 0xff800000
jne 0x7ce2d293
mov dword [esp + 0x10], 0x8001011f
jmp 0x7ce2d2b9
cmp dword [esp + 0x10], ebp
jl 0x7ce2d2b9
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebp
test eax, eax
jg 0x7ce2d2a9
call ebp
jmp 0x7ce2d2b5
call ebp
and eax, 0xffff
or eax, 0x80070000
mov dword [esp + 0x10], eax
push dword [esp + 0x20]
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
cmp dword [esp + 0x14], 0
je 0x7ce2d314
test ah, 8
je 0x7ce2d314
and eax, 0xff800000
cmp eax, 0x800000
jne 0x7ce2d314
mov esi, dword [ebx]
mov dword [esp + 0x1c], 1
test esi, 0xff800000
mov ebp, esi
jne 0x7ce2d30f
test esi, 0x800
je 0x7ce2d30f
push esi
add esi, 0x800000
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
mov esi, eax
cmp esi, ebp
jne 0x7ce2d2e6
jmp 0x7ce2d314
and dword [esp + 0x1c], 0
xor eax, eax
cmp dword [esp + 0x1c], eax
je 0x7ce2d32e
cmp dword [esp + 0x1c], eax
mov dword [esp + 0x24], 0x64
jne 0x7ce2d234
cmp dword [esp + 0x14], eax
je 0x7ce2d1bc
jmp 0x7ce2d1b5