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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x3b4
mov eax, dword [0x8815d0]
xor eax, esp
mov dword [esp + 0x3b0], eax
mov eax, dword [ebp + 0x20]
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 0x1c]
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 0x28]
mov dword [esp + 0x3c], eax
mov eax, dword [ebp + 0x2c]
mov dword [esp + 0x70], eax
mov eax, dword [ebp + 0x30]
mov dword [esp + 0x40], eax
mov eax, dword [edx]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
cmp dword [eax + 0x1c], 0x10
mov esi, dword [0x5ebf64]
cmova esi, dword [0x5ebf68]
mov eax, dword [edx + 4]
mov dword [esp + 0x40], esi
xor esi, esi
push edi
mov edi, dword [ebp + 0x18]
mov dword [esp + 0x18], edx
lea edx, [esi + 0x20]
mov dword [esp + 0x1c], ebx
mov ebx, dword [ebx]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x20], esi
cmp dword [eax + 0x276c], esi
je 0x4ea628
cmp ebx, 4
jb 0x4ea628
or ebx, 0xffffffff
jmp 0x4ea661
mov eax, dword [esp + 0x3c]
cmp edx, edi
mov ecx, dword [eax]
sbb eax, eax
imul ebx, edi
neg eax
mov dword [ecx], 1
mov dword [ecx + 0xc], eax
mov eax, dword [esp + 0x14]
mov dword [ecx + 8], eax
add ebx, dword [ecx + 0x1a8]
mov ecx, eax
add ebx, dword [0x5ebf90]
add ebx, dword [0x5ebf8c]
add ebx, dword [0x5ebf88]
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x38], ebx
mov dword [eax], ebx
mov eax, dword [esp + 0x1c]
mov edx, dword [eax]
cmp edx, 4
jbe 0x4ead28
add edx, 0xfffffffc
cmp edi, 0x1c
jae 0x4ea6bf
mov esi, dword [esp + 0x18]
mov eax, edx
shl eax, 4
add ecx, 0x10
add eax, edx
bsr eax, eax
mov esi, dword [esi + 4]
add eax, edi
cmp eax, 0x20
lea eax, [esp + 0x2a4]
push eax
push edx
push ecx
jae 0x4ea6b5
mov eax, dword [esi + 0x272c]
call eax
jmp 0x4ea6f8
mov eax, dword [esi + 0x2730]
call eax
jmp 0x4ea6f8
cmp edi, 0x20
ja 0x4ea6e6
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 4]
lea eax, [esp + 0x2a4]
push eax
mov eax, dword [esp + 0x18]
add eax, 0x10
push edx
push eax
mov eax, dword [ecx + 0x2734]
call eax
jmp 0x4ea6f8
lea eax, [esp + 0x2a4]
push eax
push edx
lea eax, [ecx + 0x20]
push eax
call fcn.004ef440
mov esi, eax
add esp, 0xc
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 4]
cmp dword [eax + 0x2764], 0
jne 0x4ea815
movss xmm0, dword [esp + 0x2a8]
ucomiss xmm0, dword [0x599480]
lahf
test ah, 0x44
jp 0x4ea815
mov ecx, dword [esp + 0x1c]
mov eax, 1
mov ecx, dword [ecx]
cmp edi, 0x20
ja 0x4ea76a
cmp ecx, eax
jbe 0x4ea7ee
mov edx, dword [esp + 0x14]
mov edx, dword [edx]
nop dword [eax]
mov edi, dword [esp + 0x14]
cmp edx, dword [edi + eax*4]
mov edi, dword [ebp + 0x18]
jne 0x4ea815
inc eax
cmp eax, ecx
jb 0x4ea750
jmp 0x4ea7f3
cmp ecx, 1
jbe 0x4ea7ee
mov edi, dword [esp + 0x14]
mov edx, dword [edi]
mov edi, dword [esp + 0x14]
cmp edx, dword [edi + eax*8]
mov edi, dword [ebp + 0x18]
jne 0x4ea815
mov ebx, dword [esp + 0x14]
mov edi, dword [ebx + 4]
cmp edi, dword [ebx + eax*8 + 4]
mov ebx, dword [esp + 0x28]
mov edi, dword [ebp + 0x18]
jne 0x4ea815
inc eax
cmp eax, ecx
jb 0x4ea775
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x14]
mov edx, dword [eax + 4]
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [edx + 8], eax
mov eax, dword [edx + 0x1a8]
mov dword [edx], 0
mov dword [edx + 0xc], ecx
add eax, dword [0x5ebf90]
add eax, dword [0x5ebf8c]
add eax, dword [0x5ebf88]
add eax, edi
cmp eax, ebx
cmovb ebx, eax
cmp eax, dword [esp + 0x38]
mov eax, dword [esp + 0x1c]
sbb esi, esi
mov dword [esp + 0x28], ebx
neg esi
jmp 0x4ead28
cmp edi, 0x20
ja 0x4ea79e
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax + 4]
mov eax, dword [esp + 0x14]
mov eax, dword [eax]
cdq
mov dword [ecx + 8], eax
mov eax, dword [ecx + 0x1a8]
mov dword [ecx], 0
mov dword [ecx + 0xc], edx
jmp 0x4ea7c0
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x18]
mov ecx, dword [edx + 4]
mov eax, dword [eax]
cmp dword [ecx + 0x2768], 0
je 0x4ea841
cmp dword [eax + 0x22c], 0
jne 0x4eaa98
cmp ebx, 0xffffffff
jne 0x4eaa98
cmp dword [eax + 0x238], 0
je 0x4ea851
xor esi, esi
lea ecx, [esi + 4]
jmp 0x4ea853
mov ecx, esi
mov eax, dword [esp + 0x1c]
mov eax, dword [eax]
cmp ecx, eax
lea edx, [eax - 1]
cmovb edx, ecx
mov dword [esp + 0x40], edx
cmp esi, edx
ja 0x4eaa98
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x2a4]
movd xmm0, edi
mov eax, edi
shr eax, 0x1f
cvtdq2pd xmm0, xmm0
addsd xmm0, qword [eax*8 + 0x50f650]
mov eax, esi
imul eax, edi
sub edx, ecx
mov dword [esp + 0x58], edx
cvtpd2ps xmm1, xmm0
mov dword [esp + 0x24], eax
lea eax, [ecx + esi*8]
mov dword [esp + 0x30], eax
lea eax, [ecx + esi*4]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x30]
mov dword [esp + 0x2c], eax
movss dword [esp + 0x38], xmm1
nop dword [eax]
mov edi, dword [esp + 0x58]
movss xmm0, dword [edi + eax]
comiss xmm0, xmm1
mov edi, dword [ebp + 0x18]
jae 0x4eaa79
mov eax, dword [ebp + 0x24]
xor edx, edx
cmp dword [esp + 0x20], edx
mov edi, dword [esp + 0x18]
sete dl
mov dword [esp + 0x70], edx
mov eax, dword [eax + edx*4]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x3c]
mov eax, dword [eax + edx*4]
mov dword [esp + 0x34], eax
mov eax, dword [edi]
mov ecx, dword [eax + 0x248]
mov eax, dword [eax + 0x23c]
mov dword [esp + 0x68], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x64], ecx
mov ecx, dword [eax + 0x25bc]
mov eax, dword [eax + 0x25b8]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x6c], ecx
mov ecx, dword [eax + edx*4]
mov eax, dword [esp + 0x1c]
mov edx, dword [ebp + 0x18]
push ecx
push esi
mov edi, dword [eax]
sub edi, esi
mov dword [esp + 0x68], ecx
lea eax, [esi + edx]
push edi
cmp eax, 0x20
ja 0x4ea954
push dword [esp + 0x38]
call fcn.004f0180
jmp 0x4ea96d
cmp edx, 0x20
ja 0x4ea964
push dword [esp + 0x38]
call fcn.004f0180
jmp 0x4ea96d
push dword [esp + 0x3c]
call fcn.004f0580
mov edx, dword [esp + 0x44]
add esp, 0x10
mov ecx, dword [esp + 0x5c]
lea eax, [edx + 8]
mov dword [eax], 0
push eax
push dword [esp + 0x68]
mov eax, dword [esp + 0x20]
push dword [esp + 0x70]
mov dword [edx + 0x10], ecx
push dword [ebp + 0x18]
mov ecx, dword [esp + 0x70]
push dword [ebp + 0x10]
mov dword [edx], 2
push dword [ebp + 0xc]
mov dword [edx + 0x38], ecx
push dword [esp + 0x5c]
push esi
push edi
push dword [esp + 0x90]
push dword [esp + 0x78]
push ecx
push dword [eax + 4]
call fcn.004e8a70
mov edi, dword [ebp + 0x18]
add esp, 0x34
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x34]
mov dword [eax + 0x14], esi
cmp edi, 0x20
ja 0x4ea9f8
xor edi, edi
test esi, esi
je 0x4eaa22
mov ebx, dword [esp + 0x14]
lea ecx, [eax + 0x18]
mov eax, dword [ebx + edi*4]
lea ecx, [ecx + 8]
cdq
inc edi
mov dword [ecx - 8], eax
mov dword [ecx - 4], edx
cmp edi, esi
jb 0x4ea9e4
jmp 0x4eaa1a
xor edx, edx
test esi, esi
je 0x4eaa25
mov ebx, dword [esp + 0x14]
lea edi, [eax + 0x18]
mov eax, dword [ebx + edx*8]
lea edi, [edi + 8]
mov ecx, dword [ebx + edx*8 + 4]
inc edx
mov dword [edi - 8], eax
mov dword [edi - 4], ecx
cmp edx, esi
jb 0x4eaa05
mov eax, dword [esp + 0x34]
mov ebx, dword [esp + 0x28]
mov edi, dword [ebp + 0x18]
mov ecx, dword [eax + 0x1a8]
add ecx, dword [esp + 0x24]
add ecx, dword [0x5ebf90]
add ecx, dword [0x5ebf8c]
add ecx, dword [0x5ebf88]
mov edx, dword [esp + 0x50]
mov eax, ecx
not eax
cmp edx, eax
jae 0x4eaa52
lea eax, [ecx + edx]
jmp 0x4eaa55
or eax, 0xffffffff
movss xmm1, dword [esp + 0x38]
mov edx, dword [esp + 0x30]
cmp eax, ebx
jae 0x4eaa71
mov ecx, dword [esp + 0x70]
mov ebx, eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x28], ebx
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x2c]
inc esi
add eax, 4
add edx, 8
mov dword [esp + 0x2c], eax
add ecx, edi
mov dword [esp + 0x30], edx
mov dword [esp + 0x24], ecx
cmp esi, dword [esp + 0x40]
jbe 0x4ea8c0
mov esi, dword [esp + 0x18]
mov edx, dword [esi]
mov ecx, dword [edx + 0x22c]
test ecx, ecx
je 0x4ead1c
mov ebx, dword [esp + 0x1c]
mov eax, dword [ebx]
cmp ecx, eax
lea esi, [eax - 1]
mov eax, esi
mov esi, dword [esp + 0x18]
cmovb eax, ecx
mov dword [esp + 0x2c], eax
test eax, eax
je 0x4ead22
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 1
mov dword [esp + 0x88], 0
cmp dword [edx + 0x28], 0
jbe 0x4ead22
mov dword [esp + 0x24], eax
lea eax, [esp + 0x40]
push eax
push dword [esp + 0x18]
lea eax, [esp + 0x2c]
push edi
push eax
lea eax, [esp + 0x2c8]
push eax
push dword [ebx]
lea eax, [esp + 0x98]
push eax
push esi
call fcn.004e8350
add esp, 0x20
test eax, eax
je 0x4ead06
mov eax, dword [esi]
cmp dword [eax + 0x238], 0
je 0x4eab43
mov eax, dword [esp + 0x24]
mov ebx, 1
jmp 0x4eab4d
mov ebx, dword [esp + 0x40]
mov eax, ebx
mov dword [esp + 0x24], eax
mov dword [esp + 0x34], ebx
cmp ebx, eax
ja 0x4ead02
movd xmm0, edi
lea ecx, [esp + ebx*8 + 0x2b0]
cvtdq2pd xmm0, xmm0
mov eax, edi
mov dword [esp + 0x38], ecx
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x50f650]
mov eax, ebx
shl eax, 7
mov dword [esp + 0x30], eax
movsd qword [esp + 0x50], xmm0
nop dword [eax]
mov eax, dword [esp + 0x1c]
movsd xmm0, qword [ecx]
mov eax, dword [eax]
sub eax, ebx
push eax
sub esp, 8
movsd qword [esp], xmm0
call fcn.004f1e20
fstp qword [esp + 0x7c]
movsd xmm0, qword [esp + 0x7c]
add esp, 0xc
comisd xmm0, xmmword [esp + 0x50]
jae 0x4eacdc
mov eax, dword [esp + 0x18]
mov edi, dword [eax]
cmp dword [edi + 0x234], 0
je 0x4eac2f
mov edx, dword [ebp + 0x18]
mov ecx, 5
cmp edx, 0x11
ja 0x4eac17
bsr eax, ebx
mov esi, 0x20
mov ecx, esi
sub ecx, eax
sub ecx, edx
cmp ecx, 0xf
jae 0x4eabfd
bsr eax, ebx
mov ecx, esi
sub ecx, eax
sub ecx, edx
jmp 0x4eac02
mov ecx, 0xf
mov eax, dword [esp + 0x18]
mov edi, 5
cmp ecx, edi
cmova edi, ecx
mov ecx, 5
jmp 0x4eac1c
mov edi, 0xf
mov esi, 5
cmp ecx, edi
ja 0x4eacdc
mov ecx, dword [esp + 0x20]
jmp 0x4eac44
mov edi, dword [edi + 0x230]
mov esi, edi
mov ecx, dword [esp + 0x20]
jmp 0x4eac44
mov eax, dword [esp + 0x18]
mov edx, dword [ebp + 0x24]
xor ebx, ebx
mov eax, dword [eax]
test ecx, ecx
mov ecx, dword [esp + 0x18]
sete bl
mov ecx, dword [ecx + 4]
push dword [edx + ebx*4]
mov edx, dword [esp + 0x40]
push dword [edx + ebx*4]
mov edx, dword [ebp + 0x18]
push dword [eax + 0x248]
push dword [eax + 0x23c]
mov eax, dword [esp + 0x2c]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [esp + 0x5c]
push esi
push dword [esp + 0x54]
push edx
push dword [eax]
mov eax, dword [esp + 0x5c]
add eax, 0x2860
add eax, ecx
push eax
push dword [ecx + 0x25bc]
mov eax, dword [esp + 0x7c]
push dword [ecx + 0x25b8]
push dword [eax + ebx*4]
push dword [esp + 0x50]
push dword [esp + 0x58]
call fcn.004e85d0
add esp, 0x44
test eax, eax
je 0x4eaccb
cmp eax, dword [esp + 0x28]
jae 0x4eaccb
mov ecx, ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x20], ecx
jmp 0x4eaccf
mov ecx, dword [esp + 0x20]
inc esi
cmp esi, edi
jbe 0x4eac40
mov ebx, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
inc ebx
sub dword [esp + 0x30], 0xffffff80
add ecx, 8
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ecx
cmp ebx, dword [esp + 0x24]
jbe 0x4eab90
mov edi, dword [ebp + 0x18]
mov esi, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esi]
mov eax, dword [esp + 0x80]
cmp eax, dword [ecx + 0x28]
mov eax, dword [esp + 0x2c]
jb 0x4eaaf7
mov eax, dword [esp + 0x1c]
jmp 0x4ead24
mov eax, ebx
mov esi, dword [esp + 0x20]
mov edx, dword [esp + 0x28]
cmp edx, 0xffffffff
jne 0x4ead70
mov edx, dword [eax]
mov eax, 0x20
mov ecx, dword [esp + 0x3c]
cmp eax, edi
sbb eax, eax
imul edx, edi
neg eax
mov ecx, dword [ecx + esi*4]
mov dword [ecx], 1
mov dword [ecx + 0xc], eax
mov eax, dword [esp + 0x14]
mov dword [ecx + 8], eax
add edx, dword [ecx + 0x1a8]
add edx, dword [0x5ebf90]
add edx, dword [0x5ebf8c]
add edx, dword [0x5ebf88]
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x3bc]
pop edi
mov dword [eax], esi
mov eax, dword [esp + 0x48]
pop esi
pop ebx
xor ecx, esp
mov dword [eax], edx
mov eax, 1
call fcn.00432bfc
mov esp, ebp
pop ebp
ret