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

Disassembly:
sub esp, 0x4c
mov eax, dword [0x871740]
mov edx, dword [0x86cff4]
push ebx
mov ebx, dword [eax + 0x34]
push ebp
mov ebp, dword [esp + 0x58]
and ebp, 0xffff
imul ebp, ebp, 0x724
mov ecx, dword [ebx + ebp + 0x5c]
add ebx, ebp
and ecx, 0xffff
push esi
mov esi, dword [esp + 0x64]
shl ecx, 5
mov eax, dword [ecx + edx + 0x14]
push edi
mov edi, dword [esp + 0x64]
mov dword [esp + 0x1c], eax
call fcn.005685e0
test al, al
jne 0x409458
mov ecx, dword [ebx + 0x58]
mov edx, dword [0x86cff4]
and ecx, 0xffff
shl ecx, 5
mov eax, dword [ecx + edx + 0x14]
test byte [eax + 4], 8
mov esi, edi
je 0x409262
mov ecx, dword [esp + 0x68]
mov eax, esi
call fcn.005687a0
test al, al
je 0x409458
lea ecx, [esp + 0x4c]
push ecx
mov ecx, dword [esp + 0x6c]
lea edx, [esp + 0x44]
push edx
lea eax, [esp + 0x30]
push eax
mov eax, dword [ebx + 0x18]
push ecx
push esi
call fcn.0055fa60
add esp, 0x14
test al, al
je 0x409458
lea eax, [esp + 0x34]
mov ecx, esi
call fcn.004f24e0
fld dword [esp + 0x40]
fsub dword [esp + 0x28]
lea ecx, [esp + 0x34]
mov dword [esp + 0x3c], 0
fstp dword [esp + 0x34]
fld dword [esp + 0x44]
fsub dword [esp + 0x2c]
fstp dword [esp + 0x38]
call fcn.004018e0
fld dword [0x66c40c]
fucompp
fnstsw ax
test ah, 0x44
jp 0x4092e7
lea edx, [ebx + 0x174]
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov edx, dword [edx + 8]
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], edx
fld dword [esp + 0x28]
fsub dword [ebx + 0x12c]
fld dword [esp + 0x2c]
fsub dword [ebx + 0x130]
fld dword [esp + 0x40]
fsub dword [ebx + 0x12c]
fstp dword [esp + 0x14]
fld dword [esp + 0x44]
fsub dword [ebx + 0x130]
fstp dword [esp + 0x18]
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fsqrt
fstp st(2)
fstp st(0)
fld dword [esp + 0x18]
fmul dword [esp + 0x18]
fld dword [esp + 0x14]
fmul dword [esp + 0x14]
faddp st(1)
fsqrt
fxch st(1)
fxch st(1)
fcompp
fnstsw ax
test ah, 5
jp 0x409358
fld dword [esp + 0x40]
fsub dword [ebx + 0x12c]
fld dword [esp + 0x44]
jmp 0x409366
fld dword [esp + 0x28]
fsub dword [ebx + 0x12c]
fld dword [esp + 0x2c]
fsub dword [ebx + 0x130]
mov edi, dword [0x871740]
mov eax, dword [edi + 0x34]
mov esi, dword [eax + ebp + 0x50]
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fsqrt
fstp st(2)
fstp st(0)
fstp dword [esp + 0x14]
lea ecx, [ecx]
cmp esi, 0xffffffff
je 0x409462
mov ecx, dword [0x8716a0]
mov edx, dword [ecx + 0x34]
mov eax, esi
and eax, 0xffff
imul eax, eax, 0x138
mov cl, byte [eax + edx + 0x60]
mov esi, dword [eax + edx + 8]
add eax, edx
test cl, cl
jne 0x409390
mov eax, dword [eax + 0x1c]
cmp eax, 0xffffffff
je 0x409390
mov edx, eax
xor ebp, ebp
sar edx, 0x10
test ax, ax
jl 0x4093f8
cmp ax, word [edi + 0x20]
jge 0x4093f8
movsx ecx, word [edi + 0x22]
movsx eax, ax
imul ecx, eax
add ecx, dword [edi + 0x34]
mov ax, word [ecx]
test ax, ax
je 0x4093f8
test dx, dx
je 0x4093f6
cmp ax, dx
jne 0x4093f8
mov ebp, ecx
cmp word [ebp + 0x6c], 9
jne 0x409390
mov ecx, dword [esp + 0x64]
cmp dword [ebp + 0x9c], ecx
jne 0x409390
mov dx, word [esp + 0x68]
cmp word [ebp + 0xa0], dx
jne 0x409390
fld dword [ebp + 0xcc]
fsub dword [ebp + 0x12c]
fld dword [ebp + 0xd0]
fsub dword [ebp + 0x130]
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fld dword [esp + 0x14]
fmul dword [esp + 0x14]
fcompp
fnstsw ax
fstp st(0)
test ah, 0x41
fstp st(0)
jne 0x409390
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
fld dword [esp + 0x40]
lea ecx, [esp + 0x20]
fsub dword [ebx + 0x12c]
fstp dword [esp + 0x20]
fld dword [esp + 0x44]
fsub dword [ebx + 0x130]
fstp dword [esp + 0x24]
call fcn.004018e0
fstp st(0)
mov byte [esp + 0x60], 1
fld dword [esp + 0x24]
fmul dword [ebx + 0x178]
fld dword [esp + 0x20]
fmul dword [ebx + 0x174]
faddp st(1)
fld dword [esp + 0x14]
fcomp dword [0x66c5d8]
fnstsw ax
test ah, 5
jnp 0x4094ba
mov byte [esp + 0x60], 0
fcom dword [0x66c5e8]
mov byte [esp + 0x13], 1
fnstsw ax
test ah, 0x41
je 0x4094d1
mov byte [esp + 0x13], 0
fld dword [esp + 0x14]
fcomp dword [0x66c708]
fnstsw ax
test ah, 5
jp 0x4094f3
fcomp dword [0x66c40c]
fnstsw ax
test ah, 0x41
jne 0x4094f5
mov bl, 1
jmp 0x4094f7
fstp st(0)
xor bl, bl
fld dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
fadd dword [0x66c410]
mov cl, byte [eax]
mov eax, dword [esp + 0x64]
test cl, cl
mov ecx, dword [esp + 0x68]
fdivr dword [0x66c594]
jns 0x409524
call fcn.00568740
test al, al
jne 0x409533
jmp 0x40952d
call fcn.00568740
test al, al
je 0x409533
fadd dword [0x66c5e4]
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x40954f
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov dword [eax], ecx
mov ecx, dword [esp + 0x30]
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov eax, dword [esp + 0x70]
test eax, eax
je 0x40956b
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
mov dword [eax], edx
mov edx, dword [esp + 0x3c]
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov eax, dword [esp + 0x74]
test eax, eax
je 0x409587
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x50]
mov dword [eax], ecx
mov ecx, dword [esp + 0x54]
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov eax, dword [esp + 0x78]
test eax, eax
je 0x409593
fstp dword [eax]
jmp 0x409595
fstp st(0)
mov eax, dword [esp + 0x7c]
test eax, eax
je 0x4095a3
mov dl, byte [esp + 0x60]
mov byte [eax], dl
mov eax, dword [esp + 0x80]
test eax, eax
je 0x4095b4
mov cl, byte [esp + 0x13]
mov byte [eax], cl
mov eax, dword [esp + 0x84]
test eax, eax
je 0x4095c1
mov byte [eax], bl
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x4c
ret