Function at 0x41e460
Capabilities:
Resume thread

Disassembly:
sub esp, 0x330
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x46745c], eax
je 0x41e480
mov eax, 0x10dd
add esp, 0x330
ret
cmp dword [0x467460], 0
je 0x41e49a
call fcn.0041e380
mov eax, dword [0x467460]
add esp, 0x330
ret
push ebx
push ebp
push esi
mov esi, dword [0x46746c]
test esi, esi
push edi
je 0x41e5a7
lea esp, [esp]
cmp dword [esi + 4], 0
je 0x41e561
mov edx, dword [esi + 0x10]
xor ebp, ebp
cmp byte [edx + 0x17], 0
jbe 0x41e53a
mov eax, dword [esi + 0xc]
add eax, ebp
mov ebx, 0
lea ecx, [esp + 0x30]
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0x10]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x10], ebx
jne 0x41e4f9
lea eax, [esp + 0x34]
cmp edx, ebx
jne 0x41e509
push 0xd
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x41e523
movzx edi, byte [edx]
push edx
mov edx, dword [edi*8 + 0x458f34]
lea edi, [edi*8 + 0x458f30]
push eax
push edi
lea ecx, [esp + 0x24]
call edx
cmp dword [esp + 0x10], ebx
mov edx, eax
jne 0x41e53a
mov ecx, dword [esi + 0x10]
sub eax, ecx
mov ebp, eax
movzx eax, byte [ecx + 0x17]
cmp ebp, eax
jl 0x41e4c5
mov ecx, dword [esi + 0x10]
movzx edx, byte [ecx + 0x17]
cmp ebp, edx
je 0x41e557
mov eax, dword [esi + 8]
mov dword [0x467460], 0xd
mov dword [0x467464], eax
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0xc]
mov dword [ecx], edx
jmp 0x41e59d
mov eax, dword [esi + 0x10]
mov ecx, dword [eax + 0x1c]
mov eax, dword [esi + 0xc]
mov byte [eax], 0xe9
lea edx, [eax + 5]
sub ecx, edx
add eax, 1
mov dword [eax], ecx
mov ecx, dword [esi + 0x10]
mov ecx, dword [ecx + 0x18]
add eax, 4
cmp eax, ecx
jae 0x41e595
sub ecx, eax
push ecx
push 0xcc
push eax
call fcn.0042b930
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 0x41e4b0
mov edi, dword [0x467468]
test edi, edi
je 0x41e65b
mov ebp, dword [sym.imp.KERNEL32.dll_GetThreadContext]
mov ebx, dword [sym.imp.KERNEL32.dll_SetThreadContext]
mov edx, dword [edi + 4]
lea ecx, [esp + 0x74]
push ecx
push edx
mov dword [esp + 0x7c], 0x10001
call ebp
test eax, eax
je 0x41e651
mov esi, dword [0x46746c]
test esi, esi
je 0x41e651
mov eax, dword [esp + 0x12c]
lea esp, [esp]
cmp dword [esi + 4], 0
je 0x41e612
mov ecx, dword [esi + 0x10]
cmp eax, ecx
jb 0x41e64b
lea edx, [ecx + 4]
cmp eax, edx
jae 0x41e64b
sub eax, ecx
mov dword [esp + 0x12c], eax
add eax, dword [esi + 0xc]
jmp 0x41e632
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jb 0x41e64b
mov edx, dword [esi + 0x10]
movzx edx, byte [edx + 0x17]
add edx, ecx
cmp eax, edx
jae 0x41e64b
sub eax, ecx
mov dword [esp + 0x12c], eax
add eax, dword [esi + 0x10]
mov ecx, dword [edi + 4]
mov dword [esp + 0x12c], eax
lea eax, [esp + 0x74]
push eax
push ecx
call ebx
mov eax, dword [esp + 0x12c]
mov esi, dword [esi]
test esi, esi
jne 0x41e5f0
mov edi, dword [edi]
test edi, edi
jne 0x41e5c1
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov esi, dword [0x46746c]
test esi, esi
mov ebp, dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ebx, eax
je 0x41e6e7
mov ecx, dword [esi + 0x10]
mov eax, dword [esi + 0x14]
lea edx, [esp + 0x10]
push edx
movzx edx, byte [ecx + 0x17]
push eax
mov eax, dword [esi + 0xc]
push edx
push eax
call ebp
mov ecx, dword [esi + 0x10]
movzx edx, byte [ecx + 0x17]
mov eax, dword [esi + 0xc]
push edx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
xor ecx, ecx
cmp dword [esi + 4], ecx
je 0x41e6d6
mov eax, dword [esi + 0x10]
cmp eax, ecx
je 0x41e6d6
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 edi, dword [edx + 8]
mov dword [eax + 0x18], edi
mov dword [edx + 8], eax
mov dword [esi + 0x10], ecx
mov edi, dword [esi]
push esi
call fcn.0042b927
add esp, 4
test edi, edi
mov esi, edi
jne 0x41e673
mov esi, dword [0x467450]
xor ebx, ebx
cmp esi, ebx
mov dword [0x46746c], ebx
je 0x41e716
lea esp, [esp]
lea ecx, [esp + 0x14]
push ecx
push 0x20
push 0x10000
push esi
call ebp
mov esi, dword [esi + 4]
cmp esi, ebx
jne 0x41e700
mov esi, dword [0x467468]
cmp esi, ebx
je 0x41e73d
mov ebp, dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edx, dword [esi + 4]
push edx
call ebp
mov edi, dword [esi]
push esi
call fcn.0042b927
add esp, 4
cmp edi, ebx
mov esi, edi
jne 0x41e726
mov eax, dword [0x467460]
pop edi
pop esi
pop ebp
mov dword [0x467468], ebx
mov dword [0x46745c], ebx
pop ebx
add esp, 0x330
ret