Function at 0x41b0e0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2dc
mov eax, dword [0x425090]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
mov dword [ebp - 0x2d8], eax
cmp eax, ebx
je 0x41b10b
mov ecx, dword [0x426ed0]
mov dword [eax], ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x426ec8], eax
je 0x41b12f
mov eax, 0x10dd
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040cbaa
mov esp, ebp
pop ebp
ret 4
cmp dword [0x426ecc], ebx
je 0x41b141
call fcn.0041afe0
jmp 0x41b3bf
push esi
mov esi, dword [0x426ed8]
push edi
cmp esi, ebx
je 0x41b1fd
cmp dword [esi + 4], ebx
je 0x41b1b9
mov eax, dword [esi + 0x10]
xor edi, edi
cmp byte [eax + 0x17], bl
jbe 0x41b191
lea edx, [ebp - 0x2d4]
push edx
push ebx
push eax
mov eax, dword [esi + 0xc]
add eax, edi
push eax
mov dword [ebp - 0x2d4], ebx
call fcn.0041b8c0
cmp dword [ebp - 0x2d4], ebx
jne 0x41b191
mov ecx, dword [esi + 0x10]
mov edi, eax
sub edi, ecx
movzx ecx, byte [ecx + 0x17]
cmp edi, ecx
jl 0x41b160
mov edx, dword [esi + 0x10]
movzx eax, byte [edx + 0x17]
cmp edi, eax
je 0x41b1af
mov ecx, dword [esi + 8]
mov dword [0x426ecc], 0xd
mov dword [0x426ed0], ecx
mov edx, dword [esi + 8]
mov eax, dword [esi + 0xc]
mov dword [edx], eax
jmp 0x41b1f3
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
mov ecx, dword [ecx + 0x1c]
lea edx, [eax + 5]
sub ecx, edx
mov byte [eax], 0xe9
mov dword [eax + 1], ecx
mov edx, dword [esi + 0x10]
mov ecx, dword [edx + 0x18]
add eax, 5
cmp eax, ecx
jae 0x41b1eb
sub ecx, eax
push ecx
push 0xcc
push eax
call fcn.0040e5e0
add esp, 0xc
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0x10]
mov dword [eax], ecx
mov esi, dword [esi]
cmp esi, ebx
jne 0x41b151
mov edi, dword [0x426ed4]
cmp edi, ebx
je 0x41b2ab
mov ebx, dword [sym.imp.KERNEL32.dll_SetThreadContext]
mov eax, dword [edi + 4]
lea edx, [ebp - 0x2d0]
push edx
push eax
mov dword [ebp - 0x2d0], 0x10001
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x41b29f
mov esi, dword [0x426ed8]
test esi, esi
je 0x41b29f
mov eax, dword [ebp - 0x218]
cmp dword [esi + 4], 0
je 0x41b261
mov ecx, dword [esi + 0x10]
cmp eax, ecx
jb 0x41b299
lea edx, [ecx + 4]
cmp eax, edx
jae 0x41b299
sub eax, ecx
mov dword [ebp - 0x218], eax
add eax, dword [esi + 0xc]
jmp 0x41b280
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jb 0x41b299
mov edx, dword [esi + 0x10]
movzx edx, byte [edx + 0x17]
add edx, ecx
cmp eax, edx
jae 0x41b299
sub eax, ecx
mov dword [ebp - 0x218], eax
add eax, dword [esi + 0x10]
mov ecx, dword [edi + 4]
mov dword [ebp - 0x218], eax
lea eax, [ebp - 0x2d0]
push eax
push ecx
call ebx
mov eax, dword [ebp - 0x218]
mov esi, dword [esi]
test esi, esi
jne 0x41b240
mov edi, dword [edi]
test edi, edi
jne 0x41b211
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov esi, dword [0x426ed8]
cmp esi, ebx
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [ebp - 0x2d4], eax
je 0x41b34c
jmp 0x41b2d0
mov ecx, dword [esi + 0x10]
mov eax, dword [esi + 0x14]
lea edx, [ebp - 0x2dc]
push edx
movzx edx, byte [ecx + 0x17]
push eax
mov eax, dword [esi + 0xc]
push edx
push eax
call ebx
mov ecx, dword [esi + 0x10]
movzx edx, byte [ecx + 0x17]
mov eax, dword [esi + 0xc]
mov ecx, dword [ebp - 0x2d4]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
xor ecx, ecx
cmp dword [esi + 4], ecx
je 0x41b33b
mov eax, dword [esi + 0x10]
cmp eax, ecx
je 0x41b33b
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.0040cb9f
add esp, 4
mov esi, edi
test edi, edi
jne 0x41b2d0
mov esi, dword [0x426ebc]
xor edi, edi
mov dword [0x426ed8], edi
cmp esi, edi
je 0x41b378
mov edi, edi
lea edx, [ebp - 0x2d4]
push edx
push 0x20
push 0x10000
push esi
call ebx
mov esi, dword [esi + 4]
cmp esi, edi
jne 0x41b360
mov esi, dword [0x426ed4]
cmp esi, edi
je 0x41b39f
mov ebx, dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [esi + 4]
push eax
call ebx
mov edi, dword [esi]
push esi
call fcn.0040cb9f
add esp, 4
mov esi, edi
test edi, edi
jne 0x41b388
mov eax, dword [ebp - 0x2d8]
mov dword [0x426ed4], edi
mov dword [0x426ec8], edi
cmp eax, edi
pop edi
pop esi
je 0x41b3bf
mov ecx, dword [0x426ed0]
mov dword [eax], ecx
mov ecx, dword [ebp - 4]
mov eax, dword [0x426ecc]
xor ecx, ebp
pop ebx
call fcn.0040cbaa
mov esp, ebp
pop ebp
ret 4