Function at 0x5bae70
Capabilities:
Print debug messages
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2e0
mov eax, dword [0x8ce6f4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x42a2c8
mov dword [ebp - 0x2d8], esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
test esi, esi
je 0x5baea3
mov eax, dword [0x8d4448]
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x8d4440], eax
je 0x5baec7
mov eax, 0x10dd
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0080262b
mov esp, ebp
pop ebp
ret 4
cmp dword [0x8d4444], 0
je 0x5baeda
call fcn.005bad90
jmp 0x5bb1b9
mov esi, dword [0x8d4450]
mov dword [ebp - 0x2d4], 0
test esi, esi
je 0x5baf58
mov edi, edi
cmp dword [esi + 4], 0
je 0x5baf18
mov eax, dword [esi + 0x10]
movzx ecx, byte [eax + 0x36]
mov edx, dword [esi + 0xc]
push ecx
add eax, 0x20
push eax
push edx
call fcn.008030c0
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
add esp, 0xc
mov dword [eax], ecx
jmp 0x5baf52
mov edx, dword [esi + 0x10]
mov eax, dword [esi + 0xc]
mov ecx, dword [edx + 0x44]
lea edx, [eax + 5]
sub ecx, edx
mov byte [eax], 0xe9
mov dword [eax + 1], ecx
mov ecx, dword [esi + 0x10]
mov ecx, dword [ecx + 0x40]
add eax, 5
cmp eax, ecx
jae 0x5baf4a
sub ecx, eax
push ecx
push 0xcc
push eax
call fcn.00802690
add esp, 0xc
mov edx, dword [esi + 8]
mov eax, dword [esi + 0x10]
mov dword [edx], eax
mov esi, dword [esi]
test esi, esi
jne 0x5baef0
mov eax, dword [0x8d444c]
push ebx
push edi
mov ebx, eax
test eax, eax
je 0x5bb06a
lea esp, [esp]
mov edx, dword [ebx + 4]
lea ecx, [ebp - 0x2d0]
push ecx
push edx
mov dword [ebp - 0x2d0], 0x10001
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x5bb060
mov edi, dword [0x8d4450]
test edi, edi
je 0x5bb060
mov ecx, dword [ebp - 0x218]
cmp dword [edi + 4], 0
je 0x5bb004
mov esi, dword [edi + 0x10]
cmp ecx, esi
jb 0x5bb056
lea eax, [esi + 4]
cmp ecx, eax
jae 0x5bb056
xor eax, eax
sub cl, byte [edi + 0x10]
jmp 0x5bafd0
mov dl, byte [esi + eax + 0x38]
shr dl, 3
cmp dl, cl
je 0x5baffc
inc eax
cmp eax, 8
jb 0x5bafd0
xor al, al
mov edx, dword [ebx + 4]
movzx eax, al
add eax, dword [edi + 0xc]
lea ecx, [ebp - 0x2d0]
push ecx
mov dword [ebp - 0x218], eax
push edx
jmp 0x5bb04a
mov al, byte [eax + esi + 0x38]
and al, 7
jmp 0x5bafe3
mov eax, dword [edi + 0xc]
cmp ecx, eax
jb 0x5bb056
mov esi, dword [edi + 0x10]
movzx edx, byte [esi + 0x36]
add edx, eax
cmp ecx, edx
jae 0x5bb056
xor eax, eax
sub cl, byte [edi + 0xc]
lea ecx, [ecx]
mov dl, byte [esi + eax + 0x38]
and dl, 7
cmp dl, cl
je 0x5bb1cf
inc eax
cmp eax, 8
jb 0x5bb020
xor eax, eax
mov ecx, dword [ebx + 4]
add esi, eax
lea eax, [ebp - 0x2d0]
push eax
mov dword [ebp - 0x218], esi
push ecx
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
mov ecx, dword [ebp - 0x218]
mov edi, dword [edi]
test edi, edi
jne 0x5bafa7
mov ebx, dword [ebx]
test ebx, ebx
jne 0x5baf70
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov esi, dword [0x8d4450]
mov dword [ebp - 0x2e0], eax
test esi, esi
je 0x5bb10b
mov ecx, dword [esi + 0x10]
mov eax, dword [esi + 0x14]
lea edx, [ebp - 0x2dc]
push edx
movzx edx, byte [ecx + 0x36]
push eax
mov eax, dword [esi + 0xc]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [esi + 0x10]
movzx edx, byte [ecx + 0x36]
mov eax, dword [esi + 0xc]
mov ecx, dword [ebp - 0x2e0]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
cmp dword [esi + 4], 0
je 0x5bb0f6
mov ebx, dword [esi + 0x10]
test ebx, ebx
je 0x5bb0f6
push 0x48
push 0
mov edi, ebx
push ebx
and edi, 0xffff0000
call fcn.00802690
mov edx, dword [edi + 8]
mov dword [ebx + 0x40], edx
mov dword [edi + 8], ebx
add esp, 0xc
mov dword [esi + 0x10], 0
mov dword [ebp - 0x2d4], 1
mov edi, dword [esi]
push esi
call fcn.007c8563
add esp, 4
mov esi, edi
test edi, edi
jne 0x5bb084
cmp dword [ebp - 0x2d4], 0
mov dword [0x8d4450], 0
je 0x5bb12c
cmp dword [0x8d443c], 0
jne 0x5bb12c
call fcn.005baca0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov esi, dword [0x8d4430]
mov edi, eax
test esi, esi
je 0x5bb169
mov edi, edi
lea eax, [ebp - 0x2dc]
push eax
push 0x20
push 0x10000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 0x10000
push esi
push edi
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov esi, dword [esi + 4]
test esi, esi
jne 0x5bb140
mov esi, dword [0x8d444c]
test esi, esi
je 0x5bb197
mov ebx, dword [sym.imp.KERNEL32.dll_ResumeThread]
lea esp, [esp]
mov ecx, dword [esi + 4]
push ecx
call ebx
mov edi, dword [esi]
push esi
call fcn.007c8563
add esp, 4
mov esi, edi
test edi, edi
jne 0x5bb180
mov eax, dword [ebp - 0x2d8]
xor ecx, ecx
pop edi
mov dword [0x8d444c], ecx
mov dword [0x8d4440], ecx
pop ebx
cmp eax, ecx
je 0x5bb1b9
mov edx, dword [0x8d4448]
mov dword [eax], edx
mov ecx, dword [ebp - 4]
mov eax, dword [0x8d4444]
xor ecx, ebp
pop esi
call fcn.0080262b
mov esp, ebp
pop ebp
ret 4
movzx eax, byte [eax + esi + 0x38]
shr eax, 3
jmp 0x5bb037