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

Disassembly:
sub esp, 0x4c
mov eax, dword [0x81b460]
mov edx, dword [0x816d04]
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.005707d0
test al, al
jne 0x409448
mov ecx, dword [ebx + 0x58]
mov edx, dword [0x816d04]
and ecx, 0xffff
shl ecx, 5
mov eax, dword [ecx + edx + 0x14]
test byte [eax + 4], 8
mov esi, edi
je 0x409252
mov ecx, dword [esp + 0x68]
mov eax, esi
call fcn.00570990
test al, al
je 0x409448
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.00567a20
add esp, 0x14
test al, al
je 0x409448
lea eax, [esp + 0x34]
mov ecx, esi
call fcn.004fa3b0
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 [0x612220]
fucompp
fnstsw ax
test ah, 0x44
jp 0x4092d7
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 0x409348
fld dword [esp + 0x40]
fsub dword [ebx + 0x12c]
fld dword [esp + 0x44]
jmp 0x409356
fld dword [esp + 0x28]
fsub dword [ebx + 0x12c]
fld dword [esp + 0x2c]
fsub dword [ebx + 0x130]
mov edi, dword [0x81b460]
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 0x409452
mov ecx, dword [0x81b3c0]
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 0x409380
mov eax, dword [eax + 0x1c]
cmp eax, 0xffffffff
je 0x409380
mov edx, eax
xor ebp, ebp
sar edx, 0x10
test ax, ax
jl 0x4093e8
cmp ax, word [edi + 0x20]
jge 0x4093e8
movsx ecx, word [edi + 0x22]
movsx eax, ax
imul ecx, eax
add ecx, dword [edi + 0x34]
mov ax, word [ecx]
test ax, ax
je 0x4093e8
test dx, dx
je 0x4093e6
cmp ax, dx
jne 0x4093e8
mov ebp, ecx
cmp word [ebp + 0x6c], 9
jne 0x409380
mov ecx, dword [esp + 0x64]
cmp dword [ebp + 0x9c], ecx
jne 0x409380
mov dx, word [esp + 0x68]
cmp word [ebp + 0xa0], dx
jne 0x409380
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 0x409380
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 [0x6123f0]
fnstsw ax
test ah, 5
jnp 0x4094aa
mov byte [esp + 0x60], 0
fcom dword [0x612400]
mov byte [esp + 0x13], 1
fnstsw ax
test ah, 0x41
je 0x4094c1
mov byte [esp + 0x13], 0
fld dword [esp + 0x14]
fcomp dword [0x612520]
fnstsw ax
test ah, 5
jp 0x4094e3
fcomp dword [0x612220]
fnstsw ax
test ah, 0x41
jne 0x4094e5
mov bl, 1
jmp 0x4094e7
fstp st(0)
xor bl, bl
fld dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
fadd dword [0x612224]
mov cl, byte [eax]
mov eax, dword [esp + 0x64]
test cl, cl
mov ecx, dword [esp + 0x68]
fdivr dword [0x6123ac]
jns 0x409514
call fcn.00570930
test al, al
jne 0x409523
jmp 0x40951d
call fcn.00570930
test al, al
je 0x409523
fadd dword [0x6123fc]
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x40953f
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 0x40955b
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 0x409577
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 0x409583
fstp dword [eax]
jmp 0x409585
fstp st(0)
mov eax, dword [esp + 0x7c]
test eax, eax
je 0x409593
mov dl, byte [esp + 0x60]
mov byte [eax], dl
mov eax, dword [esp + 0x80]
test eax, eax
je 0x4095a4
mov cl, byte [esp + 0x13]
mov byte [eax], cl
mov eax, dword [esp + 0x84]
test eax, eax
je 0x4095b1
mov byte [eax], bl
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x4c
ret