Function at 0x10048d60
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2dc
mov eax, dword [0x1014f644]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x1015a54c], eax
je 0x10048d94
mov eax, 0x10dd
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100719c1
mov esp, ebp
pop ebp
ret
cmp dword [0x1015a550], 0
je 0x10048db5
call fcn.10048c80
mov eax, dword [0x1015a550]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100719c1
mov esp, ebp
pop ebp
ret
push ebx
push esi
mov esi, dword [0x1015a55c]
push edi
mov dword [ebp - 0x2d4], 0
test esi, esi
je 0x10048e38
lea esp, [esp]
cmp dword [esi + 4], 0
je 0x10048df8
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.10077f40
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
add esp, 0xc
mov dword [eax], ecx
jmp 0x10048e32
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 0x10048e2a
sub ecx, eax
push ecx
push 0xcc
push eax
call fcn.1007ada0
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 0x10048dd0
mov eax, dword [0x1015a558]
mov ebx, eax
test eax, eax
je 0x10048f4a
jmp 0x10048e50
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 0x10048f40
mov edi, dword [0x1015a55c]
test edi, edi
je 0x10048f40
mov ecx, dword [ebp - 0x218]
cmp dword [edi + 4], 0
je 0x10048ee4
mov esi, dword [edi + 0x10]
cmp ecx, esi
jb 0x10048f36
lea eax, [esi + 4]
cmp ecx, eax
jae 0x10048f36
xor eax, eax
sub cl, byte [edi + 0x10]
jmp 0x10048eb0
mov dl, byte [esi + eax + 0x38]
shr dl, 3
cmp dl, cl
je 0x10048edc
inc eax
cmp eax, 8
jb 0x10048eb0
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 0x10048f2a
mov al, byte [eax + esi + 0x38]
and al, 7
jmp 0x10048ec3
mov eax, dword [edi + 0xc]
cmp ecx, eax
jb 0x10048f36
mov esi, dword [edi + 0x10]
movzx edx, byte [esi + 0x36]
add edx, eax
cmp ecx, edx
jae 0x10048f36
xor eax, eax
sub cl, byte [edi + 0xc]
lea ecx, [ecx]
mov dl, byte [esi + eax + 0x38]
and dl, 7
cmp dl, cl
je 0x10049099
inc eax
cmp eax, 8
jb 0x10048f00
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 0x10048e87
mov ebx, dword [ebx]
test ebx, ebx
jne 0x10048e50
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov esi, dword [0x1015a55c]
mov dword [ebp - 0x2d8], eax
test esi, esi
je 0x10048feb
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 - 0x2d8]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
cmp dword [esi + 4], 0
je 0x10048fd6
mov ebx, dword [esi + 0x10]
test ebx, ebx
je 0x10048fd6
push 0x48
push 0
mov edi, ebx
push ebx
and edi, 0xffff0000
call fcn.1007ada0
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.100719b6
add esp, 4
mov esi, edi
test edi, edi
jne 0x10048f64
cmp dword [ebp - 0x2d4], 0
mov dword [0x1015a55c], 0
je 0x1004900c
cmp dword [0x1015a548], 0
jne 0x1004900c
call fcn.10048b90
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov esi, dword [0x1015a53c]
mov edi, eax
test esi, esi
je 0x10049049
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 0x10049020
mov esi, dword [0x1015a558]
test esi, esi
je 0x10049077
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.100719b6
add esp, 4
mov esi, edi
test edi, edi
jne 0x10049060
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
mov dword [0x1015a558], eax
mov dword [0x1015a54c], eax
mov eax, dword [0x1015a550]
xor ecx, ebp
pop ebx
call fcn.100719c1
mov esp, ebp
pop ebp
ret
movzx eax, byte [eax + esi + 0x38]
shr eax, 3
jmp 0x10048f17