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

Disassembly:
mov eax, dword [0x8364c0]
sub esp, 0x64
test eax, eax
push ebx
push esi
push edi
mov esi, ecx
je 0x4ca6a0
mov edi, dword [esi]
call fcn.005d7ab0
cmp edi, eax
je 0x4ca696
lea esp, [esp]
mov edi, dword [edi]
cmp edi, eax
jne 0x4ca690
mov dword [0x8364c0], 0
mov eax, dword [esi + 0x14]
test eax, eax
mov ecx, dword [0x89e7a0]
je 0x4ca6b8
movsx eax, word [eax + 0x8a]
cmp eax, ecx
je 0x4ca6c4
push ecx
call fcn.005d3b90
add esp, 4
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0x14]
fld dword [0x78758c]
fdiv dword [eax + 0xc0]
mov ecx, dword [eax + 0xb4]
mov edx, ecx
mov dword [esp + 0x38], ecx
mov ecx, dword [eax + 0xac]
mov dword [esp + 0x34], edx
mov edx, dword [eax + 0xb0]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x2c], edx
fst dword [esp + 0x18]
fstp dword [esp + 0x14]
fld dword [0x78e098]
fcomp dword [0x784250]
fnstsw ax
test ah, 0x41
jne 0x4ca726
fld dword [0x78758c]
fdiv dword [0x78e098]
fst dword [esp + 0x18]
fstp dword [esp + 0x14]
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x5c]
push ecx
push 0
push 4
mov ecx, esi
call fcn.004ca630
mov ecx, eax
call fcn.004ac130
fld dword [0x784250]
fdiv dword [esp + 0x38]
mov eax, dword [0x89e7b0]
test eax, eax
mov eax, dword [0x89e7a0]
mov dword [0x8364d0], 0x40a00000
fstp dword [esp + 0x28]
fld dword [esp + 0x58]
fsub dword [esp + 0x24]
fmul dword [esp + 0x28]
fstp dword [esp + 0x1c]
fld dword [0x784250]
fdiv dword [esp + 0x34]
fstp dword [esp + 0x30]
fld dword [esp + 0x2c]
fsub dword [esp + 0x5c]
fmul dword [esp + 0x30]
fstp dword [esp + 0x20]
fld dword [esp + 0x18]
fmul dword [0x784260]
fld dword [esp + 0x1c]
fsub st(1)
fst dword [esp + 0x38]
fld dword [esp + 0x14]
fmul dword [0x784260]
fld dword [esp + 0x20]
fsub st(1)
fstp dword [esp + 0x10]
mov edx, dword [esp + 0x10]
fxch st(2)
fadd dword [esp + 0x1c]
mov dword [0x8364c8], edx
fstp dword [esp + 0x34]
fxch st(1)
fadd dword [esp + 0x20]
fstp dword [esp + 0xc]
fstp dword [0x8364c4]
jne 0x4ca7ee
mov dword [0x8364cc], 0x40a00000
jmp 0x4ca864
mov cl, byte [0x89e7d9]
test cl, cl
jne 0x4ca842
mov ecx, dword [0x890104]
test ecx, ecx
jne 0x4ca842
mov cl, byte [0x89e7e3]
test cl, cl
jne 0x4ca842
mov ecx, dword [0x89010c]
test ecx, ecx
jne 0x4ca842
mov cl, byte [0x89e7e1]
test cl, cl
jne 0x4ca836
mov cl, byte [0x89e7e6]
test cl, cl
jne 0x4ca836
mov dword [0x8364cc], 0x40a00000
jmp 0x4ca864
mov dword [0x8364cc], 0x40d33333
jmp 0x4ca864
cmp eax, 0x104e
jl 0x4ca85a
cmp eax, 0x1053
mov dword [0x8364cc], 0x40a00000
jle 0x4ca864
mov dword [0x8364cc], 0x40533333
push eax
push str.TRACKMAP_d
call fcn.0050b530
push eax
mov eax, dword [esi + 8]
push eax
call fcn.0050c530
mov ecx, dword [esp + 0x48]
mov edi, dword [esi + 8]
mov edx, dword [esp + 0x20]
add esp, 0x10
push 0
lea eax, [esp + 0x5c]
push eax
mov dword [esp + 0x60], ecx
push 5
mov ecx, edi
mov dword [esp + 0x68], edx
call fcn.00517660
mov ecx, dword [edi + 0x1c]
mov edx, dword [esp + 0xc]
mov ebx, 0x400000
or ecx, ebx
mov dword [edi + 0x1c], ecx
mov ecx, dword [esp + 0x34]
mov edi, dword [esi + 8]
push 0
lea eax, [esp + 0x5c]
push eax
mov dword [esp + 0x60], ecx
push 6
mov ecx, edi
mov dword [esp + 0x68], edx
call fcn.00517660
mov eax, dword [edi + 0x1c]
or eax, ebx
lea ecx, [esp + 0x58]
push ecx
lea edx, [esp + 0x54]
mov dword [edi + 0x1c], eax
mov eax, dword [esi + 8]
push edx
push eax
call fcn.0051d2b0
mov eax, dword [esi + 8]
lea ecx, [esp + 0x64]
push ecx
lea edx, [esp + 0x64]
push edx
push eax
call fcn.0051d2b0
mov eax, dword [esi + 8]
lea ecx, [esp + 0x6c]
push ecx
lea edx, [esp + 0x68]
push edx
push eax
call fcn.0051d3c0
mov eax, dword [esi + 8]
lea ecx, [esp + 0x78]
push ecx
lea edx, [esp + 0x70]
push edx
push eax
call fcn.0051d3c0
mov eax, dword [0x89e7b0]
add esp, 0x30
test eax, eax
mov dword [esp + 0xc], 0
jne 0x4ca95c
cmp byte [0x83aa1c], 2
jne 0x4ca98c
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
push ecx
push edx
call fcn.0043e740
movzx eax, ax
mov dword [esp + 0x40], eax
fild dword [esp + 0x40]
jmp 0x4ca97f
cmp byte [0x83aa1b], 2
jne 0x4ca98c
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
push ecx
push edx
call fcn.0043e740
movzx eax, ax
mov dword [esp + 0x40], eax
fild dword [esp + 0x40]
fmul dword [0x784248]
add esp, 8
fstp dword [esp + 0xc]
fld dword [esp + 0xc]
mov ecx, dword [esi + 8]
fchs
fstp dword [esp + 0x38]
mov edi, dword [esp + 0x38]
push edi
push ecx
call fcn.0051cb60
mov edx, dword [esi + 0xc]
push edi
push edx
call fcn.0051cb60
push 0x3f800000
push 0
call fcn.0043e740
mov ecx, dword [esi + 0x10]
movzx eax, ax
mov dword [esp + 0x50], eax
add esp, 0x14
fild dword [esp + 0x3c]
fmul dword [0x784248]
fsub dword [esp + 0x10]
fadd dword [0x78e094]
fstp dword [esp]
push ecx
call fcn.0051cb60
mov edi, dword [esi]
add esp, 8
mov ecx, esi
call fcn.005d7ab0
mov esi, eax
cmp edi, esi
je 0x4cac7a
fld dword [0x784250]
fdiv dword [esp + 0x18]
fstp dword [esp + 0x3c]
fld dword [0x784250]
fdiv dword [esp + 0x14]
fstp dword [esp + 0x40]
fld dword [esp + 0xc]
fmul dword [0x784244]
fst dword [esp + 0x18]
fadd dword [0x784254]
mov ebx, dword [esp + 0x18]
fstp dword [esp + 0x48]
lea edx, [esp + 0x68]
push edx
lea eax, [esp + 0x64]
push eax
mov ecx, edi
call fcn.004ac130
fld dword [esp + 0x60]
fsub dword [esp + 0x24]
push ebx
fmul dword [esp + 0x2c]
fsub dword [esp + 0x20]
fmul dword [esp + 0x40]
fstp dword [esp + 0x38]
fld dword [esp + 0x30]
fsub dword [esp + 0x68]
fmul dword [esp + 0x34]
fsub dword [esp + 0x24]
fmul dword [esp + 0x44]
fstp dword [esp + 0x1c]
call fcn.0043c3b0
mov ecx, dword [esp + 0x4c]
fstp dword [esp + 0x18]
push ecx
call fcn.0043c3b0
fld dword [esp + 0x1c]
fmul dword [esp + 0x20]
mov eax, dword [0x89e7b0]
fld st(1)
mov edx, dword [0x78e090]
fmul dword [esp + 0x3c]
add esp, 8
test eax, eax
mov dword [esp + 0x38], edx
faddp st(1)
fstp dword [esp + 0x10]
fmul dword [esp + 0x18]
fld dword [esp + 0x14]
fmul dword [esp + 0x34]
fsubp st(1)
fst dword [esp + 0x18]
fmul dword [esp + 0x18]
fld dword [esp + 0x10]
fmul dword [esp + 0x10]
faddp st(1)
fsqrt
fstp dword [esp + 0x14]
jne 0x4cab31
mov ecx, 0x838590
call fcn.00500d50
cmp eax, 3
je 0x4cab29
mov ecx, 0x838590
call fcn.00500d50
test eax, eax
je 0x4cab29
mov ecx, 0x838590
call fcn.00500d50
cmp eax, 1
je 0x4cab29
mov ecx, 0x838590
call fcn.00500d50
cmp eax, 2
je 0x4cab29
mov eax, dword [0x862838]
test eax, eax
je 0x4cab29
mov ecx, 0x85b940
call fcn.005012e0
test al, al
je 0x4cab31
mov dword [esp + 0x38], 0x41200000
fld dword [esp + 0x14]
fcomp dword [esp + 0x38]
fnstsw ax
test ah, 5
jp 0x4cac4c
mov ecx, edi
call fcn.004ca500
test al, al
je 0x4cac4c
fld dword [esp + 0x14]
fcomp dword [0x78e08c]
fnstsw ax
test ah, 0x41
jne 0x4cab6e
test byte [edi + 0x18], 1
jne 0x4cac4c
mov eax, dword [edi + 0x18]
shr eax, 1
test al, 1
jne 0x4cac4c
fld dword [esp + 0x14]
fcomp dword [0x78e08c]
fnstsw ax
test ah, 0x41
jne 0x4cabb2
fld dword [0x784250]
fdiv dword [esp + 0x14]
fld dword [esp + 0x10]
fmul st(1)
fmul dword [0x78e08c]
fstp dword [esp + 0x10]
fmul dword [esp + 0x18]
fmul dword [0x78e08c]
jmp 0x4cabb6
fld dword [esp + 0x18]
fld dword [esp + 0x4c]
mov ecx, dword [esp + 0x68]
fmul dword [esp + 0x10]
mov edx, dword [esp + 0x6c]
push ecx
push edx
fadd dword [esp + 0x58]
fstp dword [esp + 0x1c]
fld dword [esp + 0x5c]
fmul st(1)
fadd dword [esp + 0x60]
fstp dword [esp + 0x20]
fstp st(0)
call fcn.0043e740
movzx eax, ax
mov dword [esp + 0x3c], eax
mov eax, dword [edi + 0x1c]
add esp, 8
test eax, eax
fild dword [esp + 0x34]
fmul dword [0x784248]
fsub dword [esp + 0xc]
fstp dword [esp + 0x34]
je 0x4cac0c
mov eax, dword [eax]
jmp 0x4cac0e
xor eax, eax
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push ecx
push edx
push eax
call fcn.0051d160
mov eax, dword [edi + 0x1c]
add esp, 0xc
test eax, eax
je 0x4cac3a
mov ecx, dword [esp + 0x34]
mov eax, dword [eax]
push ecx
push eax
call fcn.0051cb60
add esp, 8
jmp 0x4cac69
mov ecx, dword [esp + 0x34]
xor eax, eax
push ecx
push eax
call fcn.0051cb60
add esp, 8
jmp 0x4cac69
mov eax, dword [edi + 0x1c]
test eax, eax
je 0x4cac57
mov eax, dword [eax]
jmp 0x4cac59
xor eax, eax
push 0x44000000
push 0
push eax
call fcn.0051d160
add esp, 0xc
mov ecx, edi
call fcn.004ac2e0
mov edi, dword [edi]
cmp edi, esi
jne 0x4caa32
pop edi
pop esi
pop ebx
add esp, 0x64
ret