Function at 0x101358bd
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101572dc
mov eax, dword fs:[0]
push eax
sub esp, 0x2d8
mov eax, dword [0x101fe1c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x10207430], eax
je 0x10135903
mov eax, 0x10dd
jmp 0x10135b35
cmp dword [0x10207434], 0
je 0x10135916
call fcn.10135793
jmp 0x10135b30
mov edi, dword [0x10207414]
mov byte [ebp - 0x2dd], 0
jmp 0x10135970
cmp dword [edi + 4], 0
mov ecx, dword [edi + 0x10]
je 0x10135947
movzx eax, byte [ecx + 0x36]
push eax
lea eax, [ecx + 0x20]
push eax
push dword [edi + 0xc]
call fcn.1003529d
mov eax, dword [edi + 0xc]
add esp, 0xc
jmp 0x10135969
mov esi, dword [edi + 0xc]
mov ecx, dword [ecx + 0x44]
lea eax, [esi + 5]
mov byte [esi], 0xe9
sub ecx, eax
mov dword [esi + 1], ecx
lea ecx, [esi + 5]
mov edx, dword [edi + 0x10]
mov edx, dword [edx + 0x40]
call fcn.10135f0c
mov eax, dword [edi + 0x10]
mov ecx, dword [edi + 8]
mov dword [ecx], eax
mov edi, dword [edi]
test edi, edi
jne 0x10135925
mov edi, dword [0x1020741c]
jmp 0x10135a54
lea eax, [ebp - 0x2dc]
mov dword [ebp - 0x2dc], 0x10001
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x10135a52
mov esi, dword [0x10207414]
test esi, esi
je 0x10135a52
mov ecx, dword [ebp - 0x224]
cmp dword [esi + 4], 0
je 0x101359f6
mov edx, dword [esi + 0x10]
cmp ecx, edx
jb 0x10135a48
lea eax, [edx + 4]
cmp ecx, eax
jae 0x10135a48
xor ebx, ebx
sub cl, dl
mov dl, byte [edx + ebx + 0x38]
mov al, dl
shr al, 3
cmp al, cl
je 0x101359eb
mov edx, dword [esi + 0x10]
inc ebx
cmp ebx, 8
jb 0x101359d1
xor dl, dl
jmp 0x101359ee
and dl, 7
movzx eax, dl
add eax, dword [esi + 0xc]
jmp 0x10135a2c
cmp ecx, dword [esi + 0xc]
jb 0x10135a48
mov ebx, dword [esi + 0x10]
movzx eax, byte [ebx + 0x36]
add eax, dword [esi + 0xc]
cmp ecx, eax
jae 0x10135a48
xor edx, edx
sub cl, byte [esi + 0xc]
mov ah, byte [ebx + edx + 0x38]
mov al, ah
and al, 7
cmp al, cl
je 0x10135a24
inc edx
cmp edx, 8
jb 0x10135a0e
xor eax, eax
jmp 0x10135a2a
movzx eax, ah
shr eax, 3
add eax, ebx
mov dword [ebp - 0x224], eax
lea eax, [ebp - 0x2dc]
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
mov ecx, dword [ebp - 0x224]
mov esi, dword [esi]
test esi, esi
jne 0x101359b5
mov edi, dword [edi]
test edi, edi
jne 0x1013597f
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edi, dword [0x10207414]
mov ebx, eax
test edi, edi
je 0x10135ae0
lea eax, [ebp - 0x2e4]
push eax
mov eax, dword [edi + 0x10]
push dword [edi + 0x14]
movzx eax, byte [eax + 0x36]
push eax
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [edi + 0x10]
movzx eax, byte [eax + 0x36]
push eax
push dword [edi + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
cmp dword [edi + 4], 0
je 0x10135ad1
mov esi, dword [edi + 0x10]
test esi, esi
je 0x10135ad1
push 0x48
push 0
push esi
call fcn.10035153
mov ecx, esi
mov byte [ebp - 0x2dd], 1
and ecx, 0xffff0000
add esp, 0xc
mov eax, dword [ecx + 8]
mov dword [esi + 0x40], eax
mov dword [ecx + 8], esi
and dword [edi + 0x10], 0
mov esi, dword [edi]
push edi
call fcn.1002b486
mov edi, esi
pop ecx
test esi, esi
jne 0x10135a6e
xor ebx, ebx
mov dword [0x10207414], ebx
cmp byte [ebp - 0x2dd], bl
je 0x10135afd
cmp dword [0x10207420], ebx
jne 0x10135afd
call fcn.10135eca
call fcn.10135ffc
mov edi, dword [0x1020741c]
test edi, edi
je 0x10135b24
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov esi, dword [edi]
push edi
call fcn.1002b486
mov edi, esi
pop ecx
test esi, esi
jne 0x10135b0c
mov dword [0x1020741c], ebx
mov dword [0x10207430], ebx
mov eax, dword [0x10207434]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10033218
leave
ret