Function at 0x4a0c68
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x228c
call fcn.0059fbd0
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [0x623af8]
push edi
mov dword [esp + 0x18], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebx + 0x18]
xor esi, esi
cmp eax, esi
je 0x4a0c9e
mov byte [eax], 0
mov dword [ebx + 0x1c], esi
cmp byte [ebx + 0x10], 0
jne 0x4a0caa
push ebx
call fcn.004a0806
mov eax, dword [ebx + 4]
cmp eax, esi
je 0x4a10a5
cmp dword [eax + 4], esi
je 0x4a10a5
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edi, dword [ebp + 0x10]
cmp edi, eax
jne 0x4a0db8
push 0x2cc
lea eax, [esp + 0x13c]
push esi
push eax
call fcn.005970f0
add esp, 0xc
lea eax, [esp + 0x138]
push eax
mov dword [esp + 0x13c], 0x10007
call dword [sym.imp.KERNEL32.dll_RtlCaptureContext]
push 0x108
lea eax, [esp + 0x34]
push esi
push eax
call fcn.005970f0
mov eax, dword [esp + 0x1fc]
mov ecx, dword [esp + 0x1f8]
add esp, 0xc
push 3
mov dword [esp + 0x34], eax
pop eax
push 0x420
mov dword [esp + 0x40], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x54], ecx
mov ecx, dword [esp + 0x200]
lea eax, [esp + 0x654]
push esi
push eax
mov dword [esp + 0x40], esi
mov dword [esp + 0x60], esi
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x70], esi
call fcn.005970f0
add esp, 0xc
push 6
pop ecx
xor eax, eax
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
mov edi, 0x248
push edi
lea eax, [esp + 0x40c]
push esi
push eax
mov dword [esp + 0x65c], 0x20
mov dword [esp + 0x674], 0x400
mov dword [esp + 0x24], 0x18
call fcn.005970f0
mov dword [esp + 0x414], edi
add esp, 0xc
mov dword [esp + 0x10], esi
mov edi, 0x14c
jmp 0x4a1031
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push 0x2cc
lea eax, [esp + 0x13c]
push esi
push eax
call fcn.005970f0
add esp, 0xc
lea eax, [esp + 0x138]
push eax
push edi
mov dword [esp + 0x140], 0x10007
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
jne 0x4a0cfe
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push dword [esp + 0x14]
jmp 0x4a10b1
push 0x1828
lea eax, [esp + 0xa74]
push esi
push eax
call fcn.005970f0
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
mov edx, eax
add esp, 0xc
or edx, ecx
mov dword [esp + 0xa70], eax
mov dword [esp + 0xa74], ecx
je 0x4a1004
mov ecx, dword [ebx + 4]
lea edx, [esp + 0x650]
push edx
lea edx, [esp + 0x167c]
push edx
push dword [esp + 0x3c]
push eax
push dword [ebx + 8]
call dword [ecx + 0x28]
test eax, eax
je 0x4a0eb3
push 0x400
lea edx, [esp + 0x670]
lea esi, [esp + 0xa7c]
call fcn.004a8fd1
mov eax, dword [ebx + 4]
push 0x1000
mov esi, 0x400
push esi
lea ecx, [esp + 0xe80]
push ecx
lea ecx, [esp + 0x678]
push ecx
call dword [eax + 0x3c]
mov eax, dword [ebx + 4]
push 0
push esi
lea ecx, [esp + 0x1280]
push ecx
lea ecx, [esp + 0x678]
push ecx
call dword [eax + 0x3c]
xor esi, esi
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0x18]
cmp eax, esi
je 0x4a0efd
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x1684]
push ecx
push dword [esp + 0x3c]
push dword [esp + 0x3c]
push dword [ebx + 8]
call eax
test eax, eax
je 0x4a0efd
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
push 0x400
lea esi, [esp + 0x168c]
mov dword [esp + 0x1688], eax
call fcn.004a8fd1
xor esi, esi
lea eax, [esp + 0x408]
push eax
push dword [esp + 0x38]
push dword [esp + 0x38]
push dword [ebx + 8]
push dword [ebx + 4]
call fcn.004a0706
test al, al
je 0x4a1004
mov eax, dword [esp + 0x428]
cmp eax, 8
mov dword [esp + 0x1a88], eax
ja case.default.0x4a0f33
jmp dword [eax*4 + 0x4a10c4]
mov dword [esp + 0x1a8c], str._nosymbols_
jmp 0x4a0fb6
mov dword [esp + 0x1a8c], str.COFF
jmp 0x4a0fb6
mov dword [esp + 0x1a8c], 0x5e4898
jmp 0x4a0fb6
mov dword [esp + 0x1a8c], 0x5e489c
jmp 0x4a0fb6
mov dword [esp + 0x1a8c], str._exported_
jmp 0x4a0fb6
mov dword [esp + 0x1a8c], str._deferred_
jmp 0x4a0fb6
mov dword [esp + 0x1a8c], 0x5e48b8
jmp 0x4a0fb6
mov dword [esp + 0x1a8c], 0x5e48bc
jmp 0x4a0fb6
mov dword [esp + 0x1a8c], str.Virtual
jmp 0x4a0fb6
mov dword [esp + 0x1a8c], esi
push 0x400
lea edx, [esp + 0x430]
lea esi, [esp + 0x1a94]
call fcn.004a8fd1
mov eax, dword [esp + 0x410]
mov dword [esp + 0x1e90], eax
mov eax, dword [esp + 0x414]
push 0x400
lea edx, [esp + 0x550]
lea esi, [esp + 0x1e9c]
mov dword [esp + 0x1e98], eax
call fcn.004a8fd1
xor esi, esi
xor eax, eax
inc eax
cmp dword [esp + 0x10], esi
jne 0x4a100f
xor eax, eax
mov edx, dword [ebx]
lea ecx, [esp + 0xa70]
push ecx
push eax
mov ecx, ebx
call dword [edx + 4]
test al, al
je 0x4a1072
mov eax, dword [esp + 0x40]
or eax, dword [esp + 0x44]
je 0x4a1061
inc dword [esp + 0x10]
mov eax, dword [ebx + 4]
push esi
push dword [eax + 0x1c]
lea ecx, [esp + 0x140]
push dword [eax + 0x14]
push 0x4a10e8
push ecx
lea ecx, [esp + 0x44]
push ecx
push dword [ebp + 0x10]
push dword [ebx + 8]
push edi
call dword [eax + 0x38]
test eax, eax
jne 0x4a0e07
jmp 0x4a1079
mov eax, dword [ebx]
lea ecx, [esp + 0xa70]
push ecx
push 2
mov ecx, ebx
call dword [eax + 4]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ebx, dword [ebx + 0x18]
cmp ebx, esi
jne 0x4a108e
mov ebx, 0x5daec0
mov eax, dword [ebp + 0xc]
push ebx
call fcn.004b0797
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
jmp 0x4a10b9
push 0x45a
call dword [sym.imp.KERNEL32.dll_SetLastError]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc