Function at 0x1002c929
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push esi
push edi
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
jmp 0x1002c942
mov eax, dword [ebp - 0x10]
add eax, 5
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x10]
add eax, 0x5a
cmp dword [ebp - 0x10], eax
ja 0x1002cc53
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0x409f
ja 0x1002c9bc
cmp dword [ebp - 0x28], 0x409f
je 0x1002ca08
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x2c], eax
sub dword [ebp - 0x2c], 0x26da
je 0x1002cba2
sub dword [ebp - 0x2c], 5
je 0x1002cb93
sub dword [ebp - 0x2c], 5
je 0x1002cafc
sub dword [ebp - 0x2c], 5
je 0x1002ca50
sub dword [ebp - 0x2c], 5
je 0x1002caf0
sub dword [ebp - 0x2c], 5
je 0x1002ca13
sub dword [ebp - 0x2c], 0x19a7
je 0x1002ca1b
jmp 0x1002cc4e
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x30], eax
sub dword [ebp - 0x30], 0x40a4
je 0x1002ca2c
sub dword [ebp - 0x30], 5
je 0x1002cc09
sub dword [ebp - 0x30], 5
je 0x1002cc4c
sub dword [ebp - 0x30], 5
je 0x1002cc14
sub dword [ebp - 0x30], 5
je 0x1002cb7c
sub dword [ebp - 0x30], 5
je 0x1002ca48
sub dword [ebp - 0x30], 5
je 0x1002cc28
jmp 0x1002cc4e
and dword [ebp - 0x10], 0
push 0x54
jmp 0x1002cc4e
mov eax, dword [ebp - 4]
jmp 0x1002cc56
push 8
mov eax, 0x1002cc28
call fcn.1002c7f3
jmp 0x1002cc4e
call fcn.100037e1
pop ecx
mov dword [ebp - 0x14], eax
and dword [ebp - 4], 0
test eax, eax
je 0x1002cafc
mov ecx, eax
jmp 0x1002cc4e
ret 4
cmp dword [ebp - 8], 0
jne 0x1002ca5a
mov byte [ebp - 9], 0
mov eax, dword [ebp + 0x1c]
mov eax, dword [eax]
mov eax, dword [eax + 0x14]
and eax, 0x200
je 0x1002caca
mov eax, dword [ebp + 0x1c]
mov eax, dword [eax]
mov eax, dword [eax + 0xc]
and eax, 4
je 0x1002caca
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x14]
mov cl, byte [ecx]
mov byte [eax], cl
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
shr eax, 8
mov ecx, dword [ebp + 8]
mov byte [ecx + 1], al
mov dword [ebp - 0x24], 2
mov eax, dword [ebp + 0x1c]
mov eax, dword [eax]
mov eax, dword [eax + 0x1c]
mov dword [ebp - 0x20], eax
push dword [ebp + 8]
push 0x4a12
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.1003270f
add esp, 0x10
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x1c]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x1c]
mov dword [eax + 0x1c], ecx
xor eax, eax
jne 0x1002ca76
mov eax, dword [ebp + 0x14]
and dword [eax], 0
mov eax, dword [ebp + 0x18]
and dword [eax], 0
xor eax, eax
jne 0x1002caca
movzx eax, byte [ebp - 9]
test eax, eax
je 0x1002caeb
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x1002cc4e
mov dword [ebp - 4], 0x3f36
jmp 0x1002cc4e
mov eax, dword [ebp + 0x1c]
mov eax, dword [eax]
mov ecx, dword [ebp + 0x14]
mov ecx, dword [ecx]
mov dword [eax + 0x14], ecx
mov eax, dword [ebp + 0x1c]
mov eax, dword [eax]
mov eax, dword [eax + 0x14]
and eax, 0xff
cmp eax, 8
je 0x1002cb2a
mov dword [ebp - 4], 0x3f51
mov eax, dword [ebp - 4]
jmp 0x1002cc56
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x1c]
mov eax, dword [eax]
mov eax, dword [eax + 0x14]
and eax, 0xe000
je 0x1002cb57
mov dword [ebp - 4], 0x3f51
mov eax, dword [ebp - 4]
jmp 0x1002cc56
mov eax, dword [ebp + 0x1c]
mov eax, dword [eax]
cmp dword [eax + 0x24], 0
je 0x1002cb77
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
shr eax, 8
and eax, 1
mov ecx, dword [ebp + 0x1c]
mov ecx, dword [ecx]
mov ecx, dword [ecx + 0x24]
mov dword [ecx], eax
jmp 0x1002cc4e
test esi, esi
je 0x1002cb7c
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x14]
mov eax, edi
call fcn.100038d2
jmp 0x1002cc4e
mov byte [ebp - 0x15], 1
mov al, byte [ebp - 0x15]
mov byte [ebp - 9], al
jmp 0x1002cc4e
mov eax, dword [ebp + 0x18]
cmp dword [eax], 0x10
jae 0x1002cc03
mov eax, dword [ebp + 0x20]
cmp dword [eax], 0
jne 0x1002cbc1
mov dword [ebp - 4], 0x3f54
mov eax, dword [ebp - 4]
jmp 0x1002cc56
mov eax, dword [ebp + 0x20]
mov eax, dword [eax]
dec eax
mov ecx, dword [ebp + 0x20]
mov dword [ecx], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
movzx eax, byte [eax]
mov ecx, dword [ebp + 0x18]
mov ecx, dword [ecx]
shl eax, cl
mov ecx, dword [ebp + 0x14]
add eax, dword [ecx]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
add eax, 8
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
xor eax, eax
jne 0x1002cbaa
jmp 0x1002cba2
xor eax, eax
jne 0x1002cba2
jmp 0x1002cc4e
call fcn.1001ea06
mov esi, eax
jmp 0x1002cc4c
mov edi, dword [ebp + 8]
or dword [ebp - 4], 0xffffffff
and dword [edi], 0
push esi
mov ecx, edi
call fcn.1000c909
jmp 0x1002cc4e
mov dword [ebp - 0x10], 0x40c2
mov edx, dword [esp + 8]
lea eax, [edx + 0xc]
mov ecx, dword [edx - 0x18]
xor ecx, eax
call 0xfc8f189
mov eax, 0x10512acc
jmp 0xfc90127
xor esi, esi
jmp 0x1002c939
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret