Function at 0x4e5a80
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x529a33
mov eax, dword fs:[0]
push eax
sub esp, 0xbc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x55609c]
xor eax, esp
push eax
lea eax, [esp + 0xd0]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
mov dword [esp + 0x18], ebx
cmp byte [esi + 0x88], bl
je 0x4e5add
lea eax, [ebx + 0x3c]
mov ecx, dword [esp + 0xd0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
call dword [sym.imp.MSVCR80.dll__time64]
mov edi, dword [esi + 0x1e8]
add edi, 0x380
add esp, 4
lea ebp, [edi + 0x14]
push ebp
mov dword [esi + 0x70], eax
mov dword [esi + 0x74], edx
mov dword [esi + 0x78], ebx
mov dword [esi + 0x7c], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 0x10]
cmp eax, dword [edi + 0x30]
push ebp
jb 0x4e5b1d
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x4e5ba5
mov ebx, dword [edi + 0x2c]
shr ebx, 0xc
and bl, 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test bl, bl
je 0x4e5ba3
mov dword [esp + 0x28], 0
call fcn.005147f0
push 0
mov dword [esp + 0x30], eax
lea eax, [esi + 0x90]
push eax
sub esp, 8
mov ecx, esp
mov dword [esp + 0x2c], esp
push ecx
mov ebx, esi
lea edi, [esp + 0x3c]
call fcn.004e5000
lea edx, [esp + 0x9c]
push edx
mov ebx, edi
call fcn.004e42c0
push eax
mov dword [esp + 0xdc], 0
mov eax, dword [esi + 0x1e8]
add eax, 0x380
push eax
call fcn.004cd100
lea ecx, [esp + 0x8c]
push ecx
mov dword [esp + 0xdc], 0xffffffff
call fcn.004e44f0
xor ebx, ebx
push 0x430
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
mov ebp, eax
add esp, 4
mov dword [esp + 0x1c], ebp
cmp ebp, ebx
mov dword [esp + 0xd8], 1
je 0x4e5c68
sub esp, 0xc
mov eax, esp
mov dword [esp + 0x24], esp
sub esp, 8
mov dword [esp + 0x2c], esp
mov edi, esp
mov ebx, esi
mov dword [esp + 0x2c], eax
call fcn.004af770
movzx edx, byte [0x55e162]
movzx eax, byte [0x55e163]
movzx ecx, byte [0x55e15d]
push edx
movzx edx, byte [0x55e161]
push eax
mov eax, dword [esp + 0x34]
push ecx
push edx
push eax
call fcn.004e72e0
add esp, 0x1c
lea edi, [esp + 0x98]
call fcn.004e7400
xor eax, eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x4c], eax
lea ecx, [esp + 0x6c]
push ecx
mov dword [esp + 0xdc], 4
mov eax, dword [esi + 0x1e8]
lea edx, [esp + 0x50]
push edx
mov ecx, edi
push ecx
lea edx, [eax + 0x858]
push edx
add eax, 0x374
push eax
push ebp
mov dword [esp + 0x30], 7
call fcn.004ac2a0
xor ebx, ebx
jmp 0x4e5c6a
xor eax, eax
lea ecx, [esp + 0x20]
push ecx
mov ecx, eax
mov dword [esp + 0xdc], 7
call fcn.004702e0
mov dword [esp + 0xd8], 9
test byte [esp + 0x18], 4
je 0x4e5cc0
mov eax, dword [esp + 0x4c]
and dword [esp + 0x18], 0xfffffffb
cmp eax, ebx
je 0x4e5cc0
test al, 1
jne 0x4e5cbc
and eax, 0xfffffffe
mov eax, dword [eax]
cmp eax, ebx
je 0x4e5cbc
lea edx, [esp + 0x54]
push 2
push edx
mov ecx, edx
push ecx
call eax
add esp, 0xc
mov dword [esp + 0x4c], ebx
mov byte [esp + 0xd8], 0xa
test byte [esp + 0x18], 2
je 0x4e5cfc
mov eax, dword [esp + 0x6c]
and dword [esp + 0x18], 0xfffffffd
cmp eax, ebx
je 0x4e5cfc
test al, 1
jne 0x4e5cf8
and eax, 0xfffffffe
mov eax, dword [eax]
cmp eax, ebx
je 0x4e5cf8
lea edx, [esp + 0x74]
push 2
push edx
mov ecx, edx
push ecx
call eax
add esp, 0xc
mov dword [esp + 0x6c], ebx
mov byte [esp + 0xd8], 0xb
test byte [esp + 0x18], 1
je 0x4e5d3c
mov eax, dword [esp + 0x8c]
cmp eax, ebx
je 0x4e5d3c
test al, 1
jne 0x4e5d35
and eax, 0xfffffffe
mov eax, dword [eax]
cmp eax, ebx
je 0x4e5d35
lea edx, [esp + 0x94]
push 2
push edx
mov ecx, edx
push ecx
call eax
add esp, 0xc
mov dword [esp + 0x8c], ebx
xor eax, eax
push ebx
push 0x1c9c380
mov byte [esi + 0x88], 1
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], ebx
call fcn.0047d900
add esp, 8
push ebx
lea ecx, [esp + 0x34]
push ecx
mov ecx, dword [esi + 0x1e8]
add ecx, 0x64
push ecx
mov ecx, dword [esp + 0x2c]
push 5
push ebx
push ebx
push edx
push eax
lea edx, [esi + 0x90]
push edx
call fcn.004ac710
mov eax, dword [esi + 0x84]
imul eax, eax
mov ecx, eax
shl ecx, 4
sub ecx, eax
mov dword [esp + 0xd8], 0xffffffff
mov eax, dword [esp + 0x24]
cmp eax, ebx
lea edi, [ecx*4 + 0x3c]
je 0x4e5deb
mov esi, eax
add eax, 4
or edx, 0xffffffff
lock xadd dword [eax], edx
jne 0x4e5deb
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
lea eax, [esi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x4e5deb
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
mov eax, edi
mov ecx, dword [esp + 0xd0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret