Function at 0x48a820
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2dc
mov eax, dword [0x58fa2c]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x2d8], ecx
test ecx, ecx
je 0x48a847
mov eax, dword [0x591f18]
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x591f04], eax
je 0x48a86a
mov eax, 0x10dd
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a4566
mov esp, ebp
pop ebp
ret 4
cmp dword [0x591f14], 0
je 0x48a87d
call fcn.0048a690
jmp 0x48ab18
push ebx
push esi
mov esi, dword [0x591f20]
push edi
test esi, esi
je 0x48a951
nop
cmp dword [esi + 4], 0
mov eax, dword [esi + 0x10]
je 0x48a909
xor edi, edi
cmp byte [eax + 0x17], 0
jbe 0x48a8e7
nop dword [eax]
nop word [eax + eax]
lea ecx, [ebp - 0x2d4]
mov dword [ebp - 0x2d4], 0
push ecx
push 0
push eax
mov eax, dword [esi + 0xc]
add eax, edi
push eax
call fcn.00492820
cmp dword [ebp - 0x2d4], 0
jne 0x48a8e7
mov ecx, dword [esi + 0x10]
mov edi, eax
sub edi, ecx
movzx ecx, byte [ecx + 0x17]
cmp edi, ecx
jl 0x48a8b0
mov eax, dword [esi + 0x10]
movzx eax, byte [eax + 0x17]
cmp edi, eax
je 0x48a904
mov eax, dword [esi + 8]
mov dword [0x591f14], 0xd
mov dword [0x591f18], eax
mov eax, dword [esi + 0xc]
jmp 0x48a942
mov edx, dword [esi + 0xc]
xor ebx, ebx
mov ecx, dword [eax + 0x1c]
lea eax, [edx + 5]
mov byte [edx], 0xe9
sub ecx, eax
mov dword [edx + 1], ecx
add edx, 5
mov eax, dword [esi + 0x10]
xor ecx, ecx
mov eax, dword [eax + 0x18]
mov edi, eax
sub edi, edx
cmp edx, eax
cmova edi, ebx
test edi, edi
je 0x48a93f
inc ecx
mov byte [edx], 0xcc
lea edx, [edx + 1]
cmp ecx, edi
jb 0x48a934
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 8]
mov dword [ecx], eax
mov esi, dword [esi]
test esi, esi
jne 0x48a890
mov edi, dword [0x591f1c]
test edi, edi
je 0x48aa08
mov ebx, dword [sym.imp.KERNEL32.dll_SetThreadContext]
nop word [eax + eax]
lea eax, [ebp - 0x2d0]
mov dword [ebp - 0x2d0], 0x10001
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x48a9fe
mov esi, dword [0x591f20]
test esi, esi
je 0x48a9fe
mov ecx, dword [ebp - 0x218]
nop
cmp dword [esi + 4], 0
je 0x48a9c1
mov edx, dword [esi + 0x10]
cmp ecx, edx
jb 0x48a9f8
lea eax, [edx + 4]
cmp ecx, eax
jae 0x48a9f8
sub ecx, edx
mov dword [ebp - 0x218], ecx
add ecx, dword [esi + 0xc]
jmp 0x48a9e0
mov edx, dword [esi + 0xc]
cmp ecx, edx
jb 0x48a9f8
mov eax, dword [esi + 0x10]
movzx eax, byte [eax + 0x17]
add eax, edx
cmp ecx, eax
jae 0x48a9f8
sub ecx, edx
mov dword [ebp - 0x218], ecx
add ecx, dword [esi + 0x10]
lea eax, [ebp - 0x2d0]
mov dword [ebp - 0x218], ecx
push eax
push dword [edi + 4]
call ebx
mov ecx, dword [ebp - 0x218]
mov esi, dword [esi]
test esi, esi
jne 0x48a9a0
mov edi, dword [edi]
test edi, edi
jne 0x48a970
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edi, dword [0x591f20]
mov esi, eax
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [ebp - 0x2d4], esi
test edi, edi
je 0x48aa97
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 ebx
mov eax, dword [edi + 0x10]
movzx eax, byte [eax + 0x17]
push eax
push dword [edi + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
cmp dword [edi + 4], 0
je 0x48aa7e
mov edx, dword [edi + 0x10]
test edx, edx
je 0x48aa7e
mov ecx, edx
xorps xmm0, xmm0
and ecx, 0xffff0000
movups xmmword [edx], xmm0
movups xmmword [edx + 0x10], xmm0
mov eax, dword [ecx + 8]
mov dword [edx + 0x18], eax
mov dword [ecx + 8], edx
mov dword [edi + 0x10], 0
mov esi, dword [edi]
push 0x18
push edi
call fcn.004a42c5
add esp, 8
mov edi, esi
test esi, esi
mov esi, dword [ebp - 0x2d4]
jne 0x48aa26
mov esi, dword [0x591f08]
mov dword [0x591f20], 0
test esi, esi
je 0x48aac8
nop dword [eax + eax]
lea eax, [ebp - 0x2d4]
push eax
push 0x20
push 0x10000
push esi
call ebx
mov esi, dword [esi + 4]
test esi, esi
jne 0x48aab0
mov edi, dword [0x591f1c]
test edi, edi
je 0x48aaf0
mov ebx, dword [sym.imp.KERNEL32.dll_ResumeThread]
push dword [edi + 4]
call ebx
mov esi, dword [edi]
push 8
push edi
call fcn.004a42c5
add esp, 8
mov edi, esi
test esi, esi
jne 0x48aad8
mov ecx, dword [ebp - 0x2d8]
mov dword [0x591f1c], 0
mov dword [0x591f04], 0
pop edi
pop esi
pop ebx
test ecx, ecx
je 0x48ab18
mov eax, dword [0x591f18]
mov dword [ecx], eax
mov ecx, dword [ebp - 4]
mov eax, dword [0x591f14]
xor ecx, ebp
call fcn.004a4566
mov esp, ebp
pop ebp
ret 4