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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0xe8
mov eax, dword [0x1009f068]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov dword [ebp - 0x2c], edx
push edi
mov edi, dword [0x100a1264]
mov dword [ebp - 0x28], edi
cmp byte [esi + 0x67], 0
je 0x1004ea6a
movups xmm0, xmmword [edi + 0x46b8]
movaps xmmword [ebp - 0x90], xmm0
movq xmm0, qword [edi + 0x46c8]
movq qword [ebp - 0x50], xmm0
call fcn.1004d040
movaps xmm0, xmmword [ebp - 0x90]
mov edx, dword [ebp - 0x2c]
movups xmmword [edi + 0x46b8], xmm0
movq xmm0, qword [ebp - 0x50]
movq qword [edi + 0x46c8], xmm0
mov eax, dword [edi + 0x3e58]
mov dword [ebp - 0x20], eax
cmp byte [eax + 0xaf], 0
je 0x1004ea91
xor al, al
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10051658
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push ecx
mov ecx, esi
call fcn.1004e020
add esp, 4
mov dword [ebp - 0x24], eax
mov edx, eax
mov ecx, esi
call fcn.1004e100
mov edi, eax
mov byte [ebp - 0x15], 0
test edi, edi
jne 0x1004eb98
mov edi, dword [esi + 4]
xorps xmm0, xmm0
mov ecx, dword [esi]
mov dword [ebp - 0xc8], eax
or eax, 0xffffffff
movlpd qword [ebp - 0xe0], xmm0
movlpd qword [ebp - 0xd0], xmm0
mov dword [ebp - 0xd4], 0xffffffff
mov dword [ebp - 0xd8], 0xffffffff
mov dword [ebp - 0xc4], 0xbf800000
mov dword [ebp - 0xc0], 0xffffffff
mov word [ebp - 0xba], ax
mov word [ebp - 0xbc], ax
cmp ecx, edi
jne 0x1004eb33
inc ecx
test edi, edi
je 0x1004eb21
mov eax, edi
cdq
sub eax, edx
sar eax, 1
add eax, edi
jmp 0x1004eb26
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
push ecx
mov ecx, esi
call fcn.1004ff50
imul eax, dword [esi], 0x2c
movups xmm0, xmmword [ebp - 0xe0]
add eax, dword [esi + 8]
movups xmmword [eax], xmm0
movups xmm0, xmmword [ebp - 0xd0]
movups xmmword [eax + 0x10], xmm0
movq xmm0, qword [ebp - 0xc0]
movq qword [eax + 0x20], xmm0
mov dword [eax + 0x28], 0
inc dword [esi]
cmp dword [esi], 0
jg 0x1004eb80
push 0x736
push str.E:Visual_Studio_ProjectsNFSMWModMenuNFSMWModMenuimguiimgui.h
push str.Size___0
call fcn.10064e29
add esp, 0xc
imul ecx, dword [esi], 0x2c
mov edi, dword [esi + 8]
mov byte [ebp - 0x15], 1
add ecx, 0xffffffd4
add edi, ecx
mov ecx, dword [ebp - 0x24]
mov dword [edi], ecx
mov byte [esi + 0x69], 1
mov ecx, dword [esi + 8]
cmp edi, ecx
jb 0x1004eba8
imul eax, dword [esi], 0x2c
add eax, ecx
cmp edi, eax
jb 0x1004ebbf
push 0x74e
push str.E:Visual_Studio_ProjectsNFSMWModMenuNFSMWModMenuimguiimgui.h
push 0x10094e0c
call fcn.10064e29
add esp, 0xc
mov ecx, edi
mov eax, 0x2e8ba2e9
sub ecx, dword [esi + 8]
imul ecx
push 0
sar edx, 3
lea ecx, [ebp - 0x98]
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [ebp - 0x2c]
mov word [esi + 0x6c], ax
call fcn.1004f3a0
mov edx, dword [ebp - 0x28]
add esp, 4
mov dword [edi + 0x1c], 0xbf800000
test byte [edx + 0x46b8], 1
je 0x1004ec0e
movss xmm1, dword [edx + 0x46c0]
movss dword [edi + 0x1c], xmm1
jmp 0x1004ec16
movss xmm1, dword [ebp - 0x98]
cmp byte [ebp - 0x15], 0
movss xmm0, dword [0x10097f14]
je 0x1004ec2d
maxss xmm0, xmm1
movss dword [edi + 0x14], xmm0
movss dword [edi + 0x18], xmm1
movzx ecx, word [esi + 0x6a]
lea eax, [ecx + 1]
mov word [esi + 0x6a], ax
mov word [edi + 0x24], cx
mov eax, dword [esi + 0x24]
mov ecx, dword [edx + 0x3dd8]
inc eax
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0xc]
shr eax, 0x15
and eax, 0xffffff01
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x60], eax
mov eax, dword [edi + 8]
mov dword [edi + 8], ecx
inc eax
mov dword [edi + 4], 0x100000
mov ecx, dword [esi + 0x84]
mov dword [ebp - 0x58], eax
lea eax, [ecx - 1]
neg ecx
sbb ecx, ecx
and ecx, eax
mov dword [edi + 0x20], ecx
mov ecx, dword [ebp - 0x2c]
mov edx, ecx
lea eax, [edx + 1]
mov dword [ebp - 0x30], eax
nop dword [eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x1004ec90
sub edx, dword [ebp - 0x30]
lea eax, [ecx + 1]
add eax, edx
push eax
push ecx
lea ecx, [esi + 0x84]
call fcn.1000f270
mov eax, dword [ebp - 0x3c]
cmp dword [ebp - 0x58], eax
jge 0x1004ecd0
test byte [esi + 0xc], 2
je 0x1004ecd0
cmp dword [esi + 0x18], 0
jne 0x1004ecd0
cmp dword [ebp - 0x1c], eax
jge 0x1004eccb
cmp dword [esi + 0x14], 0
jne 0x1004ecd0
mov eax, dword [edi]
mov dword [esi + 0x18], eax
mov edx, dword [ebp - 0x24]
cmp dword [esi + 0x1c], edx
sete cl
mov dword [ebp - 0x34], ecx
mov byte [ebp - 0x64], cl
jne 0x1004ece5
mov byte [esi + 0x68], 1
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x30], 1
test cl, cl
jne 0x1004ed14
cmp dword [esi + 0x14], 0
jne 0x1004ed14
cmp eax, dword [ebp - 0x3c]
jge 0x1004ed14
cmp dword [esi], 1
jne 0x1004ed14
test byte [esi + 0xc], 2
movzx ecx, cl
cmove ecx, dword [ebp - 0x30]
mov dword [ebp - 0x34], ecx
mov byte [ebp - 0x64], cl
mov ecx, dword [ebp - 0x3c]
cmp dword [ebp - 0x58], ecx
jge 0x1004ed47
cmp eax, ecx
jge 0x1004ed26
cmp byte [ebp - 0x15], 0
je 0x1004ed47
xorps xmm0, xmm0
lea ecx, [ebp - 0x90]
push 8
push 0
movups xmmword [ebp - 0x90], xmm0
call fcn.10021130
add esp, 8
jmp 0x1004f387
cmp dword [esi + 0x14], edx
jne 0x1004ed58
mov ecx, dword [ebp - 0x28]
mov eax, dword [ecx + 0x3dd8]
mov dword [edi + 0xc], eax
mov ecx, dword [ebp - 0x20]
mov eax, dword [edi + 4]
movss xmm3, dword [edi + 0x14]
and eax, 0xc0
movss xmm1, dword [edi + 0x10]
movss xmm0, dword [ecx + 0xf0]
movss dword [ebp - 0x68], xmm0
movss xmm0, dword [ecx + 0xf4]
movss dword [ebp - 0x30], xmm0
mov dword [ebp - 0x1c], eax
jne 0x1004ed9c
subss xmm1, dword [esi + 0x48]
cvttss2si eax, xmm1
movd xmm1, eax
cvtdq2ps xmm1, xmm1
cmp dword [ebp - 0x1c], 0
mov eax, 4
addss xmm1, dword [esi + 0x28]
xorps xmm0, xmm0
movss dword [ebp - 0x38], xmm1
movaps xmm2, xmm1
movss xmm5, dword [esi + eax + 0x28]
addss xmm2, xmm3
addss xmm5, xmm0
movss dword [ecx + 0xf0], xmm1
movss dword [ebp - 0x14], xmm1
movss dword [ebp - 0x9c], xmm2
movaps xmm4, xmm5
movss dword [ebp - 0x4c], xmm5
addss xmm4, dword [ebp - 0x94]
movss dword [ecx + 0xf4], xmm5
movss dword [ebp - 0x10], xmm5
movss dword [ebp - 0xc], xmm2
movss dword [ebp - 0x94], xmm4
movss dword [ebp - 8], xmm4
jne 0x1004efcc
movss xmm3, dword [esi + 0x58]
comiss xmm3, xmm1
ja 0x1004ee21
comiss xmm2, dword [esi + 0x5c]
jbe 0x1004efcc
mov ecx, dword [0x100a1264]
maxss xmm1, xmm3
movss xmm2, dword [esi + 0x5c]
movaps xmm0, xmm5
subss xmm0, dword [0x10097f14]
movaps xmm5, xmm4
mov byte [ebp - 0x15], 1
mov eax, dword [ecx + 0x3e58]
movss dword [ebp - 0x80], xmm1
movss dword [ebp - 0x78], xmm2
movss dword [ebp - 0x7c], xmm0
mov byte [eax + 0xac], 1
mov eax, dword [ecx + 0x3e58]
mov dword [ebp - 0x1c], eax
movss dword [ebp - 0x74], xmm5
mov eax, dword [eax + 0x264]
mov dword [ebp - 0x5c], eax
movups xmm3, xmmword [eax + 0x60]
comiss xmm3, xmm1
movaps xmmword [ebp - 0x90], xmm3
jbe 0x1004ee8d
movaps xmm1, xmm3
movss dword [ebp - 0x80], xmm1
movss xmm3, dword [ebp - 0x8c]
comiss xmm3, xmm0
jbe 0x1004eea2
movaps xmm0, xmm3
movss dword [ebp - 0x7c], xmm0
movss xmm3, dword [ebp - 0x88]
comiss xmm2, xmm3
jbe 0x1004eeb7
movaps xmm2, xmm3
movss dword [ebp - 0x78], xmm2
movss xmm3, dword [ebp - 0x84]
comiss xmm4, xmm3
jbe 0x1004eecc
movaps xmm5, xmm3
movss dword [ebp - 0x74], xmm5
comiss xmm1, xmm2
jb 0x1004eed6
movss dword [ebp - 0x78], xmm1
comiss xmm0, xmm5
jb 0x1004eee0
movss dword [ebp - 0x74], xmm0
mov edx, dword [eax + 0x3c]
lea ecx, [eax + 0x3c]
mov eax, dword [ecx + 4]
mov dword [ebp - 0xa8], ecx
cmp edx, eax
jne 0x1004ef24
inc edx
mov dword [ebp - 0xa4], edx
test eax, eax
je 0x1004ef0e
cdq
sub eax, edx
mov edx, dword [ebp - 0xa4]
sar eax, 1
add eax, dword [ecx + 4]
jmp 0x1004ef13
mov eax, 8
cmp eax, edx
cmovg edx, eax
push edx
call fcn.1003a890
mov ecx, dword [ebp - 0xa8]
mov eax, dword [ecx]
mov edx, dword [ecx + 8]
add eax, eax
movaps xmm0, xmmword [ebp - 0x80]
movups xmmword [edx + eax*8], xmm0
inc dword [ecx]
mov ecx, dword [ebp - 0x5c]
movups xmmword [ecx + 0x60], xmm0
call fcn.10032670
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ecx + 0x264]
add eax, 0x3c
mov dword [ebp - 0x5c], eax
cmp dword [eax], 0
jg 0x1004ef6f
push 0x736
push str.E:Visual_Studio_ProjectsNFSMWModMenuNFSMWModMenuimguiimgui.h
push str.Size___0
call fcn.10064e29
mov eax, dword [ebp - 0x5c]
add esp, 0xc
mov ecx, dword [eax]
mov eax, dword [eax + 8]
add ecx, ecx
movss xmm1, dword [eax + ecx*8 - 8]
movss xmm2, dword [eax + ecx*8 - 4]
movss xmm0, dword [eax + ecx*8 - 0xc]
mov eax, dword [eax + ecx*8 - 0x10]
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x210], eax
movss dword [ecx + 0x214], xmm0
movss dword [ecx + 0x218], xmm1
movss dword [ecx + 0x21c], xmm2
movss xmm1, dword [ebp - 0x38]
movss xmm4, dword [ebp - 0x94]
movss xmm2, dword [ebp - 0x9c]
movss xmm5, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x20]
jmp 0x1004efd0
mov byte [ebp - 0x15], 0
mov eax, dword [ebp - 0x28]
subss xmm2, xmm1
movss xmm0, dword [ecx + 0x108]
subss xmm4, xmm5
movss xmm7, dword [ecx + 0x10c]
lea ecx, [ebp - 0xa0]
movss dword [ebp - 0x4c], xmm0
movss xmm1, dword [eax + 0x37c0]
movss dword [ebp - 0xa0], xmm2
movss dword [ebp - 0x9c], xmm4
call fcn.10020f80
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x14]
movss xmm0, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x24]
push 0
push 0
movss dword [eax + 0x108], xmm0
movss dword [eax + 0x10c], xmm7
call fcn.10021130
add esp, 8
test al, al
jne 0x1004f06d
cmp byte [ebp - 0x15], al
je 0x1004f04b
call fcn.100155e0
mov eax, dword [ebp - 0x20]
movss xmm0, dword [ebp - 0x68]
movss dword [eax + 0xf0], xmm0
movss xmm0, dword [ebp - 0x30]
movss dword [eax + 0xf4], xmm0
jmp 0x1004f387
mov ecx, dword [ebp - 0x28]
mov edx, 0x1010
mov eax, 0x1210
cmp byte [ecx + 0x4974], 0
lea ecx, [ebp - 0x14]
cmove eax, edx
mov edx, dword [ebp - 0x24]
push eax
lea eax, [ebp - 0x16]
push eax
lea eax, [ebp - 0x17]
push eax
call fcn.1003f6f0
add esp, 0xc
test al, al
je 0x1004f0a4
mov eax, dword [edi]
mov dword [esi + 0x18], eax
cmp byte [ebp - 0x16], 0
je 0x1004f13e
mov eax, dword [ebp - 0x58]
cmp eax, dword [ebp - 0x3c]
jl 0x1004f13e
mov eax, dword [0x100a1264]
cmp byte [eax + 0xdc0], 0
je 0x1004f13e
movss xmm1, dword [eax + 0x58]
movss xmm0, dword [eax + 0x3750]
mulss xmm1, xmm1
comiss xmm0, xmm1
setae al
test al, al
je 0x1004f13e
mov eax, dword [ebp - 0x28]
cmp byte [eax + 0x4974], 0
jne 0x1004f13e
test byte [esi + 0xc], 1
xorps xmm1, xmm1
je 0x1004f141
movss xmm2, dword [eax + 0xb0]
comiss xmm1, xmm2
jbe 0x1004f113
movss xmm0, dword [ebp - 0x14]
comiss xmm0, dword [eax + 0xdb8]
ja 0x1004f126
comiss xmm2, xmm1
jbe 0x1004f141
movss xmm0, dword [eax + 0xdb8]
comiss xmm0, dword [ebp - 0xc]
jbe 0x1004f141
push dword [eax + 0xdbc]
mov edx, edi
mov ecx, esi
push dword [eax + 0xdb8]
call fcn.1004e190
add esp, 8
xorps xmm1, xmm1
cmp byte [ebp - 0x16], 0
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x264]
mov dword [ebp - 0x38], eax
jne 0x1004f184
cmp byte [ebp - 0x17], 0
jne 0x1004f184
cmp byte [ebp - 0x34], 0
je 0x1004f171
mov eax, dword [ebp - 0x60]
movzx eax, al
xor eax, 1
lea ecx, [eax*2 + 0x23]
jmp 0x1004f189
cmp byte [ebp - 0x60], 0
mov ecx, 0x24
mov edx, 0x21
cmovne ecx, edx
jmp 0x1004f189
mov ecx, 0x22
mov eax, dword [0x100a1264]
add ecx, ecx
movss xmm6, dword [0x10097f14]
movups xmm3, xmmword [eax + ecx*8 + 0x385c]
comiss xmm1, xmm3
movaps xmm2, xmm3
movaps xmmword [ebp - 0x90], xmm3
shufps xmm2, xmm3, 0xff
mulss xmm2, dword [eax + 0x3780]
jbe 0x1004f1c0
xorps xmm0, xmm0
jmp 0x1004f1c7
movaps xmm0, xmm6
minss xmm0, xmm3
movss xmm3, dword [0x10097fa8]
movss xmm4, dword [0x10097ed8]
movss xmm5, dword [ebp - 0x8c]
comiss xmm1, xmm5
mulss xmm0, xmm3
addss xmm0, xmm4
cvttss2si ecx, xmm0
jbe 0x1004f1f5
xorps xmm0, xmm0
jmp 0x1004f1fc
movaps xmm0, xmm6
minss xmm0, xmm5
movss xmm5, dword [ebp - 0x88]
mulss xmm0, xmm3
addss xmm0, xmm4
cvttss2si eax, xmm0
shl eax, 8
or ecx, eax
comiss xmm1, xmm5
jbe 0x1004f21f
xorps xmm0, xmm0
jmp 0x1004f226
movaps xmm0, xmm6
minss xmm0, xmm5
mulss xmm0, xmm3
addss xmm0, xmm4
cvttss2si eax, xmm0
shl eax, 0x10
or ecx, eax
comiss xmm1, xmm2
ja 0x1004f243
minss xmm6, xmm2
movaps xmm1, xmm6
mulss xmm1, xmm3
lea edx, [ebp - 0x14]
addss xmm1, xmm4
cvttss2si eax, xmm1
shl eax, 0x18
or eax, ecx
mov ecx, dword [ebp - 0x38]
push eax
push 0x100000
call fcn.1004f4b0
mov edx, dword [ebp - 0x24]
lea ecx, [ebp - 0x14]
push 1
call fcn.10010b20
add esp, 0xc
mov ecx, 0x20
call fcn.10013160
test al, al
je 0x1004f2b9
xor edx, edx
push 0
lea ecx, [edx + 1]
call fcn.1001eaf0
add esp, 4
test al, al
jne 0x1004f2b4
mov ecx, dword [0x100a1264]
cmp byte [ecx + 0x3717], al
je 0x1004f2b9
mov edx, 0x282
call fcn.1000dc60
cmp byte [eax + 8], 0
jne 0x1004f2b9
mov eax, dword [edi]
mov dword [esi + 0x18], eax
movss xmm0, dword [esi + 0x74]
lea eax, [ebp - 0x17]
mov ecx, dword [ebp - 0x38]
lea edx, [ebp - 0x14]
movss dword [ebp - 0x50], xmm0
movss xmm0, dword [esi + 0x78]
movss dword [ebp - 0x4c], xmm0
push dword [ebp - 0x4c]
push dword [ebp - 0x50]
push eax
lea eax, [ebp - 0x51]
push eax
push dword [ebp - 0x64]
mov eax, dword [esi + 0xc]
push 0
push dword [ebp - 0x24]
and eax, 8
push dword [ebp - 0x2c]
or eax, 0x200000
shr eax, 1
push eax
call fcn.1004f9f0
add esp, 0x24
cmp byte [ebp - 0x15], 0
je 0x1004f30d
call fcn.100155e0
cmp byte [ebp - 0x17], 0
mov eax, dword [ebp - 0x20]
movss xmm0, dword [ebp - 0x68]
movss dword [eax + 0xf0], xmm0
movss xmm0, dword [ebp - 0x30]
movss dword [eax + 0xf4], xmm0
je 0x1004f387
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
cmp dword [eax + 0x3e90], ecx
jne 0x1004f387
cmp byte [ebp - 0x16], 0
jne 0x1004f387
test byte [esi + 0xc], 0x20
jne 0x1004f387
test byte [edi + 4], 0x10
jne 0x1004f387
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp eax, 0xffffffff
jae 0x1004f376
nop word [eax + eax]
mov dl, byte [ecx]
test dl, dl
je 0x1004f376
cmp dl, 0x23
jne 0x1004f370
cmp byte [ecx + 1], dl
je 0x1004f376
inc ecx
cmp ecx, 0xffffffff
jb 0x1004f360
push eax
sub ecx, eax
push ecx
push str._.s
call fcn.10022460
add esp, 0xc
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x34]
xor ecx, ebp
pop edi
pop esi
call fcn.10051658
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret