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

Disassembly:
sub esp, 0xb0
push ebx
push ebp
push esi
mov esi, dword [esp + 0xc0]
push esi
call fcn.004a78b0
add esp, 4
test eax, eax
je 0x4af49b
push esi
call fcn.004a7830
add esp, 4
test eax, eax
jne 0x4af49b
mov ebp, dword [0x11f4dd8]
lea eax, [esi + esi*2]
shl eax, 4
mov esi, dword [ebp + 0xd4]
xor ebx, ebx
add esi, eax
mov dword [esp + 0x38], ebx
mov dword [esp + 0x4c], esi
mov ecx, dword [esi + 4]
test ecx, ecx
jle 0x4af49b
push edi
mov edx, dword [esi + 8]
mov eax, dword [ebp + 0xcc]
add edx, ebx
mov eax, dword [eax + edx*4]
cdq
xor eax, edx
sub eax, edx
lea edx, [eax + eax*2]
mov eax, dword [ebp + 0xc4]
lea edx, [eax + edx*8]
mov dword [esp + 0x30], edx
test byte [edx + 4], 4
je 0x4af48a
mov eax, dword [edx + 8]
xor edi, edi
test eax, eax
mov dword [esp + 0x2c], edi
jle 0x4af48a
mov eax, dword [edx + 0xc]
mov ebx, dword [ebp + 0xbc]
add eax, edi
mov eax, dword [ebx + eax*4]
mov dword [esp + 0x20], eax
xor eax, eax
test ecx, ecx
mov dword [esp + 0x38], eax
jle 0x4af476
mov ecx, dword [esi + 8]
mov edx, dword [ebp + 0xcc]
add ecx, eax
mov eax, dword [edx + ecx*4]
mov ecx, dword [ebp + 0xc4]
cdq
mov edi, eax
xor edi, edx
sub edi, edx
mov dword [esp + 0x40], edi
lea eax, [edi + edi*2]
lea ecx, [ecx + eax*8]
mov dword [esp + 0x48], ecx
test byte [ecx + 4], 4
jne 0x4af456
mov eax, dword [ecx + 8]
xor esi, esi
test eax, eax
mov dword [esp + 0x44], esi
jle 0x4af456
mov eax, dword [esp + 0x20]
cdq
mov ebx, eax
xor ebx, edx
sub ebx, edx
mov dword [esp + 0x24], ebx
mov edx, dword [ecx + 0xc]
mov eax, dword [ebp + 0xbc]
add edx, esi
mov eax, dword [eax + edx*4]
cdq
xor eax, edx
sub eax, edx
cmp ebx, eax
jne 0x4af43e
mov eax, dword [ecx + 0x10]
mov edx, dword [esp + 0xc4]
cmp eax, edx
jne 0x4af069
mov eax, dword [ecx + 0x14]
mov ecx, dword [ebp + 0xd4]
lea edx, [eax + eax*2]
shl edx, 4
add ecx, edx
mov edx, dword [ebp + 0xdc]
shl eax, 5
test byte [edx + eax + 4], 1
je 0x4af156
mov esi, dword [ecx + 4]
xor eax, eax
cmp esi, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x4c], esi
jle 0x4af456
mov eax, dword [ecx + 8]
mov ecx, dword [ebp + 0xcc]
lea edx, [ecx + eax*4]
mov dword [esp + 0x28], edx
mov eax, dword [esp + 0x28]
mov eax, dword [eax]
cdq
xor eax, edx
sub eax, edx
cmp eax, edi
je 0x4af12e
mov edx, dword [ebp + 0xc4]
lea ecx, [eax + eax*2]
mov edi, dword [edx + ecx*8 + 8]
lea ebx, [edx + ecx*8]
xor ecx, ecx
test edi, edi
jle 0x4af11e
mov eax, dword [ebx + 0xc]
mov esi, dword [ebp + 0xbc]
lea esi, [esi + eax*4]
mov eax, dword [esi]
cdq
xor eax, edx
sub eax, edx
mov edx, dword [esp + 0x24]
cmp eax, edx
je 0x4af0fe
inc ecx
add esi, 4
cmp ecx, edi
jl 0x4af0e5
jmp 0x4af11e
mov eax, dword [ebx + 4]
test al, 1
jne 0x4af10f
mov dword [esp + 0x1c], 1
jmp 0x4af11e
not al
movsx eax, al
and eax, 4
shr eax, 2
mov dword [esp + 0x1c], eax
mov ebx, dword [esp + 0x24]
cmp ecx, edi
jl 0x4af14a
mov edi, dword [esp + 0x40]
mov esi, dword [esp + 0x4c]
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x28]
inc eax
add edx, 4
cmp eax, esi
mov dword [esp + 0x34], eax
mov dword [esp + 0x28], edx
jl 0x4af0b4
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4af456
mov ecx, dword [ebp + 0xb4]
mov esi, dword [esp + 0x20]
mov edi, dword [ebp + 0xa4]
lea eax, [ecx + ebx*8]
xor ecx, ecx
test esi, esi
setl cl
mov edx, dword [eax + ecx*4]
lea edx, [edx + edx*2]
lea esi, [edi + edx*4]
xor edx, edx
test ecx, ecx
sete dl
mov ecx, dword [esp + 0x30]
mov eax, dword [eax + edx*4]
lea eax, [eax + eax*2]
fld dword [edi + eax*4]
fsub dword [esi]
lea edi, [edi + eax*4]
mov eax, dword [ecx]
lea ecx, [esp + 0x54]
lea edx, [eax + eax*4]
mov eax, dword [ebp + 0xac]
fstp dword [esp + 0x60]
fld dword [edi + 4]
fsub dword [esi + 4]
lea eax, [eax + edx*4]
lea edx, [esp + 0x60]
push ecx
push edx
push eax
fstp dword [esp + 0x70]
fld dword [edi + 8]
fsub dword [esi + 8]
fstp dword [esp + 0x74]
call fcn.0042a730
lea eax, [esp + 0x60]
push eax
call fcn.0042a510
fstp st(0)
fld dword [esi]
fadd dword [edi]
push 0xffffffffffffffff
lea eax, [esp + 0x80]
push 4
push eax
fstp dword [esp + 0x2c]
fld dword [esi + 4]
fadd dword [edi + 4]
fstp dword [esp + 0x30]
fld dword [edi + 8]
fadd dword [esi + 8]
fld dword [esp + 0x2c]
fmul qword [0x4d63d8]
fstp dword [esp + 0x2c]
fld dword [esp + 0x30]
fmul qword [0x4d63d8]
fstp dword [esp + 0x30]
fmul qword [0x4d63d8]
fld dword [esp + 0x70]
fmul dword [0x4d63ac]
fadd dword [esp + 0x2c]
fstp dword [esp + 0x2c]
fld dword [esp + 0x74]
fmul dword [0x4d63ac]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x88], ecx
lea ecx, [esp + 0x2c]
fadd dword [esp + 0x30]
fstp dword [esp + 0x30]
fld dword [esp + 0x78]
fmul dword [0x4d63ac]
mov edx, dword [esp + 0x30]
mov dword [esp + 0x8c], edx
fadd st(1)
fstp dword [esp + 0x34]
fstp st(0)
fld dword [esp + 0x34]
fsub dword [0x4d63b0]
fstp dword [esp + 0x90]
lea edx, [esp + 0xb8]
push ecx
push edx
call fcn.004b0900
mov ecx, 9
mov esi, eax
lea edi, [esp + 0x9c]
add esp, 0x24
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x78]
test eax, eax
jne 0x4af450
lea eax, [esp + 0x80]
push eax
call fcn.004b06c0
mov edi, eax
mov eax, dword [esp + 0xc8]
add esp, 4
cmp edi, eax
je 0x4af450
push edi
push eax
call fcn.004a7990
add esp, 8
test eax, eax
jne 0x4af450
push edi
call fcn.004a78b0
add esp, 4
test eax, eax
jne 0x4af2f9
push edi
call fcn.004a7830
add esp, 4
test eax, eax
je 0x4af450
mov ebp, dword [0x11f4dd8]
mov ecx, edi
shl ecx, 5
mov edx, dword [ebp + 0xdc]
test byte [ecx + edx], 2
jne 0x4af456
call fcn.004a7280
mov esi, eax
test esi, esi
je 0x4af450
mov eax, dword [esp + 0x20]
mov dword [esi], edi
mov dword [esi + 4], 0
mov dword [esi + 8], eax
mov ecx, dword [esp + 0x10]
mov dword [esi + 0xc], ecx
mov edx, dword [esp + 0x14]
mov dword [esi + 0x10], edx
mov eax, dword [esp + 0x18]
mov dword [esi + 0x14], eax
mov ecx, dword [esp + 0x80]
mov dword [esi + 0x18], ecx
mov edx, dword [esp + 0x84]
mov dword [esi + 0x1c], edx
mov eax, dword [esp + 0x88]
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], 7
fld dword [esp + 0x18]
fsub dword [esp + 0x88]
fabs
fmul qword [0x4d7418]
fdiv dword [0x11edac8]
fadd qword [0x4d7410]
call fcn.004c2f40
push edi
mov word [esi + 0x28], ax
call fcn.004a7830
add esp, 4
test eax, eax
jne 0x4af405
push edi
call fcn.004a78f0
add esp, 4
test eax, eax
jne 0x4af405
fld dword [esp + 0x18]
fsub dword [esp + 0x88]
push ecx
fstp dword [esp]
call fcn.004a7780
fcomp dword [0x4d7408]
add esp, 4
fnstsw ax
test ah, 0x41
jne 0x4af3db
add word [esi + 0x28], 0x190
jmp 0x4af405
fld dword [esp + 0x18]
fsub dword [esp + 0x88]
push ecx
fstp dword [esp]
call fcn.004a7780
fcomp dword [0x4d7380]
add esp, 4
fnstsw ax
test ah, 0x41
jne 0x4af405
add word [esi + 0x28], 0x384
mov ecx, dword [0x11eda54]
mov eax, dword [esp + 0xc4]
mov edi, dword [esp + 0x40]
mov edx, dword [ecx + eax*4]
mov dword [esi + 0x2c], edx
mov ecx, dword [0x11eda54]
mov dword [ecx + eax*4], esi
mov eax, dword [0x11edaa4]
mov ebp, dword [0x11f4dd8]
mov ecx, dword [esp + 0x48]
mov esi, dword [esp + 0x44]
inc eax
mov dword [0x11edaa4], eax
mov eax, dword [ecx + 8]
inc esi
cmp esi, eax
mov dword [esp + 0x44], esi
jl 0x4af03d
jmp 0x4af456
mov ebp, dword [0x11f4dd8]
mov esi, dword [esp + 0x50]
mov eax, dword [esp + 0x38]
inc eax
mov ecx, dword [esi + 4]
mov dword [esp + 0x38], eax
cmp eax, ecx
jl 0x4aefea
mov edx, dword [esp + 0x30]
mov edi, dword [esp + 0x2c]
mov eax, dword [edx + 8]
inc edi
cmp edi, eax
mov dword [esp + 0x2c], edi
jl 0x4aefca
mov ebx, dword [esp + 0x3c]
mov ecx, dword [esi + 4]
inc ebx
cmp ebx, ecx
mov dword [esp + 0x3c], ebx
jl 0x4aef8c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xb0
ret