Function at 0x102432d
Capabilities:
Resume thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2dc
mov eax, dword [0x1027018]
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 0x102435a
mov ecx, dword [0x1027680]
mov dword [eax], ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x1027678], eax
je 0x1024372
mov eax, 0x10dd
jmp 0x102458c
cmp dword [0x102767c], ebx
je 0x1024384
call fcn.01024283
jmp 0x1024587
push esi
mov esi, dword [0x1027688]
push edi
jmp 0x102441d
mov eax, dword [esi + 0x10]
cmp dword [esi + 4], ebx
je 0x10243f3
xor edi, edi
cmp byte [eax + 0x17], bl
jbe 0x10243d1
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.01024a87
cmp dword [ebp - 0x2d4], ebx
jne 0x10243d1
mov ecx, dword [esi + 0x10]
mov edi, eax
sub edi, ecx
movzx ecx, byte [ecx + 0x17]
cmp edi, ecx
jl 0x10243a0
mov eax, dword [esi + 0x10]
movzx eax, byte [eax + 0x17]
cmp edi, eax
je 0x10243ee
mov eax, dword [esi + 8]
mov dword [0x102767c], 0xd
mov dword [0x1027680], eax
mov ecx, dword [esi + 0xc]
jmp 0x1024416
mov ecx, dword [eax + 0x1c]
mov eax, dword [esi + 0xc]
mov byte [eax], 0xe9
lea edx, [eax + 5]
inc eax
sub ecx, edx
mov dword [eax], ecx
mov ecx, dword [esi + 0x10]
push dword [ecx + 0x18]
add eax, 4
push eax
call fcn.01023ecd
mov ecx, dword [esi + 0x10]
mov eax, dword [esi + 8]
mov dword [eax], ecx
mov esi, dword [esi]
cmp esi, ebx
jne 0x1024391
mov edi, dword [0x1027684]
cmp edi, ebx
je 0x10244cf
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 0x10244c3
mov esi, dword [0x1027688]
jmp 0x10244bf
cmp dword [esi + 4], 0
je 0x1024486
mov eax, dword [esi + 0x10]
cmp dword [ebp - 0x218], eax
jb 0x10244bd
lea ecx, [eax + 4]
cmp dword [ebp - 0x218], ecx
jae 0x10244bd
sub dword [ebp - 0x218], eax
mov eax, dword [esi + 0xc]
jmp 0x10244ab
mov eax, dword [esi + 0xc]
cmp dword [ebp - 0x218], eax
jb 0x10244bd
mov ecx, dword [esi + 0x10]
movzx ecx, byte [ecx + 0x17]
add ecx, eax
cmp dword [ebp - 0x218], ecx
jae 0x10244bd
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 0x102445f
mov edi, dword [edi]
test edi, edi
jne 0x1024439
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edi, dword [0x1027688]
mov dword [ebp - 0x2d4], eax
cmp edi, ebx
je 0x102453a
lea eax, [ebp - 0x2dc]
push eax
mov eax, dword [edi + 0x10]
push dword [edi + 0x14]
movzx eax, byte [eax + 0x17]
push eax
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [edi + 0x10]
movzx eax, byte [eax + 0x17]
push eax
push dword [edi + 0xc]
push dword [ebp - 0x2d4]
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
cmp dword [edi + 4], ebx
je 0x102452b
mov esi, dword [edi + 0x10]
cmp esi, ebx
je 0x102452b
call fcn.010241e5
mov dword [edi + 0x10], ebx
mov esi, dword [edi]
push edi
call fcn.0101cbfd
pop ecx
mov edi, esi
cmp esi, ebx
jne 0x10244e5
mov dword [0x1027688], ebx
call fcn.01023fb9
mov esi, dword [0x1027684]
cmp esi, ebx
je 0x1024567
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edi, dword [esi]
push esi
call fcn.0101cbfd
pop ecx
mov esi, edi
cmp edi, ebx
jne 0x102454f
mov eax, dword [ebp - 0x2d8]
pop edi
mov dword [0x1027684], ebx
mov dword [0x1027678], ebx
pop esi
cmp eax, ebx
je 0x1024587
mov ecx, dword [0x1027680]
mov dword [eax], ecx
mov eax, dword [0x102767c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0102302f
leave
ret 4