Function at 0x10002de6
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2dc
mov eax, dword [0x10035e28]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
mov dword [ebp - 0x2d8], eax
cmp eax, ebx
je 0x10002e11
mov ecx, dword [0x10037038]
mov dword [eax], ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x10037030], eax
je 0x10002e29
mov eax, 0x10dd
jmp 0x10003045
cmp dword [0x10037034], ebx
je 0x10002e3b
call fcn.10002d42
jmp 0x10003040
push esi
mov esi, dword [0x10037040]
push edi
jmp 0x10002ed6
mov eax, dword [esi + 0x10]
cmp dword [esi + 4], ebx
je 0x10002eaa
xor edi, edi
cmp byte [eax + 0x17], bl
jbe 0x10002e88
lea ecx, [ebp - 0x2d4]
push ecx
push ebx
push eax
mov eax, dword [esi + 0xc]
add eax, edi
push eax
mov dword [ebp - 0x2d4], ebx
call fcn.1000355f
cmp dword [ebp - 0x2d4], ebx
jne 0x10002e88
mov ecx, dword [esi + 0x10]
mov edi, eax
sub edi, ecx
movzx ecx, byte [ecx + 0x17]
cmp edi, ecx
jl 0x10002e57
mov eax, dword [esi + 0x10]
movzx eax, byte [eax + 0x17]
cmp edi, eax
je 0x10002ea5
mov eax, dword [esi + 8]
mov dword [0x10037034], 0xd
mov dword [0x10037038], eax
mov ecx, dword [esi + 0xc]
jmp 0x10002ecf
mov ecx, dword [eax + 0x1c]
mov eax, dword [esi + 0xc]
lea edx, [eax + 5]
mov byte [eax], 0xe9
sub ecx, edx
mov dword [eax + 1], ecx
mov ecx, dword [esi + 0x10]
push dword [ecx + 0x18]
add eax, 5
push eax
call fcn.1000296d
pop ecx
pop ecx
mov ecx, dword [esi + 0x10]
mov eax, dword [esi + 8]
mov dword [eax], ecx
mov esi, dword [esi]
cmp esi, ebx
jne 0x10002e48
mov edi, dword [0x1003703c]
cmp edi, ebx
je 0x10002f88
mov ebx, dword [sym.imp.KERNEL32.dll_SetThreadContext]
lea eax, [ebp - 0x2d0]
push eax
push dword [edi + 4]
mov dword [ebp - 0x2d0], 0x10001
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x10002f7c
mov esi, dword [0x10037040]
jmp 0x10002f78
cmp dword [esi + 4], 0
je 0x10002f3f
mov eax, dword [esi + 0x10]
cmp dword [ebp - 0x218], eax
jb 0x10002f76
lea ecx, [eax + 4]
cmp dword [ebp - 0x218], ecx
jae 0x10002f76
sub dword [ebp - 0x218], eax
mov eax, dword [esi + 0xc]
jmp 0x10002f64
mov eax, dword [esi + 0xc]
cmp dword [ebp - 0x218], eax
jb 0x10002f76
mov ecx, dword [esi + 0x10]
movzx ecx, byte [ecx + 0x17]
add ecx, eax
cmp dword [ebp - 0x218], ecx
jae 0x10002f76
sub dword [ebp - 0x218], eax
mov eax, dword [esi + 0x10]
add dword [ebp - 0x218], eax
lea eax, [ebp - 0x2d0]
push eax
push dword [edi + 4]
call ebx
mov esi, dword [esi]
test esi, esi
jne 0x10002f18
mov edi, dword [edi]
test edi, edi
jne 0x10002ef2
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov esi, dword [0x10037040]
mov dword [ebp - 0x2d4], eax
cmp esi, ebx
je 0x10002ff3
lea eax, [ebp - 0x2dc]
push eax
mov eax, dword [esi + 0x10]
push dword [esi + 0x14]
movzx eax, byte [eax + 0x17]
push eax
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [esi + 0x10]
movzx eax, byte [eax + 0x17]
push eax
push dword [esi + 0xc]
push dword [ebp - 0x2d4]
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
cmp dword [esi + 4], ebx
je 0x10002fe4
mov edi, dword [esi + 0x10]
cmp edi, ebx
je 0x10002fe4
call fcn.10002c4b
mov dword [esi + 0x10], ebx
mov edi, dword [esi]
push esi
call fcn.1001538f
pop ecx
mov esi, edi
cmp edi, ebx
jne 0x10002f9e
mov dword [0x10037040], ebx
call fcn.10002a44
mov esi, dword [0x1003703c]
cmp esi, ebx
je 0x10003020
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edi, dword [esi]
push esi
call fcn.1001538f
pop ecx
mov esi, edi
cmp edi, ebx
jne 0x10003008
mov eax, dword [ebp - 0x2d8]
pop edi
mov dword [0x1003703c], ebx
mov dword [0x10037030], ebx
pop esi
cmp eax, ebx
je 0x10003040
mov ecx, dword [0x10037038]
mov dword [eax], ecx
mov eax, dword [0x10037034]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.100154ca
leave
ret 4