Function at 0x1113d570
Capabilities:
Resume thread

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x2d0
test eax, eax
je 0x1113d586
mov ecx, dword [0x111e14a8]
mov dword [eax], ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x111e14a0], eax
je 0x1113d5a2
mov eax, 0x10dd
add esp, 0x2d0
ret 4
mov eax, dword [0x111e14a4]
test eax, eax
je 0x1113d5be
call fcn.1113d440
mov eax, dword [0x111e14a4]
add esp, 0x2d0
ret 4
push ebx
push ebp
push esi
mov esi, dword [0x111e14b0]
test esi, esi
push edi
je 0x1113d6d1
mov bl, 0xff
mov eax, dword [esi + 4]
test eax, eax
je 0x1113d680
mov eax, dword [esi + 0x10]
xor edi, edi
mov cl, byte [eax + 0x17]
test cl, cl
jbe 0x1113d657
cmp byte [eax], 0x64
jne 0x1113d621
cmp byte [eax + 1], bl
jne 0x1113d621
mov cl, byte [eax + 2]
cmp cl, 0x15
je 0x1113d600
cmp cl, 0x25
jne 0x1113d621
mov edx, dword [esi + 0xc]
mov ecx, eax
add edx, edi
add eax, 7
mov ebp, dword [ecx]
add edi, 7
mov dword [edx], ebp
mov bp, word [ecx + 4]
mov word [edx + 4], bp
mov cl, byte [ecx + 6]
mov byte [edx + 6], cl
jmp 0x1113d64b
lea edx, [esp + 0x10]
mov dword [esp + 0x10], 0
push edx
push 0
push eax
mov eax, dword [esi + 0xc]
add eax, edi
push eax
call fcn.1113f0d0
mov ecx, dword [esp + 0x10]
test ecx, ecx
jne 0x1113d657
mov ecx, dword [esi + 0x10]
mov edi, eax
sub edi, ecx
mov ecx, dword [esi + 0x10]
xor edx, edx
mov dl, byte [ecx + 0x17]
cmp edi, edx
jl 0x1113d5e9
mov eax, dword [esi + 0x10]
xor ecx, ecx
mov cl, byte [eax + 0x17]
cmp edi, ecx
je 0x1113d676
mov dword [0x111e14a4], 0xd
mov edx, dword [esi + 8]
mov dword [0x111e14a8], edx
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
mov dword [eax], ecx
jmp 0x1113d6c7
mov edx, dword [esi + 8]
mov eax, dword [esi + 0x10]
mov dword [edx], eax
mov ecx, dword [esi + 0x10]
mov eax, dword [esi + 0xc]
mov ecx, dword [ecx + 0x20]
lea edx, [eax + 5]
mov byte [eax], 0xe9
inc eax
sub ecx, edx
mov dword [eax], ecx
mov edx, dword [esi + 0x10]
mov ecx, dword [edx + 0x1c]
test ecx, ecx
je 0x1113d6c7
cmp ecx, dword [edx + 0x18]
ja 0x1113d6c7
lea edi, [eax + 4]
cmp edi, ecx
jae 0x1113d6c7
sub ecx, edi
mov eax, 0x90909090
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov esi, dword [esi]
test esi, esi
jne 0x1113d5d2
mov edi, dword [0x111e14ac]
test edi, edi
je 0x1113d780
mov ebp, dword [sym.imp.KERNEL32.dll_SetThreadContext]
mov ecx, dword [edi + 4]
lea eax, [esp + 0x14]
push eax
push ecx
mov dword [esp + 0x1c], 0x10001
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x1113d776
mov esi, dword [0x111e14b0]
test esi, esi
je 0x1113d776
mov eax, dword [esp + 0xcc]
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x1113d734
mov ecx, dword [esi + 0x10]
cmp eax, ecx
jb 0x1113d770
lea edx, [ecx + 4]
cmp eax, edx
jae 0x1113d770
sub eax, ecx
mov dword [esp + 0xcc], eax
mov edx, dword [esi + 0xc]
jmp 0x1113d755
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jb 0x1113d770
mov edx, dword [esi + 0x10]
xor ebx, ebx
mov bl, byte [edx + 0x17]
add ebx, ecx
cmp eax, ebx
jae 0x1113d770
sub eax, ecx
mov dword [esp + 0xcc], eax
mov edx, dword [esi + 0x10]
mov ecx, dword [edi + 4]
add eax, edx
mov dword [esp + 0xcc], eax
lea eax, [esp + 0x14]
push eax
push ecx
call ebp
mov eax, dword [esp + 0xcc]
mov esi, dword [esi]
test esi, esi
jne 0x1113d711
mov edi, dword [edi]
test edi, edi
jne 0x1113d6e5
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov esi, dword [0x111e14b0]
xor ebx, ebx
cmp esi, ebx
mov ebp, eax
je 0x1113d7f7
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [esi + 0x10]
mov eax, dword [esi + 0x14]
lea edx, [esp + 0x10]
push edx
xor edx, edx
mov dl, byte [ecx + 0x17]
push eax
mov eax, dword [esi + 0xc]
push edx
push eax
call ebx
mov ecx, dword [esi + 0x10]
mov eax, dword [esi + 0xc]
xor edx, edx
mov dl, byte [ecx + 0x17]
push edx
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov eax, dword [esi + 4]
test eax, eax
je 0x1113d7e4
mov eax, dword [esi + 0x10]
test eax, eax
je 0x1113d7e4
push eax
call fcn.1113d530
add esp, 4
mov dword [esi + 0x10], 0
mov edi, dword [esi]
push esi
call fcn.1113f6ae
add esp, 4
mov esi, edi
test edi, edi
jne 0x1113d79a
xor ebx, ebx
mov dword [0x111e14b0], ebx
call fcn.1113d500
mov esi, dword [0x111e14ac]
cmp esi, ebx
je 0x1113d829
mov ebp, dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [esi + 4]
push ecx
call ebp
mov edi, dword [esi]
push esi
call fcn.1113f6ae
add esp, 4
cmp edi, ebx
mov esi, edi
jne 0x1113d812
mov eax, dword [esp + 0x2e4]
pop edi
pop esi
mov dword [0x111e14ac], ebx
mov dword [0x111e14a0], ebx
pop ebp
cmp eax, ebx
pop ebx
je 0x1113d84c
mov edx, dword [0x111e14a8]
mov dword [eax], edx
mov eax, dword [0x111e14a4]
add esp, 0x2d0
ret 4