Function at 0x10004eba
Capabilities:
Resume thread

Disassembly:
push 0xc
mov eax, 0x1001abe5
call fcn.1001a456
cmp dword [ebp + 0xc], 0
jne 0x10004ed6
mov esi, 0x80070057
jmp 0x100050b2
mov esi, 0x10029eb0
push esi
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
xor ebx, ebx
cmp dword [0x10029d58], ebx
jne 0x10004f06
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
push eax
push ebx
push 0x100057a2
push 4
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
mov dword [0x10029d58], eax
push esi
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
push 0x58
call fcn.1000e8c7
pop ecx
test eax, eax
je 0x10004f24
mov ecx, eax
call fcn.10007580
mov edi, eax
jmp 0x10004f26
mov edi, ebx
mov dword [ebp - 0x18], edi
test edi, edi
jne 0x10004f37
mov esi, 0x8007000e
jmp 0x100050a0
cmp dword [edi + 0xc], ebx
je 0x10004f45
push dword [edi + 0xc]
call dword [sym.imp.kernel32.dll_ResumeThread]
mov dword [ebp - 0x14], ebx
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp + 8]
push ecx
push 0x1001dcf0
push ebx
mov eax, dword [ebx]
call dword [eax]
mov esi, eax
test esi, esi
jns 0x10004f90
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x10004f73
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x1000509c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x1000509c
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x10004fcd
mov esi, 0x8000ffff
mov dword [ebp - 4], 2
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x10004fb3
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], 3
test eax, eax
je 0x100050a0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x100050a0
lea ecx, [ebp - 0x10]
push ecx
push eax
push 0x1001dcf0
call dword [sym.imp.ole32.dll_CoMarshalInterThreadInterfaceInStream]
mov esi, eax
test esi, esi
jns 0x10005003
mov dword [ebp - 4], 4
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x10004ff7
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 4], 5
jmp 0x10004f7a
cmp dword [ebp - 0x10], 0
jne 0x1000501a
mov esi, 0x80070057
mov dword [ebp - 4], 7
jmp 0x10004f7a
push dword [ebp - 0x10]
lea ecx, [edi + 0x20]
call fcn.1000e8c7
xor esi, esi
mov dword [ebp - 4], 8
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x1000503b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 4], 9
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x1000504f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push dword [ebp + 0xc]
or dword [ebp - 4], 0xffffffff
mov ecx, edi
call fcn.1000e8c7
mov edi, dword [ebx + 0x10]
lea ecx, [ebp - 0x18]
push ecx
mov eax, dword [edi + 4]
push eax
push edi
mov dword [ebp + 0xc], eax
call fcn.1000e8c7
mov edx, eax
mov ecx, 0x15555554
mov eax, dword [ebx + 0x14]
sub ecx, eax
cmp ecx, 1
jae 0x1000508d
push str.list_T__too_long
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const__]
inc eax
mov dword [ebx + 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [edi + 4], edx
mov edi, dword [ebp - 0x18]
mov dword [eax], edx
test esi, esi
jns 0x100050b2
test edi, edi
je 0x100050b2
mov ecx, edi
call fcn.1000e8c7
push edi
call fcn.1000e8c7
pop ecx
mov eax, esi
call fcn.1001a427
ret 8