Function at 0x4e5f20
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59e6b8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x634384]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [ebp + 8], 0
jne 0x4e5f69
mov eax, 0x57
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
push 0
push 1
push 0
call ebx
mov dword [ebp - 0x24], vtable.Utils::ResourceHolders::resource_t_void___struct_Utils::ResourceHolders::gh_dtor_t__struct_Utils::ResourceHolders::puredrop_and_illhnd_t_void___struct_Utils::ResourceHolders::gh_dtor_t__.0
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x24], vtable.Utils::ResourceHolders::CDwHandleP.0
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x20]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4e6119
cmp eax, 0xffffffff
je 0x4e6119
push 0
push 0
push 1
push 0
call ebx
mov dword [ebp - 0x1c], vtable.Utils::ResourceHolders::resource_t_void___struct_Utils::ResourceHolders::gh_dtor_t__struct_Utils::ResourceHolders::puredrop_and_illhnd_t_void___struct_Utils::ResourceHolders::gh_dtor_t__.0
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 2
mov dword [ebp - 0x1c], vtable.Utils::ResourceHolders::CDwHandleP.0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4e60ee
cmp eax, 0xffffffff
je 0x4e60ee
push 0
push 0
push 1
push 0
call ebx
mov dword [ebp - 0x14], vtable.Utils::ResourceHolders::resource_t_void___struct_Utils::ResourceHolders::gh_dtor_t__struct_Utils::ResourceHolders::puredrop_and_illhnd_t_void___struct_Utils::ResourceHolders::gh_dtor_t__.0
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 4
mov dword [ebp - 0x14], vtable.Utils::ResourceHolders::CDwHandleP.0
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4e60c3
cmp eax, 0xffffffff
je 0x4e60c3
push 0xfa0
lea ebx, [esi + 0x18]
push ebx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
test eax, eax
je 0x4e60c3
mov eax, dword [ebp + 8]
push 0
push 0
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x20]
push esi
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x18]
push 0x4e5190
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0x10]
push 0
push 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x10], 0
mov dword [esi + 0x10], eax
call fcn.0055c5b8
add esp, 0x18
mov dword [esi + 0x14], eax
test eax, eax
je 0x4e6088
mov byte [esi], 1
xor esi, esi
jmp 0x4e60cb
push dword [esi + 8]
call edi
push dword [esi + 0xc]
mov dword [esi + 8], 0
call edi
push dword [esi + 0x10]
mov dword [esi + 0xc], 0
call edi
push ebx
mov dword [esi + 0x10], 0
mov dword [esi + 4], 0
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
call fcn.0055c6b1
mov esi, dword [eax]
jmp 0x4e60cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], vtable.Utils::ResourceHolders::resource_t_void___struct_Utils::ResourceHolders::gh_dtor_t__struct_Utils::ResourceHolders::puredrop_and_illhnd_t_void___struct_Utils::ResourceHolders::gh_dtor_t__.0
test eax, eax
je 0x4e60e5
cmp eax, 0xffffffff
je 0x4e60e5
push eax
call edi
mov dword [ebp - 0x10], 0xffffffff
jmp 0x4e60f6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], vtable.Utils::ResourceHolders::resource_t_void___struct_Utils::ResourceHolders::gh_dtor_t__struct_Utils::ResourceHolders::puredrop_and_illhnd_t_void___struct_Utils::ResourceHolders::gh_dtor_t__.0
test eax, eax
je 0x4e6110
cmp eax, 0xffffffff
je 0x4e6110
push eax
call edi
mov dword [ebp - 0x18], 0xffffffff
jmp 0x4e6121
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], vtable.Utils::ResourceHolders::resource_t_void___struct_Utils::ResourceHolders::gh_dtor_t__struct_Utils::ResourceHolders::puredrop_and_illhnd_t_void___struct_Utils::ResourceHolders::gh_dtor_t__.0
test eax, eax
je 0x4e613e
cmp eax, 0xffffffff
je 0x4e613e
push eax
call edi
mov dword [ebp - 0x20], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4