Function at 0x1404ff0
Capabilities:
Resume thread

Disassembly:
sub esp, 0x2dc
mov eax, dword [0x145b084]
xor eax, esp
mov dword [esp + 0x2d8], eax
mov ecx, dword [esp + 0x2e0]
mov dword [esp + 4], ecx
test ecx, ecx
je 0x140501a
mov eax, dword [0x345e1ec]
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x345e1e4], eax
je 0x1405044
mov eax, 0x10dd
mov ecx, dword [esp + 0x2d8]
xor ecx, esp
call fcn.014096e2
add esp, 0x2dc
ret 4
cmp dword [0x345e1e8], 0
je 0x1405057
call fcn.01404ea0
jmp 0x1405292
push ebx
push esi
mov esi, dword [0x345e1f4]
mov dword [esp + 8], 0
push edi
test esi, esi
je 0x14050e0
nop dword [eax]
cmp dword [esi + 4], 0
mov ecx, dword [esi + 0x10]
je 0x1405097
movzx eax, byte [ecx + 0x36]
push eax
lea eax, [ecx + 0x20]
push eax
push dword [esi + 0xc]
call fcn.0140aa10
mov ecx, dword [esi + 8]
add esp, 0xc
mov eax, dword [esi + 0xc]
mov dword [ecx], eax
jmp 0x14050da
mov edx, dword [esi + 0xc]
xor ebx, ebx
mov ecx, dword [ecx + 0x44]
lea eax, [edx + 5]
mov byte [edx], 0xe9
sub ecx, eax
lea edi, [edx + 5]
mov dword [edx + 1], ecx
mov ecx, dword [esi + 0x10]
mov edx, dword [ecx + 0x40]
sub edx, edi
cmp edi, dword [ecx + 0x40]
cmova edx, ebx
test edx, edx
je 0x14050d5
mov ecx, edx
mov eax, 0xcccccccc
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esi + 0x10]
mov eax, dword [esi + 8]
mov dword [eax], ecx
mov esi, dword [esi]
test esi, esi
jne 0x1405070
mov ebx, dword [0x345e1f0]
push ebp
test ebx, ebx
je 0x14051a5
mov ebp, dword [sym.imp.KERNEL32.dll_SetThreadContext]
nop word [eax + eax]
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0x10001
push eax
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x140519b
mov esi, dword [0x345e1f4]
test esi, esi
je 0x140519b
mov ecx, dword [esp + 0xd4]
nop
cmp dword [esi + 4], 0
je 0x1405158
mov edx, dword [esi + 0x10]
cmp ecx, edx
jb 0x1405195
lea eax, [edx + 4]
cmp ecx, eax
jae 0x1405195
sub cl, dl
movzx eax, cl
push eax
push edx
call fcn.014042f0
movzx eax, al
add eax, dword [esi + 0xc]
jmp 0x140517a
mov edx, dword [esi + 0xc]
cmp ecx, edx
jb 0x1405195
mov edi, dword [esi + 0x10]
movzx eax, byte [edi + 0x36]
add eax, edx
cmp ecx, eax
jae 0x1405195
sub cl, dl
movzx eax, cl
push eax
push edi
call fcn.014042b0
add eax, edi
add esp, 8
mov dword [esp + 0xd4], eax
lea eax, [esp + 0x1c]
push eax
push dword [ebx + 4]
call ebp
mov ecx, dword [esp + 0xd4]
mov esi, dword [esi]
test esi, esi
jne 0x1405130
mov ebx, dword [ebx]
test ebx, ebx
jne 0x1405100
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edi, dword [0x345e1f4]
mov ebx, eax
test edi, edi
je 0x140521f
mov ebp, dword [sym.imp.KERNEL32.dll_VirtualProtect]
nop dword [eax]
lea eax, [esp + 0x18]
push eax
mov eax, dword [edi + 0x10]
push dword [edi + 0x14]
movzx eax, byte [eax + 0x36]
push eax
push dword [edi + 0xc]
call ebp
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 0x140520c
mov eax, dword [edi + 0x10]
test eax, eax
je 0x140520c
push eax
call fcn.014046b0
add esp, 4
mov dword [edi + 0x10], 0
mov dword [esp + 0x10], 1
mov esi, dword [edi]
push 0x18
push edi
call fcn.014092c4
add esp, 8
mov edi, esi
test esi, esi
jne 0x14051c0
cmp dword [esp + 0x10], 0
mov dword [0x345e1f4], 0
pop ebp
je 0x140523f
cmp dword [0x345e1e0], 0
jne 0x140523f
call fcn.014046e0
call fcn.01404850
mov edi, dword [0x345e1f0]
test edi, edi
je 0x140526c
mov ebx, dword [sym.imp.KERNEL32.dll_ResumeThread]
push dword [edi + 4]
call ebx
mov esi, dword [edi]
push 8
push edi
call fcn.014092c4
add esp, 8
mov edi, esi
test esi, esi
jne 0x1405254
mov ecx, dword [esp + 0x10]
mov dword [0x345e1f0], 0
mov dword [0x345e1e4], 0
pop edi
pop esi
pop ebx
test ecx, ecx
je 0x1405292
mov eax, dword [0x345e1ec]
mov dword [ecx], eax
mov ecx, dword [esp + 0x2d8]
mov eax, dword [0x345e1e8]
xor ecx, esp
call fcn.014096e2
add esp, 0x2dc
ret 4