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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x108
mov ecx, dword [ebp + 0xc]
mov eax, dword [0x5f3024]
xor eax, ebp
mov dword [esp + 0x100], eax
mov eax, dword [ecx + 8]
lea esi, [eax + 0x68]
mov ecx, dword [eax + 0x68]
cmp ecx, 0x1c
je 0x4e6c94
lea edx, [eax + 0x70]
mov edi, dword [eax + 0x70]
cmp edi, 0x1c
je 0x4e6c92
lea ebx, [eax + 0x78]
mov dword [esp + 8], ebx
mov ebx, dword [eax + 0x78]
cmp ebx, 0x1c
je 0x4e6e76
mov dword [esp + 0x14], edx
lea edx, [eax + 0x80]
mov dword [esp + 4], edx
mov edx, dword [eax + 0x80]
cmp edx, 0x1c
je 0x4e6e7f
mov dword [esp + 0xc], edx
lea edx, [eax + 0x88]
mov dword [esp], edx
mov edx, dword [eax + 0x88]
cmp edx, 0x1c
je 0x4e6e88
mov dword [esp + 0x10], ebx
mov dword [esp + 0xe4], edx
lea edx, [eax + 0x90]
mov ebx, dword [eax + 0x90]
mov dword [esp + 0xe0], ebx
cmp ebx, 0x1c
je 0x4e6c92
mov dword [esp + 0xdc], edx
lea edx, [eax + 0x98]
mov dword [esp + 0x48], edx
mov edx, dword [eax + 0x98]
cmp edx, 0x1c
je 0x4e6e99
mov dword [esp + 0xd8], edx
lea edx, [eax + 0xa0]
mov ebx, dword [eax + 0xa0]
mov dword [esp + 0xd4], ebx
cmp ebx, 0x1c
je 0x4e6c92
mov dword [esp + 0xd0], edx
lea edx, [eax + 0xa8]
mov dword [esp + 0x44], edx
mov edx, dword [eax + 0xa8]
cmp edx, 0x1c
je 0x4e6f12
mov dword [esp + 0xcc], edx
lea edx, [eax + 0xb0]
mov ebx, dword [eax + 0xb0]
mov dword [esp + 0xc8], ebx
cmp ebx, 0x1c
je 0x4e6c92
mov dword [esp + 0xc4], edx
lea edx, [eax + 0xb8]
mov dword [esp + 0x40], edx
mov edx, dword [eax + 0xb8]
cmp edx, 0x1c
je 0x4e6fa6
mov dword [esp + 0xc0], edx
lea edx, [eax + 0xc0]
mov ebx, dword [eax + 0xc0]
mov dword [esp + 0xbc], ebx
cmp ebx, 0x1c
je 0x4e6c92
mov dword [esp + 0xb8], edx
lea edx, [eax + 0xc8]
mov dword [esp + 0x3c], edx
mov edx, dword [eax + 0xc8]
cmp edx, 0x1c
je 0x4e6fb7
mov dword [esp + 0xb4], edx
lea edx, [eax + 0xd0]
mov ebx, dword [eax + 0xd0]
mov dword [esp + 0xb0], ebx
cmp ebx, 0x1c
je 0x4e6c92
mov dword [esp + 0xac], edx
lea edx, [eax + 0xd8]
mov dword [esp + 0x38], edx
mov edx, dword [eax + 0xd8]
cmp edx, 0x1c
je 0x4e6ff5
mov dword [esp + 0xa8], edx
lea edx, [eax + 0xe0]
mov ebx, dword [eax + 0xe0]
mov dword [esp + 0xa4], ebx
cmp ebx, 0x1c
je 0x4e6c92
mov dword [esp + 0xa0], edx
lea edx, [eax + 0xe8]
mov dword [esp + 0x34], edx
mov edx, dword [eax + 0xe8]
cmp edx, 0x1c
je 0x4e700d
mov dword [esp + 0x9c], edx
lea edx, [eax + 0xf0]
mov ebx, dword [eax + 0xf0]
mov dword [esp + 0x98], ebx
cmp ebx, 0x1c
je 0x4e6c92
mov dword [esp + 0x94], edx
lea edx, [eax + 0xf8]
mov dword [esp + 0x30], edx
mov edx, dword [eax + 0xf8]
cmp edx, 0x1c
je 0x4e7016
mov dword [esp + 0x90], edx
lea edx, [eax + 0x100]
mov ebx, dword [eax + 0x100]
mov dword [esp + 0x8c], ebx
cmp ebx, 0x1c
je 0x4e6c92
mov dword [esp + 0x88], edx
lea edx, [eax + 0x108]
mov dword [esp + 0x2c], edx
mov edx, dword [eax + 0x108]
cmp edx, 0x1c
je 0x4e701f
mov dword [esp + 0x84], edx
lea edx, [eax + 0x110]
mov ebx, dword [eax + 0x110]
mov dword [esp + 0x80], ebx
cmp ebx, 0x1c
je 0x4e6c92
mov dword [esp + 0x7c], edx
lea edx, [eax + 0x118]
mov dword [esp + 0x28], edx
mov edx, dword [eax + 0x118]
cmp edx, 0x1c
je 0x4e7028
mov dword [esp + 0x78], edx
lea edx, [eax + 0x120]
mov ebx, dword [eax + 0x120]
mov dword [esp + 0x74], ebx
cmp ebx, 0x1c
je 0x4e6c92
mov dword [esp + 0x70], edx
lea edx, [eax + 0x128]
mov dword [esp + 0x24], edx
mov edx, dword [eax + 0x128]
cmp edx, 0x1c
je 0x4e7031
mov dword [esp + 0x6c], edx
lea edx, [eax + 0x130]
mov ebx, dword [eax + 0x130]
mov dword [esp + 0x68], ebx
cmp ebx, 0x1c
je 0x4e6c92
mov dword [esp + 0x64], edx
lea edx, [eax + 0x138]
mov dword [esp + 0x20], edx
mov edx, dword [eax + 0x138]
cmp edx, 0x1c
je 0x4e703a
mov dword [esp + 0x60], edx
lea edx, [eax + 0x140]
mov ebx, dword [eax + 0x140]
mov dword [esp + 0x5c], ebx
cmp ebx, 0x1c
je 0x4e6c92
mov dword [esp + 0x58], edx
lea edx, [eax + 0x148]
mov dword [esp + 0x1c], edx
mov edx, dword [eax + 0x148]
cmp edx, 0x1c
je 0x4e7043
mov dword [esp + 0x54], edx
lea edx, [eax + 0x150]
mov ebx, dword [eax + 0x150]
mov dword [esp + 0x50], ebx
cmp ebx, 0x1c
je 0x4e6c92
mov dword [esp + 0x4c], edx
lea edx, [eax + 0x158]
mov dword [esp + 0x18], edx
mov ebx, dword [eax + 0x158]
cmp ebx, 0x1c
je 0x4e704c
mov edx, dword [eax + 0x160]
add eax, 0x160
cmp edx, 0x1c
je 0x4e7055
test ecx, ecx
mov ecx, dword [esp + 0x10]
je 0x4e6c35
mov esi, dword [esp + 0x14]
test edi, edi
je 0x4e6c35
mov esi, dword [esp + 8]
test ecx, ecx
je 0x4e6c35
mov esi, dword [esp + 4]
cmp dword [esp + 0xc], 0
je 0x4e6c35
mov esi, dword [esp]
cmp dword [esp + 0xe4], 0
je 0x4e6c35
mov esi, dword [esp + 0xdc]
cmp dword [esp + 0xe0], 0
je 0x4e6c35
mov esi, dword [esp + 0x48]
cmp dword [esp + 0xd8], 0
je 0x4e6c35
mov esi, dword [esp + 0xd0]
cmp dword [esp + 0xd4], 0
je 0x4e6c35
mov esi, dword [esp + 0x44]
cmp dword [esp + 0xcc], 0
je 0x4e6c35
mov esi, dword [esp + 0xc4]
cmp dword [esp + 0xc8], 0
je 0x4e6c35
mov esi, dword [esp + 0x40]
cmp dword [esp + 0xc0], 0
je 0x4e6c35
mov esi, dword [esp + 0xb8]
cmp dword [esp + 0xbc], 0
je 0x4e6c35
mov esi, dword [esp + 0x3c]
cmp dword [esp + 0xb4], 0
je 0x4e6c35
mov esi, dword [esp + 0xac]
cmp dword [esp + 0xb0], 0
je 0x4e6c35
mov esi, dword [esp + 0x38]
cmp dword [esp + 0xa8], 0
je 0x4e6c35
mov esi, dword [esp + 0xa0]
cmp dword [esp + 0xa4], 0
je 0x4e6c35
mov esi, dword [esp + 0x34]
cmp dword [esp + 0x9c], 0
je 0x4e6c35
mov esi, dword [esp + 0x94]
cmp dword [esp + 0x98], 0
je 0x4e6c35
mov esi, dword [esp + 0x30]
cmp dword [esp + 0x90], 0
je 0x4e6c35
mov esi, dword [esp + 0x88]
cmp dword [esp + 0x8c], 0
je 0x4e6c35
mov esi, dword [esp + 0x2c]
cmp dword [esp + 0x84], 0
je 0x4e6c35
mov esi, dword [esp + 0x7c]
cmp dword [esp + 0x80], 0
je 0x4e6c35
mov esi, dword [esp + 0x28]
cmp dword [esp + 0x78], 0
je 0x4e6c35
mov esi, dword [esp + 0x70]
cmp dword [esp + 0x74], 0
je 0x4e6c35
mov esi, dword [esp + 0x24]
cmp dword [esp + 0x6c], 0
je 0x4e6c35
mov esi, dword [esp + 0x64]
cmp dword [esp + 0x68], 0
je 0x4e6c35
mov esi, dword [esp + 0x20]
cmp dword [esp + 0x60], 0
je 0x4e6c35
mov esi, dword [esp + 0x58]
cmp dword [esp + 0x5c], 0
je 0x4e6c35
mov esi, dword [esp + 0x1c]
cmp dword [esp + 0x54], 0
je 0x4e6c35
mov esi, dword [esp + 0x4c]
cmp dword [esp + 0x50], 0
je 0x4e6c35
mov esi, dword [esp + 0x18]
test ebx, ebx
je 0x4e6c35
mov esi, eax
test edx, edx
jne 0x4e7155
mov dword [esi], 0x1c
lea ebx, [esi + 4]
push 0x44
call fcn.0050d4fe
add esp, 4
mov edi, eax
lea ecx, [eax + 0x18]
xorps xmm0, xmm0
movups xmmword [eax + 0x18], xmm0
movups xmmword [eax + 0x28], xmm0
movups xmmword [eax + 0x34], xmm0
movups xmmword [eax + 4], xmm0
mov dword [eax + 0x14], 0x3f800000
mov dword [eax], 0x5d26a4
call fcn.0049c1b0
mov ecx, dword [esi + 4]
mov dword [esi + 4], edi
test ecx, ecx
je 0x4e6c99
mov eax, dword [ecx]
mov esi, dword [eax]
mov edi, ecx
mov ecx, esi
call dword [section..00cfg]
mov ecx, edi
push 1
call esi
jmp 0x4e6c99
mov esi, edx
add esi, 4
mov ebx, esi
mov esi, dword [ebp + 8]
mov edi, dword [ebx]
lea ecx, [edi + 0x18]
push dword [ebp + 0x10]
call fcn.004fd8e0
test eax, eax
je 0x4e705c
lea ecx, [edi + 4]
mov dword [esp + 8], ecx
mov esi, dword [edi + 8]
mov ebx, dword [edi + 0x10]
test esi, esi
mov dword [esp + 4], edi
mov dword [esp + 0x14], eax
je 0x4e6faf
mov ecx, esi
shr ecx, 1
and ecx, 0x55555555
mov eax, esi
sub eax, ecx
mov ecx, 0x33333333
mov edx, eax
and edx, ecx
shr eax, 2
and eax, ecx
add eax, edx
mov ecx, eax
shr ecx, 4
add ecx, eax
and ecx, 0xf0f0f0f
imul ecx, ecx, 0x1010101
shr ecx, 0x18
cmp ecx, 1
mov dword [esp], ebx
jbe 0x4e6e69
mov edx, dword [ebp + 0x10]
mov edi, edx
cmp esi, edx
ja 0x4e6d22
mov eax, edx
xor edx, edx
div esi
mov edi, edx
mov edx, dword [ebp + 0x10]
mov eax, dword [esp + 8]
mov eax, dword [eax]
mov ebx, dword [eax + edi*4]
test ebx, ebx
je 0x4e6d68
lea eax, [esi - 1]
mov dword [esp + 0xc], eax
mov ebx, dword [ebx]
test ebx, ebx
je 0x4e6d68
mov eax, dword [ebx + 4]
cmp eax, edx
jne 0x4e6d4e
cmp dword [ebx + 8], edx
je 0x4e6e45
jmp 0x4e6d36
cmp ecx, 1
jbe 0x4e6e90
cmp eax, esi
jb 0x4e6d61
xor edx, edx
div esi
mov eax, edx
mov edx, dword [ebp + 0x10]
cmp eax, edi
je 0x4e6d43
mov ebx, dword [esp]
inc ebx
push 0x10
call fcn.0050d4fe
add esp, 4
mov edx, dword [ebp + 0x10]
mov dword [eax + 8], edx
mov dword [eax + 0xc], ebx
mov dword [esp + 0xc], eax
mov dword [eax + 4], edx
mov ecx, dword [esp + 4]
mov eax, dword [ecx + 0x10]
inc eax
movd xmm0, eax
movq xmm2, qword [0x5d5e70]
por xmm0, xmm2
subsd xmm0, xmm2
cvtsd2ss xmm0, xmm0
movss xmm1, dword [ecx + 0x14]
test esi, esi
je 0x4e6f1b
movd xmm3, esi
por xmm3, xmm2
subsd xmm3, xmm2
xorps xmm2, xmm2
cvtsd2ss xmm2, xmm3
mulss xmm2, xmm1
ucomiss xmm0, xmm2
ja 0x4e6f1b
mov eax, dword [esp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + edi*4]
test eax, eax
jne 0x4e6ea2
mov edx, dword [esp + 4]
mov eax, dword [edx + 0xc]
mov dword [esp], ecx
mov ecx, dword [esp + 0xc]
mov dword [ecx], eax
lea eax, [edx + 0xc]
mov dword [esp + 0x10], eax
mov dword [edx + 0xc], ecx
mov eax, dword [esp]
mov ecx, dword [esp + 0x10]
mov dword [eax + edi*4], ecx
mov edi, edx
mov eax, dword [esp + 0xc]
mov eax, dword [eax]
test eax, eax
mov ecx, dword [ebp + 0x10]
je 0x4e6eb3
mov eax, dword [eax + 4]
lea ecx, [esi - 1]
test esi, ecx
je 0x4e7064
cmp eax, esi
jb 0x4e6e33
xor edx, edx
div esi
mov eax, edx
shl eax, 2
mov ecx, dword [esp + 8]
add eax, dword [ecx]
mov ecx, dword [ebp + 0x10]
mov edx, dword [esp + 0xc]
jmp 0x4e6eb1
mov eax, dword [ebx + 0xc]
mov esi, dword [ebp + 8]
mov byte [esi], 1
mov dword [esi + 4], eax
mov ecx, dword [esp + 0x100]
xor ecx, ebp
call fcn.0050db32
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea edi, [esi - 1]
mov edx, dword [ebp + 0x10]
and edi, edx
jmp 0x4e6d22
mov esi, dword [esp + 8]
jmp 0x4e6c94
mov esi, dword [esp + 4]
jmp 0x4e6c94
mov esi, dword [esp]
jmp 0x4e6c94
and eax, dword [esp + 0xc]
jmp 0x4e6d64
mov esi, dword [esp + 0x48]
jmp 0x4e6c94
mov ecx, dword [eax]
mov edx, dword [esp + 0xc]
mov dword [edx], ecx
mov edi, dword [esp + 4]
mov ecx, dword [ebp + 0x10]
mov dword [eax], edx
inc dword [edi + 0x10]
mov esi, dword [esp + 0x14]
push esi
mov edi, dword [ebp + 0xc]
push edi
mov edi, ebx
mov ebx, ecx
call fcn.0047ed20
add esp, 8
mov dword [esp + 8], eax
mov ecx, esi
call fcn.00509c40
sub ebx, eax
xor eax, eax
lea ecx, [esp + 0xf0]
mov dword [ecx + 4], eax
mov edx, dword [esp + 8]
mov dword [ecx], edx
mov dword [ecx + 0xc], eax
mov dword [ecx + 8], ebx
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
add eax, 0x48
push ecx
push edi
push eax
call fcn.0047f920
add esp, 0xc
mov esi, dword [ebp + 8]
mov byte [esi], 1
mov dword [esi + 4], edi
jmp 0x4e6e51
mov esi, dword [esp + 0x44]
jmp 0x4e6c94
divss xmm0, xmm1
cvtss2sd xmm0, xmm0
sub esp, 8
movsd qword [esp], xmm0
call fcn.0053e4c0
add esp, 8
fstp dword [esp + 0xec]
movss xmm0, dword [esp + 0xec]
cvttss2si eax, xmm0
mov edx, eax
sar edx, 0x1f
subss xmm0, dword [0x5c25f8]
cvttss2si ecx, xmm0
and ecx, edx
or ecx, eax
lea edx, [esi + esi]
cmp esi, 3
jae 0x4e6ffe
xor eax, eax
inc eax
or eax, edx
cmp eax, ecx
cmovbe eax, ecx
mov edi, 2
cmp eax, 1
jne 0x4e6fc0
cmp edi, esi
jbe 0x4e706b
mov ecx, dword [esp + 8]
push edi
call fcn.00480b70
mov eax, dword [esp + 4]
mov esi, dword [eax + 8]
lea edi, [esi - 1]
test esi, edi
jne 0x4e6fdf
mov edx, dword [ebp + 0x10]
and edi, edx
jmp 0x4e6dd3
mov esi, dword [esp + 0x40]
jmp 0x4e6c94
xor edi, edi
dec edi
jmp 0x4e6d6b
mov esi, dword [esp + 0x3c]
jmp 0x4e6c94
lea ecx, [eax - 1]
test eax, ecx
je 0x4e7129
push eax
call fcn.004cae90
add esp, 4
mov edi, eax
mov eax, dword [esp + 4]
mov esi, dword [eax + 8]
jmp 0x4e6f7c
mov eax, dword [ebp + 0x10]
cmp esi, eax
ja 0x4e7130
xor edx, edx
div esi
mov edi, edx
jmp 0x4e6dd3
mov esi, dword [esp + 0x38]
jmp 0x4e6c94
lea edi, [esi - 1]
xor eax, eax
test esi, edi
setne al
jmp 0x4e6f6b
mov esi, dword [esp + 0x34]
jmp 0x4e6c94
mov esi, dword [esp + 0x30]
jmp 0x4e6c94
mov esi, dword [esp + 0x2c]
jmp 0x4e6c94
mov esi, dword [esp + 0x28]
jmp 0x4e6c94
mov esi, dword [esp + 0x24]
jmp 0x4e6c94
mov esi, dword [esp + 0x20]
jmp 0x4e6c94
mov esi, dword [esp + 0x1c]
jmp 0x4e6c94
mov esi, dword [esp + 0x18]
jmp 0x4e6c94
mov esi, eax
jmp 0x4e6c94
mov byte [esi], 0
jmp 0x4e6e51
and eax, ecx
jmp 0x4e6e33
jae 0x4e6f8e
mov dword [esp], ebx
mov eax, dword [esp + 4]
movss xmm0, dword [eax + 0x10]
orpd xmm0, xmmword [0x5d5e60]
subsd xmm0, qword [0x5d5e70]
cvtsd2ss xmm0, xmm0
divss xmm0, dword [eax + 0x14]
cvtss2sd xmm0, xmm0
sub esp, 8
movsd qword [esp], xmm0
call fcn.0053e4c0
add esp, 8
fstp dword [esp + 0xe8]
movss xmm0, dword [esp + 0xe8]
cvttss2si eax, xmm0
mov ecx, eax
subss xmm0, dword [0x5c25f8]
cvttss2si edx, xmm0
sar ecx, 0x1f
and edx, ecx
or edx, eax
cmp esi, 3
jb 0x4e7137
mov ecx, esi
shr ecx, 1
and ecx, 0x55555555
mov eax, esi
sub eax, ecx
mov ecx, 0x33333333
mov ebx, eax
and ebx, ecx
shr eax, 2
and eax, ecx
add eax, ebx
mov ecx, eax
shr ecx, 4
add ecx, eax
and ecx, 0xf0f0f0f
imul eax, ecx, 0x1010101
shr eax, 0x18
cmp eax, 1
ja 0x4e7137
lea eax, [edx - 1]
bsr ecx, eax
xor ecx, 0x1f
neg cl
xor eax, eax
inc eax
shl eax, cl
cmp edx, 2
cmovb eax, edx
jmp 0x4e7140
mov edi, eax
jmp 0x4e6f7c
mov edi, eax
jmp 0x4e6dd3
push edx
call fcn.004cae90
add esp, 4
cmp edi, eax
cmovbe edi, eax
cmp edi, esi
mov ebx, dword [esp]
jb 0x4e6f84
jmp 0x4e6f8e
call fcn.0051fccd
push dword [eax]
call fcn.0052a53b
add esp, 4
mov esi, eax
call fcn.0051fccd
mov edi, dword [eax]
push str....._third_partyperfettoincludeperfetto_tracing_track_event_interned_data_index.h
call fcn.00540160
add esp, 4
push esi
push edi
push str.PERFETTO_CHECK_false_
push str._s__errno:__d___s_
push 0xf6
push eax
push 3
call fcn.005403c0
add esp, 0x1c
int3