Function at 0x4b9000
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4d0
push ebx
push esi
push edi
lea edi, [ebp - 0x350]
mov ecx, 0xd4
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x55ec40]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, 0x563062
call fcn.004d007c
cmp dword [ebp + 8], 0
je 0x4b9043
mov eax, dword [ebp + 8]
mov ecx, dword [0x561e94]
mov dword [eax], ecx
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp esi, esp
call fcn.004d0059
cmp dword [0x561e8c], eax
je 0x4b9064
mov eax, 0x10dd
jmp 0x4b93f9
cmp dword [0x561e90], 0
je 0x4b907c
call fcn.004b8d90
mov eax, dword [0x561e90]
jmp 0x4b93f9
mov dword [ebp - 0x24], 0
mov eax, dword [0x561e9c]
mov dword [ebp - 0xc], eax
jmp 0x4b9095
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0xc], 0
je 0x4b9124
mov eax, dword [ebp - 0xc]
cmp dword [eax + 4], 0
je 0x4b90dc
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x10]
movzx edx, byte [ecx + 0x36]
push edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x10]
add ecx, 0x20
push ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0xc]
push eax
call fcn.004d1630
add esp, 0xc
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 8]
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0xc]
mov dword [ecx], eax
jmp 0x4b911f
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x10]
mov edx, dword [ecx + 0x44]
push edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0xc]
push ecx
call fcn.004b7970
add esp, 8
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x10]
mov edx, dword [ecx + 0x40]
push edx
mov eax, dword [ebp - 0x30]
push eax
call fcn.004b7910
add esp, 8
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x10]
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 8]
mov dword [eax], ecx
jmp 0x4b908d
mov eax, dword [0x561e98]
mov dword [ebp - 0x18], eax
jmp 0x4b9136
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x18], 0
je 0x4b9275
mov dword [ebp - 0x304], 0x10001
mov esi, esp
lea eax, [ebp - 0x304]
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
cmp esi, esp
call fcn.004d0059
test eax, eax
je 0x4b9270
mov eax, dword [0x561e9c]
mov dword [ebp - 0xc], eax
jmp 0x4b9181
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0xc], 0
je 0x4b9270
mov eax, dword [ebp - 0xc]
cmp dword [eax + 4], 0
je 0x4b91fd
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x24c]
cmp ecx, dword [eax + 0x10]
jb 0x4b91fb
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x10]
add ecx, 4
cmp dword [ebp - 0x24c], ecx
jae 0x4b91fb
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x24c]
sub ecx, dword [eax + 0x10]
push ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x10]
push eax
call fcn.004b6f20
add esp, 8
movzx ecx, al
mov edx, dword [ebp - 0xc]
add ecx, dword [edx + 0xc]
mov dword [ebp - 0x24c], ecx
mov esi, esp
lea eax, [ebp - 0x304]
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
cmp esi, esp
call fcn.004d0059
jmp 0x4b926b
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x24c]
cmp ecx, dword [eax + 0xc]
jb 0x4b926b
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x10]
movzx edx, byte [ecx + 0x36]
mov eax, dword [ebp - 0xc]
add edx, dword [eax + 0xc]
cmp dword [ebp - 0x24c], edx
jae 0x4b926b
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x24c]
sub ecx, dword [eax + 0xc]
movzx edx, cl
push edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x10]
push ecx
call fcn.004b6ea0
add esp, 8
mov edx, dword [ebp - 0xc]
add eax, dword [edx + 0x10]
mov dword [ebp - 0x24c], eax
mov esi, esp
lea eax, [ebp - 0x304]
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
cmp esi, esp
call fcn.004d0059
jmp 0x4b9179
jmp 0x4b912e
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp esi, esp
call fcn.004d0059
mov dword [ebp - 0x310], eax
mov eax, dword [0x561e9c]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4b9358
mov esi, esp
lea eax, [ebp - 0x31c]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x14]
push edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x10]
movzx edx, byte [ecx + 0x36]
push edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp esi, esp
call fcn.004d0059
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x10]
movzx edx, byte [ecx + 0x36]
mov esi, esp
push edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0xc]
push ecx
mov edx, dword [ebp - 0x310]
push edx
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
cmp esi, esp
call fcn.004d0059
mov eax, dword [ebp - 0xc]
cmp dword [eax + 4], 0
je 0x4b9325
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x10], 0
je 0x4b9325
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x10]
push ecx
call fcn.004b77f0
add esp, 4
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x10], 0
mov dword [ebp - 0x24], 1
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
mov dword [ebp - 0x328], ecx
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x4c0], eax
push 0x18
mov ecx, dword [ebp - 0x4c0]
push ecx
call fcn.004cefc9
add esp, 8
mov eax, dword [ebp - 0x328]
mov dword [ebp - 0xc], eax
jmp 0x4b9292
mov dword [0x561e9c], 0
cmp dword [ebp - 0x24], 0
je 0x4b9376
cmp dword [0x561e88], 0
jne 0x4b9376
call fcn.004b7860
call fcn.004b8280
mov eax, dword [0x561e98]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4b93cf
mov esi, esp
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp esi, esp
call fcn.004d0059
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov dword [ebp - 0x334], ecx
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x4cc], eax
push 8
mov ecx, dword [ebp - 0x4cc]
push ecx
call fcn.004cefc9
add esp, 8
mov eax, dword [ebp - 0x334]
mov dword [ebp - 0x18], eax
jmp 0x4b9383
mov dword [0x561e98], 0
mov dword [0x561e8c], 0
cmp dword [ebp + 8], 0
je 0x4b93f4
mov eax, dword [ebp + 8]
mov ecx, dword [0x561e94]
mov dword [eax], ecx
mov eax, dword [0x561e90]
push edx
mov ecx, ebp
push eax
lea edx, [0x4b942c]
call fcn.004d0005
pop eax
pop edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004cefd7
add esp, 0x4d0
cmp ebp, esp
call fcn.004d0059
mov esp, ebp
pop ebp
ret 4