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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1ec
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 4]
shr eax, 1
mov edx, eax
shl edx, 4
sub edx, eax
mov eax, dword [ecx]
mov ecx, dword [ebx + 0x248]
cmp ecx, 1
push esi
push edi
lea edi, [eax + edx*8 - 0x78]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], edi
je 0x4a40aa
cmp byte [ebx + 0x350], 0
fld1
fldz
je 0x4a38d5
fld dword [edi + 0x34]
fstp dword [esp + 0xc]
mov eax, dword [esp + 0xc]
fxch st(1)
fst dword [esp + 0x10]
sub eax, dword [esp + 0x10]
cdq
xor eax, edx
sub eax, edx
cmp eax, 8
jae 0x4a38d1
fld dword [edi + 0x38]
fstp dword [esp + 0xc]
mov eax, dword [esp + 0xc]
fxch st(1)
fst dword [esp + 0x10]
sub eax, dword [esp + 0x10]
cdq
xor eax, edx
sub eax, edx
cmp eax, 8
jae 0x4a38d5
fld dword [edi + 0x40]
fstp dword [esp + 0xc]
mov eax, dword [esp + 0xc]
fst dword [esp + 0x10]
sub eax, dword [esp + 0x10]
cdq
xor eax, edx
sub eax, edx
cmp eax, 8
jae 0x4a38d5
fld dword [edi + 0x44]
fstp dword [esp + 0xc]
mov eax, dword [esp + 0xc]
fxch st(1)
fstp dword [esp + 0x10]
sub eax, dword [esp + 0x10]
cdq
xor eax, edx
sub eax, edx
cmp eax, 8
jae 0x4a38d7
fld dword [edi + 0x4c]
fstp dword [esp + 0xc]
mov eax, dword [esp + 0xc]
fst dword [esp + 0x10]
sub eax, dword [esp + 0x10]
cdq
xor eax, edx
sub eax, edx
cmp eax, 8
jae 0x4a38d7
fld dword [edi + 0x50]
fstp dword [esp + 0xc]
mov eax, dword [esp + 0xc]
fstp dword [esp + 0x10]
sub eax, dword [esp + 0x10]
cdq
xor eax, edx
sub eax, edx
cmp eax, 8
jae 0x4a38d9
mov byte [esp + 0x17], 1
jmp 0x4a38de
fstp st(1)
jmp 0x4a38d7
fstp st(0)
fstp st(0)
mov byte [esp + 0x17], 0
mov eax, dword [edi + 0x5c]
imul eax, ecx
shr eax, 8
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 0x34c]
test eax, eax
je 0x4a3939
lea esi, [edi + 0x34]
call fcn.004bb050
test al, al
jne 0x4a3939
mov eax, dword [ebx + 0x34c]
mov ecx, dword [esp + 0x10]
mov dword [eax + 8], ecx
mov edx, dword [edi + 0x60]
mov ecx, dword [edi + 0x64]
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov edx, dword [edi + 0x68]
mov dword [eax + 4], ecx
mov ecx, dword [edi + 0x6c]
mov dword [eax + 8], edx
mov edx, dword [edi + 0x70]
mov dword [eax + 0xc], ecx
mov eax, dword [ebx + 0x34c]
push edx
call fcn.004ce240
cmp byte [ebx + 0x351], 0
jne 0x4a3b43
cmp byte [esp + 0x17], 0
je 0x4a3b43
push 0
push 0
xor ecx, ecx
lea esi, [esp + 0x38]
call fcn.00479300
cmp dword [ebx + 0x264], 0
je 0x4a39e5
mov eax, dword [ebx + 0x278]
sub eax, dword [ebx + 0x270]
mov ecx, dword [ebx + 0x274]
sub ecx, dword [ebx + 0x26c]
push eax
push ecx
lea eax, [esp + 0xc0]
call fcn.004a14e0
mov ecx, dword [ebx + 0x280]
test ecx, ecx
je 0x4a39a8
mov edx, dword [ecx]
mov edx, dword [edx]
lea eax, [esp + 0xb8]
push eax
push ebx
call edx
mov ecx, dword [ebx + 0x264]
mov eax, dword [ecx]
mov eax, dword [eax]
lea edx, [esp + 0xb8]
push edx
call eax
cmp eax, 0xffffffff
lea eax, [esp + 0x120]
jne 0x4a39ce
lea eax, [ebx + 0x324]
lea ebx, [esp + 0x30]
call fcn.00479500
lea esi, [esp + 0xb8]
call fcn.004a2ec0
jmp 0x4a3a22
cmp dword [ebx + 0x2b4], 0
jbe 0x4a3a13
lea edx, [ebx + 0x288]
xor ecx, ecx
lea eax, [esp + 0x58]
call fcn.004b3150
lea ebx, [esp + 0x30]
call fcn.00479500
lea eax, [esp + 0x58]
call fcn.00479430
jmp 0x4a3a22
lea eax, [ebx + 0x324]
lea ebx, [esp + 0x30]
call fcn.00479500
mov eax, edi
fld dword [eax + 0x3c]
fstp dword [esp + 0x20]
fld dword [eax + 0x48]
fstp dword [esp + 0x24]
fld dword [esp + 0x20]
fld qword [0x6c0d40]
fsub st(1), st(0)
fxch st(1)
fstp dword [esp + 0x20]
fsubr dword [esp + 0x24]
fstp dword [esp + 0x24]
fld dword [esp + 0x24]
fistp dword [esp + 0x18]
mov ecx, dword [esp + 0x18]
fld dword [esp + 0x20]
fistp dword [esp + 0xc]
mov edx, dword [esp + 0xc]
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0x1c]
cmp byte [ecx + 0x20a], 0
mov dword [esp + 0x48], edx
jne 0x4a3abc
cmp dword [esp + 0x10], 0x100
jne 0x4a3b02
mov edx, dword [eax + 0x60]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 0x64]
mov dword [ecx + 4], edx
mov edx, dword [eax + 0x68]
mov dword [ecx + 8], edx
mov edx, dword [eax + 0x6c]
mov eax, dword [eax + 0x70]
push eax
lea edi, [esp + 0x44]
mov dword [ecx + 0xc], edx
call fcn.0047aa80
mov eax, edi
call fcn.00479430
mov ebx, dword [esp + 0x1c]
jmp 0x4a4080
cmp dword [esp + 0x10], 0x100
jne 0x4a3b02
mov edx, dword [eax + 0x60]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 0x64]
mov dword [ecx + 4], edx
mov edx, dword [eax + 0x68]
mov dword [ecx + 8], edx
mov edx, dword [eax + 0x6c]
mov dword [ecx + 0xc], edx
mov edx, dword [eax + 0x70]
lea ecx, [esp + 0x40]
push ecx
push edx
call fcn.0047aea0
lea eax, [esp + 0x30]
call fcn.00479430
mov ebx, dword [esp + 0x1c]
jmp 0x4a4080
mov edx, dword [eax + 0x60]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 0x64]
mov dword [ecx + 4], edx
mov edx, dword [eax + 0x68]
mov dword [ecx + 8], edx
mov edx, dword [eax + 0x6c]
mov eax, dword [eax + 0x70]
mov dword [ecx + 0xc], edx
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x40]
push ecx
push edx
push eax
call fcn.0047b120
lea eax, [esp + 0x30]
call fcn.00479430
mov ebx, dword [esp + 0x1c]
jmp 0x4a4080
lea esi, [edi + 0xc]
mov ecx, 0xa
lea edi, [esp + 0x80]
rep movsd dword es:[edi], dword [esi]
push 0
push 0
xor ecx, ecx
lea esi, [esp + 0x38]
call fcn.00479300
cmp dword [ebx + 0x264], 0
je 0x4a3f3f
cmp dword [ebx + 0x284], 2
jne 0x4a3c27
lea esi, [esp + 0x80]
lea edi, [esp + 0x20]
call fcn.004bab10
mov ecx, dword [esp + 0x2c]
sub ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
sub edx, dword [esp + 0x20]
push ecx
push edx
lea eax, [esp + 0xc0]
call fcn.004a14e0
mov ecx, dword [ebx + 0x280]
test ecx, ecx
je 0x4a3bc4
mov eax, dword [ecx]
mov eax, dword [eax]
lea edx, [esp + 0xb8]
push edx
push ebx
call eax
mov ecx, dword [ebx + 0x264]
mov edx, dword [ecx]
mov edx, dword [edx]
lea eax, [esp + 0xb8]
push eax
call edx
cmp eax, 0xffffffff
je 0x4a3c1b
cmp eax, 0xf4242
jne 0x4a3c07
lea esi, [esp + 0xb8]
call fcn.004a2ec0
lea eax, [esp + 0x30]
call fcn.00479430
mov eax, 0xf4242
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea eax, [esp + 0x120]
lea ebx, [esp + 0x30]
call fcn.00479500
mov ebx, dword [esp + 0x1c]
lea esi, [esp + 0xb8]
call fcn.004a2ec0
cmp dword [ebx + 0x284], 1
jne 0x4a3e74
lea edi, [esp + 0xb8]
call fcn.004a1460
mov ecx, dword [ebx + 0x280]
test ecx, ecx
mov dword [esp + 0xb8], 0
mov dword [esp + 0xbc], 0xffffffff
je 0x4a3c6a
mov eax, dword [ecx]
mov eax, dword [eax]
mov edx, edi
push edx
push ebx
call eax
mov ecx, dword [ebx + 0x264]
mov edx, dword [ecx]
mov edx, dword [edx]
lea eax, [esp + 0xb8]
push eax
call edx
lea esi, [esp + 0x80]
lea edi, [esp + 0x20]
call fcn.004ba990
mov eax, dword [ebx + 0x190]
sub eax, dword [ebx + 0x188]
mov ecx, dword [ebx + 0x194]
sub ecx, dword [ebx + 0x18c]
mov edx, dword [esp + 0x118]
test edx, edx
mov dword [esp + 0xc], eax
fild dword [esp + 0xc]
mov dword [esp + 0xc], ecx
fmul dword [esp + 0x28]
fstp dword [esp + 0x28]
fild dword [esp + 0xc]
fmul dword [esp + 0x2c]
fstp dword [esp + 0x2c]
fldz
fst dword [esp + 0xa8]
fst dword [esp + 0xac]
fild dword [esp + 0x118]
jge 0x4a3cee
fadd dword [0x6c0a38]
mov eax, dword [esp + 0x11c]
fstp dword [esp + 0xb0]
test eax, eax
fild dword [esp + 0x11c]
jge 0x4a3d0d
fadd dword [0x6c0a38]
fstp dword [esp + 0xb4]
lea ecx, [esp + 0x20]
fld1
push ecx
fst dword [esp + 0x5c]
lea ebx, [esp + 0x5c]
fst dword [esp + 0x6c]
lea ecx, [esp + 0xac]
fstp dword [esp + 0x7c]
lea edx, [esp + 0x1ec]
mov byte [esp + 0x80], 1
fst dword [esp + 0x60]
fst dword [esp + 0x64]
fst dword [esp + 0x68]
fst dword [esp + 0x70]
fst dword [esp + 0x74]
fstp dword [esp + 0x78]
call fcn.004a2be0
add esp, 4
mov ecx, ebx
lea eax, [esp + 0x80]
call fcn.004baf00
lea edi, [esp + 0x150]
call fcn.004a1460
fld dword [0x6a1e40]
mov edx, dword [ebp + 8]
cmp byte [edx + 8], 0
mov ecx, 0xa
lea esi, [esp + 0x80]
lea edi, [esp + 0x180]
mov dword [esp + 0x150], 2
rep movsd dword es:[edi], dword [esi]
fstp dword [esp + 0x168]
mov dword [esp + 0x154], 0xffffffff
je 0x4a3dc7
mov dword [esp + 0x170], 0x80
mov esi, dword [esp + 0x1c]
mov ecx, dword [esi + 0x280]
test ecx, ecx
je 0x4a3de4
mov eax, dword [ecx]
mov eax, dword [eax]
lea edx, [esp + 0x150]
push edx
push esi
call eax
mov ecx, dword [esi + 0x264]
mov edx, dword [ecx]
mov edx, dword [edx]
lea eax, [esp + 0x150]
push eax
call edx
cmp eax, 0xffffffff
je 0x4a3e43
cmp eax, 0xf4242
jne 0x4a3e33
lea esi, [esp + 0x150]
call fcn.004a2ec0
lea esi, [esp + 0xb8]
call fcn.004a2ec0
lea eax, [esp + 0x30]
call fcn.00479430
mov eax, 0xf4242
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea eax, [esp + 0x1b8]
lea ebx, [esp + 0x30]
call fcn.00479500
mov ecx, 0xa
lea esi, [esp + 0x180]
lea edi, [esp + 0x80]
rep movsd dword es:[edi], dword [esi]
lea esi, [esp + 0x150]
call fcn.004a2ec0
lea esi, [esp + 0xb8]
call fcn.004a2ec0
mov ebx, dword [esp + 0x1c]
mov eax, dword [ebx + 0x188]
cmp eax, dword [ebx + 0x190]
jge 0x4a3e94
mov ecx, dword [ebx + 0x18c]
cmp ecx, dword [ebx + 0x194]
jl 0x4a3f90
lea edi, [esp + 0xb8]
call fcn.004a1460
mov edx, dword [ebp + 8]
cmp byte [edx + 8], 0
mov ecx, 0xa
lea esi, [esp + 0x80]
lea edi, [esp + 0xe8]
mov dword [esp + 0xb8], 2
rep movsd dword es:[edi], dword [esi]
je 0x4a3ed4
mov dword [esp + 0xd8], 0x80
mov ecx, dword [ebx + 0x280]
test ecx, ecx
je 0x4a3eed
mov eax, dword [ecx]
mov eax, dword [eax]
lea edx, [esp + 0xb8]
push edx
push ebx
call eax
mov ecx, dword [ebx + 0x264]
mov edx, dword [ecx]
mov edx, dword [edx]
lea eax, [esp + 0xb8]
push eax
call edx
cmp eax, 0xffffffff
lea eax, [esp + 0x120]
jne 0x4a3f13
lea eax, [ebx + 0x324]
lea ebx, [esp + 0x30]
call fcn.00479500
mov ecx, 0xa
lea esi, [esp + 0xe8]
lea edi, [esp + 0x80]
rep movsd dword es:[edi], dword [esi]
lea esi, [esp + 0xb8]
call fcn.004a2ec0
jmp 0x4a3f8c
cmp dword [ebx + 0x2b4], 0
jbe 0x4a3f7d
fld dword [0x6a1e40]
push ecx
add ebx, 0x288
fstp dword [esp]
push ebx
lea ebx, [esp + 0x88]
lea eax, [esp + 0x60]
call fcn.004b31d0
lea ebx, [esp + 0x30]
call fcn.00479500
lea eax, [esp + 0x58]
call fcn.00479430
jmp 0x4a3f8c
lea eax, [ebx + 0x324]
lea ebx, [esp + 0x30]
call fcn.00479500
mov ebx, dword [esp + 0x1c]
cmp dword [ebx + 0x264], 0
je 0x4a3fbd
mov edx, dword [esp + 0x38]
mov esi, dword [esp + 0x3c]
xor eax, eax
mov dword [ebx + 0x26c], eax
xor ecx, ecx
mov dword [ebx + 0x270], ecx
mov dword [ebx + 0x274], edx
mov dword [ebx + 0x278], esi
cmp byte [ebx + 0x351], 0
je 0x4a3feb
mov eax, dword [esp + 0x18]
lea edx, [eax + 0x60]
mov eax, dword [eax + 0x70]
push 1
push eax
lea eax, [esp + 0x88]
lea ecx, [esp + 0x38]
call fcn.004c6c90
add esp, 8
jmp 0x4a4077
cmp byte [ebx + 0x20a], 0
jne 0x4a4048
lea esi, [esp + 0x20]
call fcn.00495ae0
fldz
fcom dword [esp + 0x84]
fnstsw ax
test ah, 0x44
jp 0x4a403d
fcomp dword [esp + 0x8c]
fnstsw ax
test ah, 0x44
jp 0x4a403f
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x70]
push 0
lea edx, [eax + 0x60]
push ecx
lea eax, [esp + 0x88]
lea ecx, [esp + 0x38]
call fcn.004c6c90
add esp, 8
jmp 0x4a4077
fstp st(0)
push 0x100
push 0
jmp 0x4a404f
mov ecx, dword [esp + 0x10]
push ecx
push 1
movzx edx, byte [ebx + 0x20b]
mov eax, dword [esp + 0x20]
push edx
lea ecx, [esp + 0x8c]
push ecx
lea edx, [esp + 0x40]
lea edi, [eax + 0x60]
mov eax, dword [eax + 0x70]
push edx
push eax
call fcn.004c6cc0
add esp, 0x18
lea eax, [esp + 0x30]
call fcn.00479430
cmp dword [ebx + 0x264], 0
je 0x4a40aa
push 0
push 0
xor ecx, ecx
lea esi, [esp + 0x60]
call fcn.00479300
add ebx, 0x324
call fcn.00479500
mov eax, esi
call fcn.00479430
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4