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

Disassembly:
sub esp, 0xf4
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x108]
push edi
call fcn.004a6f90
add esp, 4
test eax, eax
je 0x4aafbf
mov esi, dword [esp + 0x10c]
push esi
call fcn.004a6f90
add esp, 4
test eax, eax
je 0x4aafbf
mov eax, dword [0x11770c0]
mov ecx, eax
mov dword [esp + 0x28], eax
push ecx
call fcn.004a6e70
mov ebp, dword [0x1180458]
lea ebx, [edi + edi*2]
fstp dword [esp + 0x98]
mov eax, dword [ebp + 0xd4]
lea ecx, [esi + esi*2]
shl ebx, 4
add ebx, eax
xor esi, esi
shl ecx, 4
add ecx, eax
mov eax, dword [ebx + 4]
add esp, 4
cmp eax, esi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x80], ecx
mov dword [esp + 0x34], esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x7c], 0xc61c3c00
mov dword [esp + 0x74], 0xc61c3c00
mov dword [esp + 0x30], esi
mov dword [esp + 0x54], esi
mov dword [esp + 0x28], esi
jle 0x4aafbf
mov edx, dword [ebx + 8]
mov eax, dword [ebp + 0xcc]
add edx, esi
mov eax, dword [eax + edx*4]
mov dword [esp + 0x84], eax
cdq
xor eax, edx
sub eax, edx
lea edx, [eax + eax*2]
mov eax, dword [ebp + 0xc4]
lea edi, [eax + edx*8]
mov dword [esp + 0x50], edi
test byte [edi + 4], 2
je 0x4aa6a5
mov edx, dword [ecx + 4]
xor eax, eax
test edx, edx
mov dword [esp + 0x3c], eax
jle 0x4aa6a5
mov edx, dword [ecx + 8]
add edx, eax
mov eax, dword [ebp + 0xcc]
mov eax, dword [eax + edx*4]
mov dword [esp + 0x48], eax
cdq
xor eax, edx
sub eax, edx
lea edx, [eax + eax*2]
mov eax, dword [ebp + 0xc4]
lea esi, [eax + edx*8]
mov al, byte [eax + edx*8 + 4]
test al, 2
je 0x4aa689
mov edx, dword [edi + 8]
xor eax, eax
test edx, edx
mov dword [esp + 0x70], eax
jle 0x4aa689
jmp 0x4aa5a2
mov ebp, dword [0x1180458]
mov edx, dword [edi + 0xc]
mov ecx, dword [ebp + 0xbc]
mov edi, dword [esi + 8]
add edx, eax
test edi, edi
mov ebx, dword [ecx + edx*4]
mov dword [esp + 0x4c], 0
jle 0x4aa655
mov eax, ebx
cdq
mov ebp, eax
mov eax, dword [esi + 0xc]
xor ebp, edx
sub ebp, edx
lea ecx, [ecx + eax*4]
mov eax, dword [ecx]
cdq
xor eax, edx
sub eax, edx
cmp ebp, eax
je 0x4aa5ef
mov eax, dword [esp + 0x4c]
add ecx, 4
inc eax
cmp eax, edi
mov dword [esp + 0x4c], eax
jl 0x4aa5d2
jmp 0x4aa655
mov edi, dword [esp + 0x50]
push edi
call fcn.004a69f0
fstp dword [esp + 0x7c]
push esi
call fcn.004a69f0
fld dword [esp + 0x80]
fcomp dword [esp + 0x84]
add esp, 8
fnstsw ax
test ah, 0x41
jne 0x4aa653
fcom dword [esp + 0x74]
fnstsw ax
test ah, 0x41
jne 0x4aa653
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x84]
mov eax, dword [esp + 0x48]
mov dword [esp + 0x7c], ecx
fstp dword [esp + 0x74]
mov dword [esp + 0x34], edi
mov dword [esp + 0x44], esi
mov dword [esp + 0x38], edx
mov dword [esp + 0x40], eax
mov dword [esp + 0x30], ebx
jmp 0x4aa655
fstp st(0)
mov ecx, dword [esp + 0x4c]
mov eax, dword [esi + 8]
cmp ecx, eax
jne 0x4aa8ac
mov edi, dword [esp + 0x50]
mov eax, dword [esp + 0x70]
inc eax
mov ecx, dword [edi + 8]
mov dword [esp + 0x70], eax
cmp eax, ecx
jl 0x4aa59c
mov ebp, dword [0x1180458]
mov ecx, dword [esp + 0x80]
mov eax, dword [esp + 0x3c]
mov edx, dword [ecx + 4]
inc eax
cmp eax, edx
mov dword [esp + 0x3c], eax
jl 0x4aa55a
mov esi, dword [esp + 0x28]
mov ebx, dword [esp + 0x2c]
mov eax, dword [ebx + 4]
inc esi
cmp esi, eax
mov dword [esp + 0x28], esi
jl 0x4aa515
mov eax, dword [esp + 0x34]
test eax, eax
je 0x4aafbf
mov eax, dword [esp + 0x44]
test eax, eax
je 0x4aafbf
mov eax, dword [esp + 0x30]
mov edi, dword [ebp + 0xa4]
cdq
mov esi, eax
mov eax, dword [esp + 0x30]
xor esi, edx
sub esi, edx
mov edx, dword [ebp + 0xb4]
lea ecx, [edx + esi*8]
xor edx, edx
test eax, eax
setl dl
mov eax, dword [ecx + edx*4]
lea eax, [eax + eax*2]
fld dword [edi + eax*4]
mov ebx, dword [edi + eax*4 + 4]
lea eax, [edi + eax*4]
mov dword [esp + 0x5c], ebx
mov ebx, dword [esp + 0x38]
mov eax, dword [eax + 8]
mov dword [esp + 0x60], eax
xor eax, eax
test edx, edx
sete al
mov ecx, dword [ecx + eax*4]
lea ecx, [ecx + ecx*2]
fld dword [edi + ecx*4]
mov edx, dword [edi + ecx*4 + 4]
lea eax, [edi + ecx*4]
fld st(0)
mov eax, dword [eax + 8]
mov dword [esp + 0x68], edx
fadd st(2)
fld dword [esp + 0x68]
fadd dword [esp + 0x5c]
mov dword [esp + 0x6c], eax
mov eax, dword [ebp + 0xac]
mov ebp, dword [esp + 0x40]
fstp dword [esp + 0x20]
fld dword [esp + 0x6c]
fadd dword [esp + 0x60]
fstp dword [esp + 0x24]
fmul qword [0x4d73c0]
fst dword [esp + 0x1c]
fld dword [esp + 0x20]
fmul qword [0x4d73c0]
fstp dword [esp + 0x20]
fld dword [esp + 0x24]
fmul qword [0x4d73c0]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x14], ecx
xor ecx, ecx
test ebx, ebx
fstp dword [esp + 0x24]
mov edx, dword [esp + 0x24]
fstp dword [esp + 0x10]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x34]
fsub st(1)
mov edi, dword [edx]
mov edx, dword [esp + 0x44]
setl cl
mov ebx, dword [edx]
xor ecx, edi
fstp dword [esp + 0xb0]
lea ecx, [ecx + ecx*4]
lea edx, [esp + 0xa4]
fstp st(0)
fld dword [esp + 0x68]
fsub dword [esp + 0x5c]
lea edi, [eax + ecx*4]
xor ecx, ecx
test ebp, ebp
setl cl
fstp dword [esp + 0xb4]
fld dword [esp + 0x6c]
fsub dword [esp + 0x60]
xor ecx, ebx
lea ecx, [ecx + ecx*4]
fstp dword [esp + 0xb8]
lea ebx, [eax + ecx*4]
lea eax, [esp + 0xb0]
push edx
push eax
push edi
call fcn.00428590
lea ecx, [esp + 0xb0]
push ecx
call fcn.00428370
fstp st(0)
fld dword [esp + 0xb4]
fmul dword [0x4d7388]
fld dword [esp + 0x2c]
add esp, 0x10
fsub st(1)
fstp dword [esp + 0x1c]
fld dword [esp + 0xa8]
fmul dword [0x4d7388]
fstp dword [esp + 0x28]
fld dword [esp + 0x20]
fsub dword [esp + 0x28]
fstp dword [esp + 0x20]
fld dword [esp + 0xac]
fmul dword [0x4d7388]
fstp dword [esp + 0x3c]
fld dword [esp + 0x24]
fsub dword [esp + 0x3c]
fstp dword [esp + 0x24]
fld dword [esp + 0x10]
fadd st(1)
fstp dword [esp + 0x10]
fstp st(0)
fld dword [esp + 0x14]
fadd dword [esp + 0x28]
fstp dword [esp + 0x14]
fld dword [esp + 0x18]
fadd dword [esp + 0x3c]
fstp dword [esp + 0x18]
fld dword [edi + 8]
call fcn.004c2730
cdq
xor eax, edx
sub eax, edx
mov dword [esp + 0x2c], eax
fild dword [esp + 0x2c]
fcomp qword [0x4d73e0]
fnstsw ax
test ah, 1
je 0x4aa8c2
mov ebp, 1
jmp 0x4aa8c4
mov ebp, dword [0x1180458]
mov ecx, dword [esp + 0x80]
mov edi, dword [esp + 0x50]
jmp 0x4aa689
xor ebp, ebp
fld dword [ebx + 8]
call fcn.004c2730
cdq
xor eax, edx
sub eax, edx
mov dword [esp + 0x2c], eax
fild dword [esp + 0x2c]
fcomp qword [0x4d73e0]
fnstsw ax
test ah, 1
je 0x4aa8ed
mov eax, 1
jmp 0x4aa8ef
xor eax, eax
test ebp, ebp
je 0x4aafbf
test eax, eax
je 0x4aaa8e
fld dword [ebx + 8]
fmul dword [edi + 8]
fld dword [ebx + 4]
fmul dword [edi + 4]
faddp st(1)
fld dword [ebx]
fmul dword [edi]
faddp st(1)
fcomp qword [0x4d7f50]
fnstsw ax
test ah, 0x41
jne 0x4aaa8e
fld dword [esp + 0xb8]
call fcn.004c2730
cdq
xor eax, edx
sub eax, edx
mov dword [esp + 0x2c], eax
fild dword [esp + 0x2c]
fcomp qword [0x4d7f50]
fnstsw ax
test ah, 1
je 0x4aaa8e
call fcn.004a6940
test eax, eax
je 0x4aafbf
mov edx, dword [esp + 0x10c]
mov ecx, dword [esp + 0x38]
mov dword [eax], edx
mov edx, dword [esp + 0x1c]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x20]
mov dword [eax + 0xc], edx
mov edx, dword [esp + 0x24]
mov dword [eax + 8], esi
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], edx
mov ecx, dword [esp + 0x108]
fld dword [edi]
fmul dword [0x4d78b0]
mov ebp, 6
fsubr dword [esp + 0x10]
fstp dword [eax + 0x18]
fld dword [edi + 4]
fmul dword [0x4d78b0]
fsubr dword [esp + 0x14]
fstp dword [eax + 0x1c]
fld dword [edi + 8]
fmul dword [0x4d78b0]
mov edi, 0xa
mov dword [eax + 0x24], ebp
mov word [eax + 0x28], di
fsubr dword [esp + 0x18]
fstp dword [eax + 0x20]
mov edx, dword [0x1177014]
mov edx, dword [edx + ecx*4]
mov dword [eax + 0x2c], edx
mov edx, dword [0x1177014]
mov dword [edx + ecx*4], eax
mov edx, dword [0x1177018]
inc edx
mov dword [0x1177018], edx
call fcn.004a6940
test eax, eax
je 0x4aafbf
mov ecx, dword [esp + 0x108]
mov edx, dword [esp + 0x40]
mov dword [eax], ecx
mov ecx, dword [esp + 0x10]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x14]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x18]
mov dword [eax + 8], esi
mov dword [eax + 0x10], edx
mov dword [eax + 0x14], ecx
mov ecx, dword [esp + 0x10c]
fld dword [ebx]
fmul dword [0x4d78b0]
fsubr dword [esp + 0x1c]
fstp dword [eax + 0x18]
fld dword [ebx + 4]
fmul dword [0x4d78b0]
fsubr dword [esp + 0x20]
fstp dword [eax + 0x1c]
fld dword [ebx + 8]
fmul dword [0x4d78b0]
mov dword [eax + 0x24], ebp
mov word [eax + 0x28], di
pop edi
pop esi
fsubr dword [esp + 0x1c]
pop ebp
pop ebx
fstp dword [eax + 0x20]
mov edx, dword [0x1177014]
mov edx, dword [edx + ecx*4]
mov dword [eax + 0x2c], edx
mov edx, dword [0x1177014]
mov dword [edx + ecx*4], eax
mov eax, dword [0x1177018]
inc eax
mov dword [0x1177018], eax
mov eax, 1
add esp, 0xf4
ret
mov eax, dword [esp + 0x44]
test byte [eax + 4], 4
je 0x4aabd2
call fcn.004a6940
test eax, eax
je 0x4aafbf
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x1c]
fld dword [esp + 0x18]
fadd dword [0x4d7398]
mov ebp, dword [esp + 0x10c]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x20]
mov dword [eax + 0xc], edx
mov edx, dword [esp + 0x24]
mov dword [eax + 0x10], ecx
mov ecx, dword [esp + 0x10]
mov dword [eax + 0x14], edx
mov edx, dword [esp + 0x14]
mov dword [eax], ebp
fst dword [eax + 0x20]
mov dword [eax + 8], esi
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], edx
mov ebx, dword [esp + 0x108]
fld dword [edi]
fmul dword [0x4d8438]
fsubr dword [esp + 0x10]
fstp dword [eax + 0x18]
fld dword [edi + 4]
fmul dword [0x4d8438]
fsubr dword [esp + 0x14]
fstp dword [eax + 0x1c]
fld dword [edi + 8]
fmul dword [0x4d8438]
mov edi, 0xa
mov dword [eax + 0x24], 6
mov word [eax + 0x28], di
fsubr st(1)
fstp dword [eax + 0x20]
mov ecx, dword [0x1177014]
fstp st(0)
mov edx, dword [ecx + ebx*4]
mov dword [eax + 0x2c], edx
mov ecx, dword [0x1177014]
mov dword [ecx + ebx*4], eax
mov edx, dword [0x1177018]
inc edx
mov dword [0x1177018], edx
call fcn.004a6940
test eax, eax
je 0x4aafbf
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x10]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x14]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x18]
mov dword [eax + 0x10], edx
mov edx, dword [esp + 0x1c]
mov dword [eax + 0x14], ecx
mov ecx, dword [esp + 0x20]
mov dword [eax + 0x18], edx
mov edx, dword [esp + 0x24]
mov dword [eax], ebx
mov dword [eax + 8], esi
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x20], edx
mov dword [eax + 0x24], 7
mov word [eax + 0x28], di
mov ecx, dword [0x1177014]
pop edi
pop esi
mov edx, dword [ecx + ebp*4]
mov dword [eax + 0x2c], edx
mov ecx, dword [0x1177014]
mov dword [ecx + ebp*4], eax
mov eax, dword [0x1177064]
inc eax
pop ebp
mov dword [0x1177064], eax
mov eax, 1
pop ebx
add esp, 0xf4
ret
mov edx, dword [esp + 0x34]
mov ebp, dword [0x1180458]
mov dword [esp + 0x18], 0x47c34f80
mov eax, dword [edx + 8]
test eax, eax
jle 0x4aacc1
mov esi, dword [ebp + 0xb4]
mov edi, dword [ebp + 0xa4]
mov ecx, edx
mov dword [esp + 0x28], eax
mov edx, dword [ecx + 0xc]
mov ecx, dword [ebp + 0xbc]
lea ebx, [ecx + edx*4]
mov eax, dword [ebx]
cdq
mov ecx, eax
xor ecx, edx
sub ecx, edx
mov eax, dword [esi + ecx*8]
lea edx, [eax + eax*2]
fld dword [edi + edx*4]
lea eax, [edi + edx*4]
mov edx, dword [edi + edx*4 + 4]
mov eax, dword [eax + 8]
mov dword [esp + 0x60], eax
mov eax, dword [esi + ecx*8 + 4]
mov dword [esp + 0x5c], edx
lea edx, [eax + eax*2]
fld dword [edi + edx*4]
lea eax, [edi + edx*4]
faddp st(1)
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esp + 0x68], edx
mov dword [esp + 0x6c], eax
fld dword [esp + 0x68]
fadd dword [esp + 0x5c]
fstp dword [esp + 0x20]
fld dword [esp + 0x6c]
fadd dword [esp + 0x60]
fstp dword [esp + 0x24]
fmul qword [0x4d73c0]
fld dword [esp + 0x20]
fmul qword [0x4d73c0]
fstp dword [esp + 0x20]
fld dword [esp + 0x24]
fmul qword [0x4d73c0]
fst dword [esp + 0x24]
fcomp dword [esp + 0x18]
fnstsw ax
test ah, 1
je 0x4aacad
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
fstp dword [esp + 0x10]
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x54], ecx
jmp 0x4aacaf
fstp st(0)
mov eax, dword [esp + 0x28]
add ebx, 4
dec eax
mov dword [esp + 0x28], eax
jne 0x4aac0d
mov ecx, dword [esp + 0x34]
push 0xffffffffffffffff
push 2
mov eax, dword [ecx]
lea edx, [eax + eax*4]
mov eax, dword [ebp + 0xac]
fld dword [eax + edx*4]
fmul dword [0x4d7934]
lea ebx, [eax + edx*4]
lea edx, [esp + 0x90]
lea eax, [esp + 0xa0]
push edx
fadd dword [esp + 0x1c]
push eax
fst dword [esp + 0xa8]
fld dword [ebx + 4]
fmul dword [0x4d7934]
fadd dword [esp + 0x24]
fstp dword [esp + 0xac]
fld dword [ebx + 8]
fmul dword [0x4d7934]
mov ecx, dword [esp + 0xac]
mov dword [esp + 0x9c], ecx
lea ecx, [esp + 0xf0]
fadd dword [esp + 0x28]
fxch st(1)
fstp dword [esp + 0x98]
push ecx
fst dword [esp + 0xa4]
fadd dword [0x4d7934]
fstp dword [esp + 0xb4]
fld dword [esp + 0xa4]
fsub dword [0x4d77c0]
fstp dword [esp + 0xa4]
call fcn.004affd0
mov ecx, 9
mov esi, eax
lea edi, [esp + 0xd0]
lea edx, [esp + 0xd8]
rep movsd dword es:[edi], dword [esi]
fld dword [esp + 0xe0]
fadd dword [0x4d7390]
fstp dword [esp + 0xe0]
push edx
call fcn.004afd90
mov ecx, dword [0x1180458]
mov esi, eax
add esp, 0x18
xor ebp, ebp
mov eax, dword [ecx + 0xd4]
lea edx, [esi + esi*2]
shl edx, 4
add eax, edx
mov edi, dword [eax + 4]
test edi, edi
jle 0x4aae37
mov edx, dword [ecx + 0xc4]
mov eax, dword [eax + 8]
mov dword [esp + 0x2c], edx
mov edx, dword [ecx + 0xcc]
lea eax, [edx + eax*4]
mov dword [esp + 0x30], eax
mov edx, dword [esp + 0x30]
mov eax, dword [edx]
cdq
xor eax, edx
sub eax, edx
mov edx, dword [esp + 0x2c]
lea eax, [eax + eax*2]
lea eax, [edx + eax*8]
test byte [eax + 4], 2
je 0x4aae27
mov eax, dword [eax]
mov ecx, dword [ecx + 0xac]
lea eax, [eax + eax*4]
fld dword [ecx + eax*4 + 8]
lea eax, [ecx + eax*4]
call fcn.004c2730
cdq
xor eax, edx
sub eax, edx
mov dword [esp + 0x48], eax
fild dword [esp + 0x48]
fcomp qword [0x4d73e0]
fnstsw ax
test ah, 1
jne 0x4aae37
mov ecx, dword [0x1180458]
mov edx, dword [esp + 0x30]
inc ebp
add edx, 4
cmp ebp, edi
mov dword [esp + 0x30], edx
jl 0x4aadd5
cmp ebp, edi
jl 0x4aafbf
mov ebp, dword [esp + 0x108]
cmp esi, ebp
je 0x4aafbf
push esi
push ebp
call fcn.004a7050
add esp, 8
test eax, eax
jne 0x4aafbf
push ebp
push esi
call fcn.004a7050
add esp, 8
test eax, eax
jne 0x4aafbf
fld dword [esp + 0xa0]
fsub dword [esp + 0xcc]
fcomp dword [esp + 0x94]
fnstsw ax
test ah, 1
je 0x4aafbf
call fcn.004a6940
test eax, eax
je 0x4aafbf
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x54]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x10]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x14]
mov dword [eax + 0xc], edx
mov edx, dword [esp + 0x18]
mov dword [eax], esi
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], edx
mov ecx, dword [esp + 0xc4]
mov dword [eax + 0x18], ecx
mov edx, dword [esp + 0xc8]
mov dword [eax + 0x1c], edx
mov ecx, dword [esp + 0xcc]
mov edi, 0xa
mov dword [eax + 0x20], ecx
mov dword [eax + 0x24], 6
mov word [eax + 0x28], di
mov edx, dword [0x1177014]
mov ecx, dword [edx + ebp*4]
mov dword [eax + 0x2c], ecx
mov edx, dword [0x1177014]
mov dword [edx + ebp*4], eax
mov edx, dword [0x1177018]
inc edx
mov dword [0x1177018], edx
call fcn.004a6940
test eax, eax
je 0x4aafbf
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x54]
mov dword [eax], ebp
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov ecx, dword [esp + 0xc4]
mov dword [eax + 0xc], ecx
mov edx, dword [esp + 0xc8]
mov dword [eax + 0x10], edx
mov ecx, dword [esp + 0xcc]
mov dword [eax + 0x14], ecx
fld dword [ebx]
fmul dword [0x4d7934]
fsubr dword [esp + 0x10]
fstp dword [eax + 0x18]
fld dword [ebx + 4]
fmul dword [0x4d7934]
fsubr dword [esp + 0x14]
fstp dword [eax + 0x1c]
fld dword [ebx + 8]
fmul dword [0x4d7934]
mov dword [eax + 0x24], 5
mov word [eax + 0x28], di
pop edi
fsubr dword [esp + 0x14]
fadd dword [0x4d83a8]
fstp dword [eax + 0x20]
mov edx, dword [0x1177014]
mov ecx, dword [edx + esi*4]
mov dword [eax + 0x2c], ecx
mov edx, dword [0x1177014]
mov dword [edx + esi*4], eax
mov eax, dword [0x1177030]
inc eax
pop esi
mov dword [0x1177030], eax
pop ebp
mov eax, 1
pop ebx
add esp, 0xf4
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xf4
ret