Function at 0x4c8620
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 [0x59d024]
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 0x4c8c54
lea edx, [eax + 0x70]
mov edi, dword [eax + 0x70]
cmp edi, 0x1c
je 0x4c8c52
lea ebx, [eax + 0x78]
mov dword [esp + 8], ebx
mov ebx, dword [eax + 0x78]
cmp ebx, 0x1c
je 0x4c8e36
mov dword [esp + 0x14], edx
lea edx, [eax + 0x80]
mov dword [esp + 4], edx
mov edx, dword [eax + 0x80]
cmp edx, 0x1c
je 0x4c8e3f
mov dword [esp + 0xc], edx
lea edx, [eax + 0x88]
mov dword [esp], edx
mov edx, dword [eax + 0x88]
cmp edx, 0x1c
je 0x4c8e48
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 0x4c8c52
mov dword [esp + 0xdc], edx
lea edx, [eax + 0x98]
mov dword [esp + 0x48], edx
mov edx, dword [eax + 0x98]
cmp edx, 0x1c
je 0x4c8e59
mov dword [esp + 0xd8], edx
lea edx, [eax + 0xa0]
mov ebx, dword [eax + 0xa0]
mov dword [esp + 0xd4], ebx
cmp ebx, 0x1c
je 0x4c8c52
mov dword [esp + 0xd0], edx
lea edx, [eax + 0xa8]
mov dword [esp + 0x44], edx
mov edx, dword [eax + 0xa8]
cmp edx, 0x1c
je 0x4c8ed2
mov dword [esp + 0xcc], edx
lea edx, [eax + 0xb0]
mov ebx, dword [eax + 0xb0]
mov dword [esp + 0xc8], ebx
cmp ebx, 0x1c
je 0x4c8c52
mov dword [esp + 0xc4], edx
lea edx, [eax + 0xb8]
mov dword [esp + 0x40], edx
mov edx, dword [eax + 0xb8]
cmp edx, 0x1c
je 0x4c8f66
mov dword [esp + 0xc0], edx
lea edx, [eax + 0xc0]
mov ebx, dword [eax + 0xc0]
mov dword [esp + 0xbc], ebx
cmp ebx, 0x1c
je 0x4c8c52
mov dword [esp + 0xb8], edx
lea edx, [eax + 0xc8]
mov dword [esp + 0x3c], edx
mov edx, dword [eax + 0xc8]
cmp edx, 0x1c
je 0x4c8f77
mov dword [esp + 0xb4], edx
lea edx, [eax + 0xd0]
mov ebx, dword [eax + 0xd0]
mov dword [esp + 0xb0], ebx
cmp ebx, 0x1c
je 0x4c8c52
mov dword [esp + 0xac], edx
lea edx, [eax + 0xd8]
mov dword [esp + 0x38], edx
mov edx, dword [eax + 0xd8]
cmp edx, 0x1c
je 0x4c8fb5
mov dword [esp + 0xa8], edx
lea edx, [eax + 0xe0]
mov ebx, dword [eax + 0xe0]
mov dword [esp + 0xa4], ebx
cmp ebx, 0x1c
je 0x4c8c52
mov dword [esp + 0xa0], edx
lea edx, [eax + 0xe8]
mov dword [esp + 0x34], edx
mov edx, dword [eax + 0xe8]
cmp edx, 0x1c
je 0x4c8fcd
mov dword [esp + 0x9c], edx
lea edx, [eax + 0xf0]
mov ebx, dword [eax + 0xf0]
mov dword [esp + 0x98], ebx
cmp ebx, 0x1c
je 0x4c8c52
mov dword [esp + 0x94], edx
lea edx, [eax + 0xf8]
mov dword [esp + 0x30], edx
mov edx, dword [eax + 0xf8]
cmp edx, 0x1c
je 0x4c8fd6
mov dword [esp + 0x90], edx
lea edx, [eax + 0x100]
mov ebx, dword [eax + 0x100]
mov dword [esp + 0x8c], ebx
cmp ebx, 0x1c
je 0x4c8c52
mov dword [esp + 0x88], edx
lea edx, [eax + 0x108]
mov dword [esp + 0x2c], edx
mov edx, dword [eax + 0x108]
cmp edx, 0x1c
je 0x4c8fdf
mov dword [esp + 0x84], edx
lea edx, [eax + 0x110]
mov ebx, dword [eax + 0x110]
mov dword [esp + 0x80], ebx
cmp ebx, 0x1c
je 0x4c8c52
mov dword [esp + 0x7c], edx
lea edx, [eax + 0x118]
mov dword [esp + 0x28], edx
mov edx, dword [eax + 0x118]
cmp edx, 0x1c
je 0x4c8fe8
mov dword [esp + 0x78], edx
lea edx, [eax + 0x120]
mov ebx, dword [eax + 0x120]
mov dword [esp + 0x74], ebx
cmp ebx, 0x1c
je 0x4c8c52
mov dword [esp + 0x70], edx
lea edx, [eax + 0x128]
mov dword [esp + 0x24], edx
mov edx, dword [eax + 0x128]
cmp edx, 0x1c
je 0x4c8ff1
mov dword [esp + 0x6c], edx
lea edx, [eax + 0x130]
mov ebx, dword [eax + 0x130]
mov dword [esp + 0x68], ebx
cmp ebx, 0x1c
je 0x4c8c52
mov dword [esp + 0x64], edx
lea edx, [eax + 0x138]
mov dword [esp + 0x20], edx
mov edx, dword [eax + 0x138]
cmp edx, 0x1c
je 0x4c8ffa
mov dword [esp + 0x60], edx
lea edx, [eax + 0x140]
mov ebx, dword [eax + 0x140]
mov dword [esp + 0x5c], ebx
cmp ebx, 0x1c
je 0x4c8c52
mov dword [esp + 0x58], edx
lea edx, [eax + 0x148]
mov dword [esp + 0x1c], edx
mov edx, dword [eax + 0x148]
cmp edx, 0x1c
je 0x4c9003
mov dword [esp + 0x54], edx
lea edx, [eax + 0x150]
mov ebx, dword [eax + 0x150]
mov dword [esp + 0x50], ebx
cmp ebx, 0x1c
je 0x4c8c52
mov dword [esp + 0x4c], edx
lea edx, [eax + 0x158]
mov dword [esp + 0x18], edx
mov ebx, dword [eax + 0x158]
cmp ebx, 0x1c
je 0x4c900c
mov edx, dword [eax + 0x160]
add eax, 0x160
cmp edx, 0x1c
je 0x4c9015
test ecx, ecx
mov ecx, dword [esp + 0x10]
je 0x4c8bf5
mov esi, dword [esp + 0x14]
test edi, edi
je 0x4c8bf5
mov esi, dword [esp + 8]
test ecx, ecx
je 0x4c8bf5
mov esi, dword [esp + 4]
cmp dword [esp + 0xc], 0
je 0x4c8bf5
mov esi, dword [esp]
cmp dword [esp + 0xe4], 0
je 0x4c8bf5
mov esi, dword [esp + 0xdc]
cmp dword [esp + 0xe0], 0
je 0x4c8bf5
mov esi, dword [esp + 0x48]
cmp dword [esp + 0xd8], 0
je 0x4c8bf5
mov esi, dword [esp + 0xd0]
cmp dword [esp + 0xd4], 0
je 0x4c8bf5
mov esi, dword [esp + 0x44]
cmp dword [esp + 0xcc], 0
je 0x4c8bf5
mov esi, dword [esp + 0xc4]
cmp dword [esp + 0xc8], 0
je 0x4c8bf5
mov esi, dword [esp + 0x40]
cmp dword [esp + 0xc0], 0
je 0x4c8bf5
mov esi, dword [esp + 0xb8]
cmp dword [esp + 0xbc], 0
je 0x4c8bf5
mov esi, dword [esp + 0x3c]
cmp dword [esp + 0xb4], 0
je 0x4c8bf5
mov esi, dword [esp + 0xac]
cmp dword [esp + 0xb0], 0
je 0x4c8bf5
mov esi, dword [esp + 0x38]
cmp dword [esp + 0xa8], 0
je 0x4c8bf5
mov esi, dword [esp + 0xa0]
cmp dword [esp + 0xa4], 0
je 0x4c8bf5
mov esi, dword [esp + 0x34]
cmp dword [esp + 0x9c], 0
je 0x4c8bf5
mov esi, dword [esp + 0x94]
cmp dword [esp + 0x98], 0
je 0x4c8bf5
mov esi, dword [esp + 0x30]
cmp dword [esp + 0x90], 0
je 0x4c8bf5
mov esi, dword [esp + 0x88]
cmp dword [esp + 0x8c], 0
je 0x4c8bf5
mov esi, dword [esp + 0x2c]
cmp dword [esp + 0x84], 0
je 0x4c8bf5
mov esi, dword [esp + 0x7c]
cmp dword [esp + 0x80], 0
je 0x4c8bf5
mov esi, dword [esp + 0x28]
cmp dword [esp + 0x78], 0
je 0x4c8bf5
mov esi, dword [esp + 0x70]
cmp dword [esp + 0x74], 0
je 0x4c8bf5
mov esi, dword [esp + 0x24]
cmp dword [esp + 0x6c], 0
je 0x4c8bf5
mov esi, dword [esp + 0x64]
cmp dword [esp + 0x68], 0
je 0x4c8bf5
mov esi, dword [esp + 0x20]
cmp dword [esp + 0x60], 0
je 0x4c8bf5
mov esi, dword [esp + 0x58]
cmp dword [esp + 0x5c], 0
je 0x4c8bf5
mov esi, dword [esp + 0x1c]
cmp dword [esp + 0x54], 0
je 0x4c8bf5
mov esi, dword [esp + 0x4c]
cmp dword [esp + 0x50], 0
je 0x4c8bf5
mov esi, dword [esp + 0x18]
test ebx, ebx
je 0x4c8bf5
mov esi, eax
test edx, edx
jne 0x4c9115
mov dword [esi], 0x1c
lea ebx, [esi + 4]
push 0x44
call fcn.004eca5e
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], 0x583768
call fcn.0049ac40
mov ecx, dword [esi + 4]
mov dword [esi + 4], edi
test ecx, ecx
je 0x4c8c59
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 0x4c8c59
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.004dd090
test eax, eax
je 0x4c901c
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 0x4c8f6f
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 0x4c8e29
mov edx, dword [ebp + 0x10]
mov edi, edx
cmp esi, edx
ja 0x4c8ce2
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 0x4c8d28
lea eax, [esi - 1]
mov dword [esp + 0xc], eax
mov ebx, dword [ebx]
test ebx, ebx
je 0x4c8d28
mov eax, dword [ebx + 4]
cmp eax, edx
jne 0x4c8d0e
cmp dword [ebx + 8], edx
je 0x4c8e05
jmp 0x4c8cf6
cmp ecx, 1
jbe 0x4c8e50
cmp eax, esi
jb 0x4c8d21
xor edx, edx
div esi
mov eax, edx
mov edx, dword [ebp + 0x10]
cmp eax, edi
je 0x4c8d03
mov ebx, dword [esp]
inc ebx
push 0x10
call fcn.004eca5e
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 [0x584c90]
por xmm0, xmm2
subsd xmm0, xmm2
cvtsd2ss xmm0, xmm0
movss xmm1, dword [ecx + 0x14]
test esi, esi
je 0x4c8edb
movd xmm3, esi
por xmm3, xmm2
subsd xmm3, xmm2
xorps xmm2, xmm2
cvtsd2ss xmm2, xmm3
mulss xmm2, xmm1
ucomiss xmm0, xmm2
ja 0x4c8edb
mov eax, dword [esp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + edi*4]
test eax, eax
jne 0x4c8e62
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 0x4c8e73
mov eax, dword [eax + 4]
lea ecx, [esi - 1]
test esi, ecx
je 0x4c9024
cmp eax, esi
jb 0x4c8df3
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 0x4c8e71
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.004ed092
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 0x4c8ce2
mov esi, dword [esp + 8]
jmp 0x4c8c54
mov esi, dword [esp + 4]
jmp 0x4c8c54
mov esi, dword [esp]
jmp 0x4c8c54
and eax, dword [esp + 0xc]
jmp 0x4c8d24
mov esi, dword [esp + 0x48]
jmp 0x4c8c54
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.004892d0
add esp, 8
mov dword [esp + 8], eax
mov ecx, esi
call fcn.004e9370
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.00489ed0
add esp, 0xc
mov esi, dword [ebp + 8]
mov byte [esi], 1
mov dword [esi + 4], edi
jmp 0x4c8e11
mov esi, dword [esp + 0x44]
jmp 0x4c8c54
divss xmm0, xmm1
cvtss2sd xmm0, xmm0
sub esp, 8
movsd qword [esp], xmm0
call fcn.0051c4a0
add esp, 8
fstp dword [esp + 0xec]
movss xmm0, dword [esp + 0xec]
cvttss2si eax, xmm0
mov edx, eax
sar edx, 0x1f
subss xmm0, dword [0x5735e0]
cvttss2si ecx, xmm0
and ecx, edx
or ecx, eax
lea edx, [esi + esi]
cmp esi, 3
jae 0x4c8fbe
xor eax, eax
inc eax
or eax, edx
cmp eax, ecx
cmovbe eax, ecx
mov edi, 2
cmp eax, 1
jne 0x4c8f80
cmp edi, esi
jbe 0x4c902b
mov ecx, dword [esp + 8]
push edi
call fcn.0048b120
mov eax, dword [esp + 4]
mov esi, dword [eax + 8]
lea edi, [esi - 1]
test esi, edi
jne 0x4c8f9f
mov edx, dword [ebp + 0x10]
and edi, edx
jmp 0x4c8d93
mov esi, dword [esp + 0x40]
jmp 0x4c8c54
xor edi, edi
dec edi
jmp 0x4c8d2b
mov esi, dword [esp + 0x3c]
jmp 0x4c8c54
lea ecx, [eax - 1]
test eax, ecx
je 0x4c90e9
push eax
call fcn.004af5d0
add esp, 4
mov edi, eax
mov eax, dword [esp + 4]
mov esi, dword [eax + 8]
jmp 0x4c8f3c
mov eax, dword [ebp + 0x10]
cmp esi, eax
ja 0x4c90f0
xor edx, edx
div esi
mov edi, edx
jmp 0x4c8d93
mov esi, dword [esp + 0x38]
jmp 0x4c8c54
lea edi, [esi - 1]
xor eax, eax
test esi, edi
setne al
jmp 0x4c8f2b
mov esi, dword [esp + 0x34]
jmp 0x4c8c54
mov esi, dword [esp + 0x30]
jmp 0x4c8c54
mov esi, dword [esp + 0x2c]
jmp 0x4c8c54
mov esi, dword [esp + 0x28]
jmp 0x4c8c54
mov esi, dword [esp + 0x24]
jmp 0x4c8c54
mov esi, dword [esp + 0x20]
jmp 0x4c8c54
mov esi, dword [esp + 0x1c]
jmp 0x4c8c54
mov esi, dword [esp + 0x18]
jmp 0x4c8c54
mov esi, eax
jmp 0x4c8c54
mov byte [esi], 0
jmp 0x4c8e11
and eax, ecx
jmp 0x4c8df3
jae 0x4c8f4e
mov dword [esp], ebx
mov eax, dword [esp + 4]
movss xmm0, dword [eax + 0x10]
orpd xmm0, xmmword [0x584c80]
subsd xmm0, qword [0x584c90]
cvtsd2ss xmm0, xmm0
divss xmm0, dword [eax + 0x14]
cvtss2sd xmm0, xmm0
sub esp, 8
movsd qword [esp], xmm0
call fcn.0051c4a0
add esp, 8
fstp dword [esp + 0xe8]
movss xmm0, dword [esp + 0xe8]
cvttss2si eax, xmm0
mov ecx, eax
subss xmm0, dword [0x5735e0]
cvttss2si edx, xmm0
sar ecx, 0x1f
and edx, ecx
or edx, eax
cmp esi, 3
jb 0x4c90f7
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 0x4c90f7
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 0x4c9100
mov edi, eax
jmp 0x4c8f3c
mov edi, eax
jmp 0x4c8d93
push edx
call fcn.004af5d0
add esp, 4
cmp edi, eax
cmovbe edi, eax
cmp edi, esi
mov ebx, dword [esp]
jb 0x4c8f44
jmp 0x4c8f4e
call fcn.004ff483
push dword [eax]
call fcn.00508c3b
add esp, 4
mov esi, eax
call fcn.004ff483
mov edi, dword [eax]
push str....._third_partyperfettoincludeperfetto_tracing_track_event_interned_data_index.h
call fcn.0051da30
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.0051dc90
add esp, 0x1c
int3