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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x528886
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x184
push ebx
push esi
push edi
lea ecx, [esp + 0x50]
call fcn.00488db0
mov esi, dword [ebp + 0x24]
mov eax, dword [ebp + 0x20]
xor ebx, ebx
mov ecx, dword [esi + 4]
lea eax, [eax + eax*8]
mov dword [esp + 0x198], ebx
lea eax, [ecx + eax*8]
lea ecx, [esp + 0x50]
push eax
call fcn.00488fd0
mov esi, dword [esi + 8]
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x58]
lea edi, [esi + esi]
mov esi, dword [ebp + 0x28]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x5c]
cmp edi, 0xffffffff
mov dword [esp + 0x4c], edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
je 0x4a1a54
mov dword [esi + 0x10], edi
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x4a1a67
push eax
call fcn.0051aee4
add esp, 4
mov dword [esi + 4], ebx
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
sub esp, 0x10
mov dword [esi + 0xc], ebx
mov eax, esp
mov dword [esi + 8], ebx
push ebx
mov dword [eax], ecx
mov ecx, dword [esp + 0x30]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x34]
mov dword [eax + 8], ecx
mov ecx, esi
mov dword [eax + 0xc], edx
call fcn.004a6900
mov dword [esp + 0xa8], 0x534208
mov dword [esp + 0x140], ebx
mov eax, dword [esi + 8]
mov byte [esp + 0x198], 1
cmp eax, edi
mov dword [esp + 0x150], 0xeb1c432d
mov dword [esp + 0x154], 0xbf2a36e2
mov dword [esp + 0x160], 0
mov dword [esp + 0x164], 0
mov dword [esp + 0x168], 0
mov dword [esp + 0x16c], 0x3ff00000
mov dword [esp + 0x158], 0xb71758e2
mov dword [esp + 0x15c], 0x3ff000d1
mov dword [esp + 0x170], 0x47ae147b
mov dword [esp + 0x174], 0x3f847ae1
mov dword [esp + 0x178], 0xeb1c432d
mov dword [esp + 0x17c], 0x3f1a36e2
jge 0x4a20d3
mov ebx, dword [ebp + 0x28]
mov eax, dword [ebp + 0x24]
xor esi, esi
or edi, 0xffffffff
mov dword [esp + 0x34], 0
mov ecx, dword [eax + 8]
mov dword [esp + 0x38], 0x40000000
cmp ecx, esi
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x24], edi
mov dword [esp + 0x10], esi
jle 0x4a1c94
mov dword [esp + 0xc], 0xffffffb8
mov ecx, dword [esp + 0x10]
mov eax, dword [ebp + 0x20]
cmp ecx, eax
je 0x4a1c73
mov ebx, dword [ebp + 0x24]
fld qword [esp + 0x78]
mov edx, dword [ebx + 4]
fcomp qword [esi + edx + 0x38]
lea edi, [esi + edx]
fnstsw ax
test ah, 0x41
je 0x4a1be2
fld qword [esp + 0x80]
fcomp qword [edi + 0x40]
fnstsw ax
test ah, 0x41
je 0x4a1be2
fld qword [esp + 0x88]
fcomp qword [edi + 0x28]
fnstsw ax
test ah, 1
jne 0x4a1be2
fld qword [esp + 0x90]
fcomp qword [edi + 0x30]
fnstsw ax
test ah, 1
je 0x4a1d04
mov dword [esp + 0x140], 0
fld qword [esp + 0x68]
fadd qword [esp + 0x50]
fld qword [esp + 0x70]
fadd qword [esp + 0x58]
mov ecx, dword [ebx + 4]
mov eax, esi
add eax, ecx
fstp qword [esp + 0x188]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
fsubr qword [eax]
mov dword [esp + 0xa0], ecx
mov dword [esp + 0xa4], edx
fld qword [esp + 0xa0]
fsub qword [esp + 0x188]
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fcomp qword [ebp + 8]
fnstsw ax
fstp st(0)
test ah, 0x41
fstp st(0)
je 0x4a1c73
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0x3ff00000
mov eax, dword [esp + 0x10]
mov dword [esp + 0x24], eax
mov dword [esp + 0xc], esi
mov ecx, dword [ebp + 0x24]
mov eax, dword [esp + 0x10]
inc eax
add esi, 0x48
mov edx, dword [ecx + 8]
mov dword [esp + 0x10], eax
cmp eax, edx
jl 0x4a1b84
mov ebx, dword [ebp + 0x28]
mov edi, dword [esp + 0x24]
cmp edi, 0xffffffff
mov dword [ebp + 0x20], edi
je 0x4a2236
cmp dword [ebx + 8], 3
jl 0x4a1f8a
mov edx, dword [ebx + 4]
lea ecx, [esp + 0x50]
push edx
call fcn.00488c30
fcomp qword [0x5317a0]
fnstsw ax
test ah, 1
je 0x4a1f8a
mov eax, dword [ebx + 4]
lea ecx, [esp + 0x50]
push eax
call fcn.00488c70
fcom qword [0x53adc8]
fnstsw ax
test ah, 0x41
jne 0x4a1f88
fld qword [esp + 0x34]
fadd qword [0x5354e0]
fxch st(1)
fcompp
fnstsw ax
test ah, 1
jne 0x4a2112
jmp 0x4a1f8a
lea eax, [esp + 0x50]
push edi
push eax
lea ecx, [esp + 0xb0]
call fcn.00431360
fld qword [esp + 0x148]
fabs
fcomp qword [0x53a008]
push edi
fnstsw ax
test ah, 1
je 0x4a1d40
lea ecx, [esp + 0x54]
push ecx
lea ecx, [esp + 0xb0]
call fcn.004896b0
jmp 0x4a1d51
lea edx, [esp + 0x54]
lea ecx, [esp + 0xac]
push edx
call fcn.00489a70
mov eax, dword [esp + 0x140]
test eax, eax
jle 0x4a1bed
xor ecx, ecx
cmp eax, 2
jne 0x4a1da2
fld qword [esp + 0xb8]
fcomp qword [esp + 0xb0]
fnstsw ax
test ah, 1
je 0x4a1d81
mov ecx, 1
fld qword [esp + 0x60]
fmul qword [esp + ecx*8 + 0xb0]
fcomp qword [0x532438]
fnstsw ax
test ah, 0x41
je 0x4a1da2
mov eax, 1
sub eax, ecx
mov ecx, eax
fld qword [0x531798]
fsub qword [esp + ecx*8 + 0xf8]
mov edx, dword [ebx + 4]
lea edi, [esp + ecx*8 + 0xf8]
fmul qword [edx + esi + 0x10]
fcomp qword [0x532438]
fnstsw ax
test ah, 0x41
jne 0x4a1c73
fld qword [esp + ecx*8 + 0xb0]
fsub qword [esp + 0x34]
lea ebx, [esp + ecx*8 + 0xb0]
fabs
fmul qword [edx + esi + 0x10]
fcomp qword [0x532438]
fnstsw ax
test ah, 1
je 0x4a1e93
mov ecx, dword [esp + 0xc]
add ecx, edx
fld qword [ecx + 0x20]
fmul qword [edx + esi + 0x18]
fld qword [ecx + 0x18]
fmul qword [edx + esi + 0x20]
fsubp st(1)
fcom qword [0x531cf0]
fnstsw ax
test ah, 0x41
jne 0x4a1e36
mov edx, dword [edi]
mov eax, dword [edi + 4]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x2c], edx
fstp st(0)
mov dword [esp + 0x30], eax
mov dword [esp + 0x24], ecx
jmp 0x4a1c6f
fcomp qword [0x531cf0]
fnstsw ax
test ah, 0x40
je 0x4a1c73
fld qword [edx + esi + 0x18]
fadd qword [edx + esi]
fstp qword [esp + 0x14]
fld qword [edx + esi + 0x20]
fadd qword [edx + esi + 8]
lea edx, [esp + 0x14]
push edx
fstp qword [esp + 0x20]
call fcn.00488c70
fcomp qword [0x531798]
fnstsw ax
test ah, 0x41
jne 0x4a1c73
mov eax, dword [edi]
mov ecx, dword [edi + 4]
mov edx, dword [esp + 0x10]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x24], edx
jmp 0x4a1c6f
fld qword [ebx]
fcomp qword [esp + 0x34]
fnstsw ax
test ah, 1
je 0x4a1c73
fld qword [esp + 0x60]
fmul qword [ebx]
fcomp qword [0x532438]
fnstsw ax
test ah, 0x41
jne 0x4a1c73
fld qword [0x531798]
fsub qword [ebx]
fmul qword [esp + 0x60]
fcomp qword [0x532438]
fnstsw ax
test ah, 0x41
jne 0x4a1f69
fld qword [esp + 0x68]
fmul qword [edx + esi + 0x20]
fld qword [esp + 0x70]
fmul qword [edx + esi + 0x18]
fsubp st(1)
fcom qword [0x531cf0]
fnstsw ax
test ah, 1
je 0x4a1efb
fstp st(0)
jmp 0x4a1f42
fcomp qword [0x531cf0]
fnstsw ax
test ah, 0x40
je 0x4a1c73
fld qword [edx + esi + 0x18]
fadd qword [edx + esi]
lea ecx, [esp + 0x50]
fstp qword [esp + 0x14]
fld qword [edx + esi + 0x20]
fadd qword [edx + esi + 8]
lea edx, [esp + 0x14]
push edx
fstp qword [esp + 0x20]
call fcn.00488c70
fcomp qword [0x531798]
fnstsw ax
test ah, 0x41
jne 0x4a1c73
mov eax, dword [edi]
mov ecx, dword [edi + 4]
mov edx, dword [ebx]
mov dword [esp + 0x2c], eax
mov eax, dword [ebx + 4]
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], eax
mov dword [esp + 0x24], ecx
jmp 0x4a1c6f
mov edx, dword [edi]
mov eax, dword [edi + 4]
mov ecx, dword [ebx]
mov dword [esp + 0x2c], edx
mov edx, dword [ebx + 4]
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], edx
jmp 0x4a1c67
fstp st(0)
fld qword [esp + 0x68]
fmul qword [esp + 0x34]
mov esi, dword [ebx + 8]
push 0xffffffffffffffff
fadd qword [esp + 0x54]
fstp qword [esp + 0x18]
fld qword [esp + 0x74]
fmul qword [esp + 0x38]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], edx
fadd qword [esp + 0x5c]
lea edx, [esi + 1]
push edx
fstp qword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x50], ecx
mov ecx, ebx
mov dword [esp + 0x4c], eax
call fcn.004c4110
mov eax, dword [ebx + 4]
mov ecx, dword [esp + 0x40]
shl esi, 4
mov edx, dword [esp + 0x44]
add esi, eax
mov eax, dword [esp + 0x3c]
mov dword [esi], eax
mov eax, dword [esp + 0x48]
mov dword [esi + 4], ecx
lea ecx, [edi + edi*8]
mov dword [esi + 8], edx
mov edx, dword [ebp + 0x24]
mov dword [esi + 0xc], eax
mov eax, dword [edx + 4]
lea eax, [eax + ecx*8]
lea ecx, [esp + 0x50]
push eax
call fcn.00488fd0
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
push 0x3ff00000
push 0
push ecx
push edx
lea ecx, [esp + 0x60]
call fcn.00488bc0
lea eax, [esp + 0x78]
lea ecx, [esp + 0x50]
push eax
call fcn.00488960
mov ecx, dword [ebx + 4]
push ecx
lea ecx, [esp + 0x54]
call fcn.00488c70
fst qword [esp + 0x24]
fcomp qword [0x531cf0]
fnstsw ax
test ah, 1
jne 0x4a20c4
fld qword [esp + 0x24]
fcomp qword [0x531798]
fnstsw ax
test ah, 0x41
je 0x4a20c4
fld qword [esp + 0x68]
fmul qword [esp + 0x24]
mov eax, dword [ebx + 4]
sub esp, 8
sub esp, 8
fadd qword [esp + 0x60]
fstp qword [esp + 0x24]
fld qword [esp + 0x80]
fmul qword [esp + 0x34]
fadd qword [esp + 0x68]
fstp qword [esp + 0x2c]
fld qword [eax + 8]
fsub qword [esp + 0x2c]
fstp qword [esp + 8]
fld qword [eax]
fsub qword [esp + 0x24]
fstp qword [esp]
nop
call fcn.0061f1a5
fcomp qword [0x537530]
add esp, 0x10
fnstsw ax
test ah, 1
jne 0x4a21a4
mov edx, dword [ebx + 8]
mov eax, dword [esp + 0x4c]
cmp edx, eax
jl 0x4a1b41
lea ecx, [esp + 0xa8]
mov byte [esp + 0x198], 0
call fcn.004891f0
lea ecx, [esp + 0x50]
mov dword [esp + 0x198], 0xffffffff
call fcn.00488ec0
xor al, al
mov ecx, dword [esp + 0x190]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 4]
mov esi, dword [ebx + 8]
mov ecx, eax
push 0xffffffffffffffff
mov edx, dword [ecx]
mov dword [esp + 0x18], edx
mov edx, dword [ecx + 4]
mov dword [esp + 0x1c], edx
mov edx, dword [ecx + 8]
mov dword [esp + 0x20], edx
mov ecx, dword [ecx + 0xc]
mov dword [esp + 0x24], ecx
mov edx, dword [eax + 4]
mov edi, dword [eax]
mov ecx, dword [eax + 8]
mov dword [esp + 0x44], edx
mov edx, dword [eax + 0xc]
lea eax, [esi + 1]
mov dword [esp + 0x48], ecx
push eax
mov ecx, ebx
mov dword [esp + 0x50], edx
call fcn.004c4110
mov edx, dword [ebx + 4]
mov ecx, dword [esp + 0x40]
shl esi, 4
add esi, edx
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x48]
mov dword [esi], edi
mov dword [esi + 4], ecx
mov dword [esi + 8], edx
mov dword [esi + 0xc], eax
push ebx
call fcn.0049d2e0
fcom qword [ebp + 0x10]
add esp, 4
fnstsw ax
test ah, 0x41
jne 0x4a2437
fcomp qword [ebp + 0x18]
fnstsw ax
test ah, 1
je 0x4a2439
mov bl, 1
jmp 0x4a243b
mov eax, dword [ebx + 4]
mov esi, dword [ebx + 8]
mov ecx, eax
push 0xffffffffffffffff
mov edx, dword [ecx]
mov dword [esp + 0x18], edx
mov edx, dword [ecx + 4]
mov dword [esp + 0x1c], edx
mov edx, dword [ecx + 8]
mov dword [esp + 0x20], edx
mov ecx, dword [ecx + 0xc]
mov dword [esp + 0x24], ecx
mov edx, dword [eax + 4]
mov edi, dword [eax]
mov ecx, dword [eax + 8]
mov dword [esp + 0x44], edx
mov edx, dword [eax + 0xc]
lea eax, [esi + 1]
mov dword [esp + 0x48], ecx
push eax
mov ecx, ebx
mov dword [esp + 0x50], edx
call fcn.004c4110
mov edx, dword [ebx + 4]
mov ecx, dword [esp + 0x40]
shl esi, 4
add esi, edx
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x48]
push ebx
mov dword [esi], edi
mov dword [esi + 4], ecx
mov dword [esi + 8], edx
mov dword [esi + 0xc], eax
call fcn.0049d2e0
fcom qword [ebp + 0x10]
add esp, 4
fnstsw ax
test ah, 0x41
jne 0x4a2437
fcomp qword [ebp + 0x18]
fnstsw ax
test ah, 1
je 0x4a2439
mov bl, 1
jmp 0x4a243b
fld qword [esp + 0x68]
fadd qword [esp + 0x50]
cmp dword [ebx + 8], 3
fstp qword [esp + 0x14]
fld qword [esp + 0x70]
fadd qword [esp + 0x58]
fstp qword [esp + 0x1c]
jl 0x4a20d3
mov eax, dword [ebx + 4]
sub esp, 8
sub esp, 8
fld qword [eax + 8]
fsub qword [esp + 0x2c]
fstp qword [esp + 8]
fld qword [eax]
fsub qword [esp + 0x24]
fstp qword [esp]
nop
call fcn.0061f1ae
fcomp qword [0x537530]
add esp, 0x10
fnstsw ax
test ah, 0x41
je 0x4a20d3
mov eax, dword [ebx + 4]
mov ecx, eax
mov edx, dword [ecx]
mov dword [esp + 0x14], edx
mov edx, dword [ecx + 4]
mov dword [esp + 0x18], edx
mov edx, dword [ecx + 8]
mov dword [esp + 0x1c], edx
mov edx, eax
mov ecx, dword [ecx + 0xc]
mov dword [esp + 0x20], ecx
mov ecx, dword [edx]
mov dword [esp + 0x3c], ecx
mov ecx, dword [edx + 4]
mov dword [esp + 0x40], ecx
mov ecx, dword [edx + 8]
mov dword [esp + 0x44], ecx
mov edx, dword [edx + 0xc]
mov dword [esp + 0x48], edx
mov edx, dword [ebx + 8]
mov edi, edx
mov dword [esp + 0x24], edi
lea esi, [edi + 1]
test esi, esi
jne 0x4a22f9
test eax, eax
je 0x4a22ec
push eax
call fcn.0051aee4
add esp, 4
mov dword [ebx + 4], esi
xor eax, eax
mov dword [ebx + 0xc], eax
mov dword [ebx + 8], eax
jmp 0x4a240f
test eax, eax
jne 0x4a232f
mov edi, esi
shl edi, 4
push edi
call fcn.0051af44
mov edx, eax
mov ecx, edi
mov dword [ebx + 4], edx
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
mov dword [ebx + 0xc], esi
mov dword [ebx + 8], esi
jmp 0x4a240b
mov ecx, dword [ebx + 0xc]
cmp esi, ecx
jg 0x4a2364
cmp esi, edx
jle 0x4a235c
mov ecx, esi
sub ecx, edx
shl edx, 4
add edx, eax
xor eax, eax
shl ecx, 4
mov edi, edx
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [esp + 0x24]
mov dword [ebx + 8], esi
jmp 0x4a240f
mov eax, dword [ebx + 0x10]
test eax, eax
jne 0x4a238e
mov eax, edx
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x4a2382
mov eax, 4
jmp 0x4a238e
cmp eax, 0x400
jle 0x4a238e
mov eax, 0x400
add eax, ecx
cmp esi, eax
mov dword [esp + 0xc], eax
jl 0x4a239c
mov dword [esp + 0xc], esi
mov eax, dword [esp + 0xc]
shl eax, 4
push eax
call fcn.0051af44
mov ecx, dword [ebx + 8]
mov esi, dword [ebx + 4]
shl ecx, 4
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov dword [esp + 0x50], eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x28]
mov edx, dword [ebx + 8]
lea esi, [ecx + 1]
mov ecx, esi
sub ecx, edx
shl edx, 4
add edx, eax
xor eax, eax
shl ecx, 4
mov edi, edx
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebx + 4]
push eax
call fcn.0051aee4
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x14]
add esp, 8
mov dword [ebx + 4], eax
mov dword [ebx + 8], esi
mov dword [ebx + 0xc], ecx
mov edi, dword [esp + 0x24]
mov edx, dword [ebx + 4]
mov eax, dword [esp + 0x40]
shl edi, 4
mov ecx, dword [esp + 0x44]
add edi, edx
mov edx, dword [esp + 0x3c]
mov dword [edi], edx
mov edx, dword [esp + 0x48]
mov dword [edi + 4], eax
mov dword [edi + 8], ecx
mov dword [edi + 0xc], edx
jmp 0x4a2178
fstp st(0)
xor bl, bl
lea ecx, [esp + 0xa8]
mov byte [esp + 0x198], 0
call fcn.004891f0
lea ecx, [esp + 0x50]
mov dword [esp + 0x198], 0xffffffff
call fcn.00488ec0
mov ecx, dword [esp + 0x190]
pop edi
mov al, bl
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret