Function at 0x10005fe0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x334
mov eax, dword [0x10047410]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x10058c84], eax
je 0x10006014
mov eax, 0x10dd
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001f521
mov esp, ebp
pop ebp
ret
push edi
xor edi, edi
cmp dword [0x10058c88], edi
je 0x10006038
call fcn.10005ee0
mov eax, dword [0x10058c88]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001f521
mov esp, ebp
pop ebp
ret
push ebx
push esi
mov esi, dword [0x10058c94]
cmp esi, edi
je 0x1000613d
jmp 0x10006050
cmp dword [esi + 4], edi
je 0x100060f9
mov edx, dword [esi + 0x10]
xor ebx, ebx
cmp byte [edx + 0x17], bl
jbe 0x100060d2
mov eax, dword [esi + 0xc]
add eax, ebx
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x54], ecx
lea ecx, [ebp - 0x330]
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x330], edi
jne 0x1000608e
lea eax, [ebp - 0x44]
cmp edx, edi
jne 0x1000609e
push 0xd
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x100060b9
movzx edi, byte [edx]
push edx
mov edx, dword [edi*8 + 0x10038574]
lea edi, [edi*8 + 0x10038570]
push eax
push edi
lea ecx, [ebp - 0x60]
call edx
xor edi, edi
mov edx, eax
cmp dword [ebp - 0x330], edi
jne 0x100060d2
mov ecx, dword [esi + 0x10]
sub eax, ecx
mov ebx, eax
movzx eax, byte [ecx + 0x17]
cmp ebx, eax
jl 0x10006063
mov ecx, dword [esi + 0x10]
movzx edx, byte [ecx + 0x17]
cmp ebx, edx
je 0x100060ef
mov eax, dword [esi + 8]
mov dword [0x10058c88], 0xd
mov dword [0x10058c8c], eax
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0xc]
mov dword [ecx], edx
jmp 0x10006133
mov eax, dword [esi + 0x10]
mov ecx, dword [eax + 0x1c]
mov eax, dword [esi + 0xc]
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 + 0x18]
add eax, 5
cmp eax, ecx
jae 0x1000612b
sub ecx, eax
push ecx
push 0xcc
push eax
call fcn.10024a20
add esp, 0xc
mov edx, dword [esi + 8]
mov eax, dword [esi + 0x10]
mov dword [edx], eax
mov esi, dword [esi]
cmp esi, edi
jne 0x10006050
mov ebx, dword [0x10058c90]
cmp ebx, edi
je 0x100061eb
mov edi, dword [sym.imp.KERNEL32.dll_SetThreadContext]
mov edx, dword [ebx + 4]
lea ecx, [ebp - 0x32c]
push ecx
push edx
mov dword [ebp - 0x32c], 0x10001
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x100061df
mov esi, dword [0x10058c94]
test esi, esi
je 0x100061df
mov eax, dword [ebp - 0x274]
cmp dword [esi + 4], 0
je 0x100061a1
mov ecx, dword [esi + 0x10]
cmp eax, ecx
jb 0x100061d9
lea edx, [ecx + 4]
cmp eax, edx
jae 0x100061d9
sub eax, ecx
mov dword [ebp - 0x274], eax
add eax, dword [esi + 0xc]
jmp 0x100061c0
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jb 0x100061d9
mov edx, dword [esi + 0x10]
movzx edx, byte [edx + 0x17]
add edx, ecx
cmp eax, edx
jae 0x100061d9
sub eax, ecx
mov dword [ebp - 0x274], eax
add eax, dword [esi + 0x10]
mov ecx, dword [ebx + 4]
mov dword [ebp - 0x274], eax
lea eax, [ebp - 0x32c]
push eax
push ecx
call edi
mov eax, dword [ebp - 0x274]
mov esi, dword [esi]
test esi, esi
jne 0x10006180
mov ebx, dword [ebx]
test ebx, ebx
jne 0x10006151
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov esi, dword [0x10058c94]
cmp esi, edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [ebp - 0x330], eax
je 0x1000628c
jmp 0x10006210
mov ecx, dword [esi + 0x10]
mov eax, dword [esi + 0x14]
lea edx, [ebp - 0x334]
push edx
movzx edx, byte [ecx + 0x17]
push eax
mov eax, dword [esi + 0xc]
push edx
push eax
call edi
mov ecx, dword [esi + 0x10]
movzx edx, byte [ecx + 0x17]
mov eax, dword [esi + 0xc]
mov ecx, dword [ebp - 0x330]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
xor ecx, ecx
cmp dword [esi + 4], ecx
je 0x1000627b
mov eax, dword [esi + 0x10]
cmp eax, ecx
je 0x1000627b
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov edx, eax
mov dword [eax + 0x1c], ecx
and edx, 0xffff0000
mov ebx, dword [edx + 8]
mov dword [eax + 0x18], ebx
mov dword [edx + 8], eax
mov dword [esi + 0x10], ecx
mov ebx, dword [esi]
push esi
call fcn.1001f865
add esp, 4
mov esi, ebx
test ebx, ebx
jne 0x10006210
mov esi, dword [0x10058c78]
xor ebx, ebx
mov dword [0x10058c94], ebx
cmp esi, ebx
je 0x100062b8
mov edi, edi
lea edx, [ebp - 0x330]
push edx
push 0x20
push 0x10000
push esi
call edi
mov esi, dword [esi + 4]
cmp esi, ebx
jne 0x100062a0
mov esi, dword [0x10058c90]
cmp esi, ebx
je 0x100062df
mov edi, dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [esi + 4]
push eax
call edi
mov ebx, dword [esi]
push esi
call fcn.1001f865
add esp, 4
mov esi, ebx
test ebx, ebx
jne 0x100062c8
mov ecx, dword [ebp - 4]
mov eax, dword [0x10058c88]
pop esi
mov dword [0x10058c90], ebx
mov dword [0x10058c84], ebx
pop ebx
xor ecx, ebp
pop edi
call fcn.1001f521
mov esp, ebp
pop ebp
ret