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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x6c
push ebx
mov ebx, ecx
push esi
push edi
mov dword [esp + 0x3c], ebx
lea eax, [ebx + 0x30]
mov byte [ebx + 0x48], 1
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call fcn.00407db0
mov edi, eax
lea esi, [edi + 0x1c]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 0x34]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [eax + 0x20], 0
jbe 0x4e5f95
dec dword [eax + 0x20]
mov ecx, dword [eax + 0x20]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax + ecx*4]
mov dword [esp + 0x24], eax
call esi
jmp 0x4e5fa0
call esi
mov eax, dword [edi + 0x3c]
call eax
mov dword [esp + 0x20], eax
call fcn.00437520
push 0
push 0x3e8
push edx
push eax
call fcn.0051ac90
mov edi, eax
xorps xmm0, xmm0
mov eax, edx
mov dword [esp + 0x10], edi
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], eax
movlpd qword [esp + 0x48], xmm0
call fcn.00407db0
mov dword [esp + 0x24], eax
add eax, 0x1c
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [esp + 0x24]
mov eax, dword [edx + 0x34]
cmp dword [eax + 0x20], 0
jbe 0x4e6008
dec dword [eax + 0x20]
mov ecx, dword [eax + 0x20]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax + ecx*4]
mov dword [esp + 0x24], eax
lea eax, [edx + 0x1c]
push eax
call esi
jmp 0x4e601b
lea eax, [edx + 0x1c]
push eax
call esi
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx + 0x3c]
call eax
mov dword [esp + 0x24], eax
call fcn.00407db0
mov dword [esp + 0x1c], eax
add eax, 0x1c
push eax
mov dword [esp + 0x38], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esp + 0x1c]
push dword [esp + 0x34]
mov eax, dword [ecx + 0x34]
cmp dword [eax + 0x20], 0
jbe 0x4e6057
dec dword [eax + 0x20]
mov ecx, dword [eax + 0x20]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax + ecx*4]
mov dword [esp + 0x20], eax
call esi
jmp 0x4e6066
call esi
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx + 0x3c]
call eax
mov dword [esp + 0x1c], eax
cmp byte [ebx + 0x49], 0
xorps xmm0, xmm0
mov dword [esp + 0x40], 0x64
mov dword [esp + 0x44], 0
movlpd qword [esp + 0x58], xmm0
mov dword [esp + 0x50], 0x64
mov dword [esp + 0x54], 0
movlpd qword [esp + 0x60], xmm0
movlpd qword [esp + 0x68], xmm0
movlpd qword [esp + 0x70], xmm0
jne 0x4e6497
mov eax, dword [esp + 0x74]
lea esi, [ebx + 0x4c]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x34], eax
nop
cmp byte [esi + 0x58], 0
jne 0x4e60d6
cmp byte [esi + 0x70], 0
jne 0x4e60d6
cmp byte [esi + 0x40], 0
je 0x4e6307
cmp byte [ebx + 0xa4], 0
je 0x4e61ab
lea edi, [esi + 0x28]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x60]
mov dword [esp + 0x50], eax
mov eax, dword [esi + 0x64]
mov dword [esp + 0x54], eax
mov eax, dword [esi + 0x68]
mov dword [esp + 0x60], eax
mov eax, dword [esi + 0x6c]
push edi
mov dword [esp + 0x68], eax
mov byte [esi + 0x58], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [esp + 0x54], 0
jl 0x4e61ab
jg 0x4e612c
cmp dword [esp + 0x50], 0
jbe 0x4e61ab
mov edi, dword [esp + 0x1c]
push 0
push 0x64
push dword [esp + 0x6c]
mov edi, dword [edi]
push dword [esp + 0x6c]
call fcn.005750a0
push dword [esp + 0x54]
push dword [esp + 0x54]
push edx
push eax
call fcn.0051ac90
mov ecx, dword [esp + 0x1c]
push edx
push eax
call dword [edi + 0x1f4]
mov ecx, dword [esp + 0x1c]
push 0x5d3dc8
mov eax, dword [ecx]
call dword [eax + 0x1e0]
mov eax, dword [ebx + 0xe4]
mov ecx, dword [esp + 0x1c]
push 1
mov edi, dword [eax]
mov eax, dword [ecx]
call dword [eax + 0x50]
mov ecx, dword [ebx + 0xe4]
push eax
call dword [edi + 0x10c]
mov ecx, dword [ebx + 0x18]
lea edx, [esp + 0x60]
push 0
push edx
lea edx, [esp + 0x58]
mov eax, dword [ecx]
push edx
push str.DataOffsetUpdate
call dword [eax + 0x220]
cmp byte [ebx + 0x8c], 0
je 0x4e6222
lea ebx, [esi + 0x28]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esi + 0x44]
mov edi, dword [esp + 0x24]
mov eax, dword [ecx]
mov edi, dword [edi]
call dword [eax + 0x50]
mov ecx, dword [esp + 0x24]
push eax
call dword [edi + 0x210]
mov eax, dword [esi + 0x48]
mov dword [esp + 0x40], eax
mov eax, dword [esi + 0x4c]
mov dword [esp + 0x44], eax
mov eax, dword [esi + 0x50]
mov dword [esp + 0x58], eax
mov eax, dword [esi + 0x54]
push ebx
mov dword [esp + 0x60], eax
mov byte [esi + 0x40], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x24]
push 1
mov eax, dword [ebx + 0xe0]
mov edi, dword [eax]
mov eax, dword [ecx]
call dword [eax + 0x50]
mov ecx, dword [ebx + 0xe0]
push eax
call dword [edi + 0x10c]
cmp byte [ebx + 0xbc], 0
je 0x4e6303
lea edi, [esi + 0x28]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x78]
mov ecx, dword [esi + 0x80]
add ecx, dword [esi + 0x68]
mov dword [esp + 0x40], eax
mov eax, dword [esi + 0x7c]
mov dword [esp + 0x44], eax
mov eax, dword [esi + 0x84]
adc eax, dword [esi + 0x6c]
push edi
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], eax
mov byte [esi + 0x70], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [esp + 0x44], 0
jl 0x4e6303
jg 0x4e6284
cmp dword [esp + 0x40], 0
jbe 0x4e6303
mov eax, dword [esp + 0x1c]
push 0
push 0x64
push dword [esp + 0x64]
mov edi, dword [eax]
push dword [esp + 0x64]
call fcn.005750a0
push dword [esp + 0x44]
push dword [esp + 0x44]
push edx
push eax
call fcn.0051ac90
mov ecx, dword [esp + 0x1c]
push edx
push eax
call dword [edi + 0x1f4]
mov ecx, dword [esp + 0x1c]
push 0x5d3dc8
mov eax, dword [ecx]
call dword [eax + 0x1e0]
mov eax, dword [ebx + 0xf4]
mov ecx, dword [esp + 0x1c]
push 1
mov edi, dword [eax]
mov eax, dword [ecx]
call dword [eax + 0x50]
mov ecx, dword [ebx + 0xf4]
push eax
call dword [edi + 0x10c]
mov ecx, dword [ebx + 0x18]
lea edx, [esp + 0x58]
push 0
push edx
lea edx, [esp + 0x48]
mov eax, dword [ecx]
push edx
push str.CurEntryIndexUpdate
call dword [eax + 0x220]
mov edi, dword [esp + 0x10]
push 0x96
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [ebx + 0x54], 0
je 0x4e6336
xorps xmm0, xmm0
movlpd qword [esp + 0x10], xmm0
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
mov dword [esp + 0x28], eax
mov dword [esp + 0x10], edi
jmp 0x4e6487
mov eax, edi
or eax, dword [esp + 0x28]
jne 0x4e636d
call fcn.00437520
push 0
push 0x3e8
push edx
push eax
call fcn.0051ac90
mov edi, eax
mov eax, edx
mov dword [esp + 0x2c], edi
sub edi, dword [esp + 0x48]
mov dword [esp + 0x30], eax
sbb eax, dword [esp + 0x4c]
mov dword [esp + 0x10], edi
mov dword [esp + 0x28], eax
call fcn.00437520
push 0
push 0x3e8
push edx
push eax
call fcn.0051ac90
cmp eax, dword [esp + 0x2c]
jne 0x4e638c
cmp edx, dword [esp + 0x30]
je 0x4e63cf
mov dword [esp + 0x2c], eax
lea ecx, [esp + 0x48]
sub eax, edi
mov dword [esp + 0x30], edx
mov dword [esp + 0x48], eax
sbb edx, dword [esp + 0x28]
mov dword [esp + 0x4c], edx
mov edx, dword [esp + 0x20]
call fcn.00424700
mov eax, dword [ebx + 0xec]
mov ecx, dword [esp + 0x20]
push 1
mov edi, dword [eax]
mov eax, dword [ecx]
call dword [eax + 0x50]
mov ecx, dword [ebx + 0xec]
push eax
call dword [edi + 0x10c]
lea eax, [esp + 0x68]
mov ecx, esi
push eax
call fcn.004e64e0
cmp dword [esp + 0x4c], 0
jl 0x4e6483
jg 0x4e63f3
cmp dword [esp + 0x48], 0
jbe 0x4e6483
mov edx, dword [esp + 0x6c]
test edx, edx
jl 0x4e6483
mov edi, dword [esp + 0x68]
jg 0x4e6409
test edi, edi
je 0x4e6483
push dword [esp + 0x4c]
mov ecx, 0x2710
mov eax, 0
push dword [esp + 0x4c]
sub ecx, edi
sbb eax, edx
push eax
push ecx
call fcn.005750a0
push dword [esp + 0x6c]
push edi
push edx
push eax
call fcn.0051ac90
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], edx
cmp eax, dword [esp + 0x34]
jne 0x4e6446
cmp edx, dword [esp + 0x38]
je 0x4e6483
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x70]
call fcn.00424700
mov eax, dword [ebx + 0xf0]
mov ecx, dword [esp + 0x20]
push 1
mov edi, dword [eax]
mov eax, dword [ecx]
call dword [eax + 0x50]
mov ecx, dword [ebx + 0xf0]
push eax
call dword [edi + 0x10c]
mov eax, dword [esp + 0x70]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x38], eax
mov edi, dword [esp + 0x10]
cmp byte [ebx + 0x49], 0
je 0x4e60c0
mov esi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4e64a7
lea ecx, [eax + 4]
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4e64b7
lea ecx, [eax + 4]
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4e64c7
lea ecx, [eax + 4]
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebx + 0x30]
push eax
call esi
pop edi
pop esi
mov word [ebx + 0x48], 0
pop ebx
mov esp, ebp
pop ebp
ret