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

Disassembly:
push 0xffffffffffffffff
push 0x4edea3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xf0
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov dword [esp + 0x108], 0
call fcn.004c9206
test eax, eax
je 0x46fcce
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x74]
jmp 0x46fcd0
xor eax, eax
mov ebx, dword [esi + 0xebd50]
mov eax, dword [eax + 0x14f8]
mov edi, dword [esp + 0x118]
mov dword [esp + 0x64], eax
lea ecx, [ebx + ebx*4]
push 1
push ebx
push edi
lea edx, [ebx + ecx*2]
mov ecx, esi
shl edx, 4
movsx ebp, word [edx + esi + 0xf1d56]
lea eax, [edx + esi]
mov dword [esp + 0x64], eax
call fcn.00489f80
test eax, eax
je 0x4704e6
test edi, edi
je 0x46fd47
dec ebp
cmp edi, ebp
je 0x46fd47
push 3
lea eax, [edi + 1]
push ebx
push eax
mov ecx, esi
call fcn.00489f80
test eax, eax
je 0x4704e6
push 3
lea ecx, [edi - 1]
push ebx
push ecx
mov ecx, esi
call fcn.00489f80
test eax, eax
je 0x4704e6
mov eax, dword [esp + 0x114]
test eax, eax
jne 0x46fd9e
mov ebp, dword [esp + 0x110]
push 1
push ebx
push ebp
mov ecx, esi
call fcn.00489ff0
test eax, eax
je 0x4704e6
mov eax, dword [esi + ebx*4 + 0x1c4c18]
mov ecx, dword [esp + 0x58]
lea edx, [ebp + ebp*2]
mov ebp, dword [eax + edx*4]
lea eax, [eax + edx*4]
mov edx, dword [ecx + 0xf1d44]
sub ebp, edx
mov edx, dword [ecx + 0xf1d48]
mov eax, dword [eax + 4]
mov dword [esp + 0x2c], ebp
sub eax, edx
mov dword [esp + 0x20], eax
jmp 0x46fdd6
mov ebp, dword [esp + 0x110]
push 3
push ebx
push ebp
mov ecx, esi
call fcn.00489f80
test eax, eax
je 0x4704e6
mov ecx, dword [esi + ebx*4 + 0xf7078]
mov eax, dword [esi + ebx*4 + 0xf7258]
mov edx, dword [ecx + ebp*4]
mov ecx, dword [eax + ebp*4]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x20], ecx
mov ebp, edx
mov edx, dword [esi + ebx*4 + 0xf7078]
mov ecx, dword [esi + ebx*4 + 0xf7258]
mov eax, dword [edx + edi*4]
mov edx, dword [ecx + edi*4]
mov dword [esp + 0x44], eax
mov dword [esp + 0x40], edx
fild dword [esp + 0x44]
fstp qword [esp + 0x48]
fild dword [esp + 0x40]
fstp qword [esp + 0x50]
fild dword [esp + 0x2c]
fstp qword [esp + 0x5c]
fld qword [esp + 0x48]
fcomp qword [esp + 0x5c]
fnstsw ax
test ah, 0x40
je 0x46fe2c
fild dword [esp + 0x20]
fcomp qword [esp + 0x50]
fnstsw ax
test ah, 0x40
jne 0x4704e6
fld qword [esp + 0x50]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x28]
push eax
mov dword [esp + 0x28], 0
push ecx
call fcn.004b03b4
fld qword [esp + 0x50]
push eax
call fcn.004b03b4
mov edx, dword [esp + 0x2c]
push eax
push edx
push ebp
mov ecx, esi
call fcn.00477820
test eax, eax
jne 0x46fe73
or eax, 0xffffffff
mov dword [esp + 0x28], eax
mov dword [esp + 0x10], eax
jmp 0x470017
mov ebp, dword [esp + 0x10]
mov ecx, dword [esp + 0x28]
cmp ebp, ecx
jne 0x46fe85
or ecx, 0xffffffff
or ebp, 0xffffffff
mov eax, ebp
sub eax, ecx
cdq
xor eax, edx
sub eax, edx
cmp eax, 1
jne 0x46fea3
or eax, 0xffffffff
mov dword [esp + 0x28], eax
mov dword [esp + 0x10], eax
jmp 0x470017
cmp ecx, ebp
jle 0x46ff65
inc ebp
dec ecx
mov eax, ebp
mov dword [esp + 0x10], ebp
sub eax, ecx
mov dword [esp + 0x28], ecx
cdq
mov ebp, eax
xor ebp, edx
sub ebp, edx
inc ebp
mov dword [esp + 0x24], ebp
lea eax, [ebp*8]
push eax
call fcn.004c8844
add esp, 4
test eax, eax
je 0x46fee4
lea ecx, [ebp - 1]
mov edi, eax
mov dword [esp + 0x18], ecx
jmp 0x46fee6
xor edi, edi
lea edx, [ebp*4]
mov dword [esp + 0x3c], edi
push edx
call fcn.004c8844
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x2c]
add esp, 4
mov dword [esp + 0x30], eax
cmp ecx, edx
mov eax, ecx
jg 0x470010
jmp 0x46ff16
mov ecx, dword [esp + 0x10]
mov edx, dword [esi + ebx*4 + 0xf7078]
mov ebp, eax
sub ebp, ecx
mov ecx, dword [edx + eax*4]
mov dword [edi + ebp*8], ecx
mov edx, dword [esi + ebx*4 + 0xf7258]
mov ebp, dword [esp + 0x10]
mov ecx, eax
mov edx, dword [edx + eax*4]
sub ecx, ebp
mov dword [edi + ecx*8 + 4], edx
mov ebp, dword [esp + 0x10]
mov ecx, dword [esi + ebx*4 + 0xf7438]
mov edx, eax
sub edx, ebp
mov ebp, dword [esp + 0x30]
mov ecx, dword [ecx + eax*4]
inc eax
mov dword [ebp + edx*4], ecx
mov ecx, dword [esp + 0x28]
cmp eax, ecx
jle 0x46ff12
jmp 0x470010
inc ecx
dec ebp
mov eax, ebp
mov dword [esp + 0x10], ebp
sub eax, ecx
mov dword [esp + 0x28], ecx
cdq
mov ebp, eax
xor ebp, edx
sub ebp, edx
inc ebp
mov dword [esp + 0x24], ebp
lea edx, [ebp*8]
push edx
call fcn.004c8844
add esp, 4
test eax, eax
je 0x46ff9e
lea ecx, [ebp - 1]
mov edi, eax
mov dword [esp + 0x18], ecx
jmp 0x46ffa0
xor edi, edi
lea edx, [ebp*4]
mov dword [esp + 0x3c], edi
push edx
call fcn.004c8844
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x2c]
add esp, 4
mov dword [esp + 0x30], eax
cmp ecx, edx
mov eax, ecx
jl 0x470010
jmp 0x46ffcc
mov ecx, dword [esp + 0x10]
mov edx, dword [esi + ebx*4 + 0xf7078]
sub ecx, eax
mov ebp, dword [esp + 0x30]
mov edx, dword [edx + eax*4]
mov dword [edi + ecx*8], edx
mov ecx, dword [esi + ebx*4 + 0xf7258]
mov edx, dword [esp + 0x10]
mov ecx, dword [ecx + eax*4]
sub edx, eax
mov dword [edi + edx*8 + 4], ecx
mov edx, dword [esi + ebx*4 + 0xf7438]
mov ecx, dword [esp + 0x10]
mov edx, dword [edx + eax*4]
sub ecx, eax
dec eax
mov dword [ebp + ecx*4], edx
mov ecx, dword [esp + 0x28]
cmp eax, ecx
jge 0x46ffc8
mov edi, dword [esp + 0x118]
push ecx
lea eax, [esp + 0x120]
mov ecx, esp
mov dword [esp + 0x1c], esp
push eax
call fcn.004c7f90
lea ecx, [esp + 0x7c]
call fcn.0041b080
lea ecx, [esp + 0x78]
mov byte [esp + 0x108], 1
call fcn.0041b780
mov ecx, dword [esp + 0x64]
mov eax, dword [ecx + 0x3c4]
test eax, eax
jne 0x47005b
fmul qword [0x4f3dc0]
jmp 0x470061
fmul qword [0x4f7108]
fstp qword [esp + 0x68]
push ebx
mov ecx, esi
mov dword [esp + 0x18], 1
call fcn.00470e80
test eax, eax
jne 0x47007d
mov dword [esp + 0x14], eax
fild dword [esp + 0x20]
fst qword [esp + 0x70]
fld qword [esp + 0x50]
fsub st(1)
fstp qword [esp + 0x34]
fstp st(0)
fld qword [esp + 0x34]
fld qword [esp + 0x48]
fsub qword [esp + 0x5c]
fst qword [esp + 0x18]
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fsqrt
fstp qword [esp + 0x50]
fstp st(0)
fstp st(0)
fld qword [esp + 0x50]
fadd st(0), st(0)
fdivr qword [esp + 0x68]
call fcn.004b0de0
fadd st(0), st(0)
fld st(0)
fsin
fstp qword [esp + 0x48]
fcos
fst qword [esp + 0x50]
fld qword [esp + 0x18]
fmul st(1)
fld qword [esp + 0x34]
fmul qword [esp + 0x48]
fsubp st(1)
fadd qword [esp + 0x5c]
fcom qword [0x4f3dd0]
fnstsw ax
test ah, 1
jne 0x4700fd
fadd qword [0x4f3dc8]
jmp 0x470103
fsub qword [0x4f3dc8]
call fcn.004b03b4
fld qword [esp + 0x18]
fmul qword [esp + 0x48]
fld qword [esp + 0x34]
fmul st(2)
mov dword [esp + 0x44], eax
faddp st(1)
fadd qword [esp + 0x70]
fstp st(1)
fcom qword [0x4f3dd0]
fnstsw ax
test ah, 1
jne 0x470137
fadd qword [0x4f3dc8]
jmp 0x47013d
fsub qword [0x4f3dc8]
call fcn.004b03b4
fld qword [esp + 0x68]
fcomp qword [0x4f3dd0]
mov dword [esp + 0x40], eax
fnstsw ax
test ah, 1
je 0x470166
mov eax, dword [esp + 0x14]
xor edx, edx
test eax, eax
setle dl
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x14]
mov ebp, edi
test eax, eax
mov eax, dword [esp + 0x24]
jle 0x470312
test eax, eax
jle 0x470278
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x14], eax
lea edi, [ecx + 4]
mov dword [esp + 0x34], edx
mov eax, dword [esp + 0x14]
mov edx, dword [edi]
push 0xffffffffffffffff
push 0xffffffffffffffff
mov ecx, dword [eax]
mov eax, dword [edi - 4]
push 0
push ecx
inc ebp
push edx
push eax
push ebp
mov ecx, esi
call fcn.0045f3d0
mov ecx, dword [edi - 4]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x20]
sub ecx, edx
mov edx, dword [edi]
mov dword [esp + 0x18], ecx
fild dword [esp + 0x18]
sub edx, eax
mov dword [esp + 0x18], edx
fmul qword [esp + 0x50]
fild dword [esp + 0x18]
fmul qword [esp + 0x48]
fsubp st(1)
fadd qword [esp + 0x5c]
fcom qword [0x4f3dd0]
fnstsw ax
test ah, 1
jne 0x4701f8
fadd qword [0x4f3dc8]
jmp 0x4701fe
fsub qword [0x4f3dc8]
call fcn.004b03b4
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x20]
mov dword [edi - 4], eax
sub eax, edx
mov dword [esp + 0x18], eax
mov eax, dword [edi]
fild dword [esp + 0x18]
sub eax, ecx
mov dword [esp + 0x18], eax
fmul qword [esp + 0x48]
fild dword [esp + 0x18]
fmul qword [esp + 0x50]
faddp st(1)
fadd qword [esp + 0x70]
fcom qword [0x4f3dd0]
fnstsw ax
test ah, 1
jne 0x470247
fadd qword [0x4f3dc8]
jmp 0x47024d
fsub qword [0x4f3dc8]
call fcn.004b03b4
mov edx, dword [esp + 0x14]
mov dword [edi], eax
mov eax, dword [esp + 0x34]
add edx, 4
add edi, 8
dec eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x34], eax
jne 0x470197
mov edi, dword [esp + 0x118]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x2c]
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
push 1
inc ebp
push ecx
push edx
push ebp
mov ecx, esi
call fcn.0045f3d0
mov eax, dword [esp + 0x24]
dec eax
test eax, eax
jl 0x4702f0
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x30]
lea edi, [ecx + eax*8]
lea ecx, [edx + eax*4]
inc eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x34], eax
mov edx, dword [esp + 0x14]
mov ecx, dword [edi + 4]
push 0xffffffffffffffff
push 0xffffffffffffffff
mov eax, dword [edx]
mov edx, dword [edi]
push 0
push eax
inc ebp
push ecx
push edx
push ebp
mov ecx, esi
call fcn.0045f3d0
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x34]
sub edx, 4
sub edi, 8
dec eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x34], eax
jne 0x4702b3
mov edi, dword [esp + 0x118]
mov eax, dword [esi + ebx*4 + 0xf7438]
mov edx, dword [esp + 0x40]
push 0xffffffffffffffff
push 0xffffffffffffffff
mov ecx, dword [eax + edi*4]
mov eax, dword [esp + 0x4c]
push 0
push ecx
inc ebp
push edx
push eax
push ebp
jmp 0x470477
test eax, eax
jle 0x470404
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x24]
mov ebx, dword [esp + 0x30]
mov dword [esp + 0x34], edx
lea edi, [ecx + 4]
mov eax, dword [ebx]
mov ecx, dword [edi]
mov edx, dword [edi - 4]
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
push eax
mov eax, dword [esp + 0x128]
push ecx
push edx
push eax
mov ecx, esi
call fcn.0045f3d0
mov ecx, dword [edi - 4]
mov ebp, dword [esp + 0x2c]
mov edx, dword [edi]
mov eax, dword [esp + 0x20]
sub ecx, ebp
sub edx, eax
mov dword [esp + 0x18], ecx
fild dword [esp + 0x18]
mov dword [esp + 0x18], edx
fmul qword [esp + 0x50]
fild dword [esp + 0x18]
fmul qword [esp + 0x48]
fsubp st(1)
fadd qword [esp + 0x5c]
fcom qword [0x4f3dd0]
fnstsw ax
test ah, 1
jne 0x470390
fadd qword [0x4f3dc8]
jmp 0x470396
fsub qword [0x4f3dc8]
call fcn.004b03b4
mov ecx, dword [esp + 0x20]
mov dword [edi - 4], eax
sub eax, ebp
mov dword [esp + 0x18], eax
mov eax, dword [edi]
fild dword [esp + 0x18]
sub eax, ecx
mov dword [esp + 0x18], eax
fmul qword [esp + 0x48]
fild dword [esp + 0x18]
fmul qword [esp + 0x50]
faddp st(1)
fadd qword [esp + 0x70]
fcom qword [0x4f3dd0]
fnstsw ax
test ah, 1
jne 0x4703db
fadd qword [0x4f3dc8]
jmp 0x4703e1
fsub qword [0x4f3dc8]
call fcn.004b03b4
mov dword [edi], eax
mov eax, dword [esp + 0x34]
add ebx, 4
add edi, 8
dec eax
mov dword [esp + 0x34], eax
jne 0x47032d
mov edi, dword [esp + 0x118]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x2c]
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
push 1
push ecx
push edx
push edi
mov ecx, esi
call fcn.0045f3d0
mov eax, dword [esp + 0x24]
dec eax
test eax, eax
jl 0x470464
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x30]
lea ebx, [ecx + eax*8]
lea ebp, [edx + eax*4]
inc eax
mov dword [esp + 0x34], eax
mov eax, dword [ebp]
mov ecx, dword [ebx + 4]
mov edx, dword [ebx]
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
push eax
push ecx
push edx
push edi
mov ecx, esi
call fcn.0045f3d0
mov eax, dword [esp + 0x34]
sub ebp, 4
sub ebx, 8
dec eax
mov dword [esp + 0x34], eax
jne 0x47043a
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
push 1
push eax
push ecx
push edi
mov ecx, esi
call fcn.0045f3d0
cmp dword [esp + 0x24], 1
jl 0x47049c
mov edx, dword [esp + 0x3c]
push edx
call fcn.004c886d
mov eax, dword [esp + 0x34]
push eax
call fcn.004c886d
add esp, 8
mov edi, dword [esp + 0x58]
xor esi, esi
movsx ecx, word [edi + 0xf1d56]
movsx edx, word [edi + 0xf1d5a]
add ecx, edx
test ecx, ecx
jle 0x4704d5
mov ecx, dword [esp + 0x64]
push esi
call fcn.00438ca0
movsx eax, word [edi + 0xf1d56]
movsx ecx, word [edi + 0xf1d5a]
inc esi
add eax, ecx
cmp esi, eax
jl 0x4704b6
lea ecx, [esp + 0x78]
mov byte [esp + 0x108], 0
call fcn.00446db0
lea ecx, [esp + 0x11c]
mov dword [esp + 0x108], 0xffffffff
call fcn.004c821b
mov ecx, dword [esp + 0x100]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xfc
ret 0x10