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

Disassembly:
sub esp, 0x130
mov ecx, dword [esp + 0x134]
push ebx
mov eax, ecx
and eax, 0xffff
lea ebx, [eax + eax*2]
mov eax, dword [0x851c30]
mov edx, dword [eax + 0x34]
push ebp
shl ebx, 2
mov ebp, dword [edx + ebx + 8]
mov eax, dword [ebp]
mov edx, dword [0x86cff4]
push esi
and eax, 0xffff
push edi
shl eax, 5
mov eax, dword [eax + edx + 0x14]
push 1
lea edx, [esp + 0x7c]
push edx
or edi, 0xffffffff
push str.head
push ecx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x68], edi
mov dword [esp + 0x5c], edi
call fcn.004f1c60
mov ecx, dword [esp + 0xec]
mov edx, dword [esp + 0xf0]
mov eax, dword [esp + 0xe8]
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], edx
lea esi, [ebp + 0x23c]
add esp, 0x10
lea ecx, [esp + 0x34]
mov edx, esi
mov dword [esp + 0x60], eax
call fcn.004cb9b0
mov ecx, eax
call fcn.00401990
fstp st(0)
fld dword [esp + 0x3c]
mov dword [esp + 0x14], 0xfffffffe
fmul dword [esi + 4]
mov dword [esp + 0x5c], 5
fld dword [esp + 0x38]
fmul dword [esi + 8]
fsubp st(1)
fstp dword [esp + 0x40]
mov eax, dword [esp + 0x40]
fld dword [esp + 0x34]
mov dword [esp + 0x28], eax
fmul dword [esi + 8]
fld dword [esp + 0x3c]
fmul dword [esi]
fsubp st(1)
fstp dword [esp + 0x44]
mov ecx, dword [esp + 0x44]
fld dword [esp + 0x38]
mov dword [esp + 0x2c], ecx
fmul dword [esi]
fld dword [esp + 0x34]
fmul dword [esi + 4]
fsubp st(1)
fstp dword [esp + 0x48]
mov edx, dword [esp + 0x48]
mov dword [esp + 0x30], edx
jmp 0x56b040
or edi, 0xffffffff
jmp 0x56b040
fild dword [esp + 0x14]
mov dword [esp + 0x20], 0xfffffffe
mov dword [esp + 0x50], 5
fstp dword [esp + 0x24]
jmp 0x56b060
or edi, 0xffffffff
lea ecx, [ecx]
fild dword [esp + 0x20]
mov ecx, dword [esp + 0x144]
fld dword [esp + 0x24]
lea eax, [esp + 0xf0]
fmul dword [esp + 0x34]
push eax
fld st(1)
push ecx
fmul dword [esp + 0x30]
lea edx, [esp + 0x48]
push edx
lea eax, [esp + 0x6c]
faddp st(1)
push eax
push 0x1000e9
fmul dword [0x66c4f4]
fld dword [esi]
fmul dword [0x66c5e0]
faddp st(1)
fstp dword [esp + 0x54]
fld dword [esp + 0x38]
fmul dword [esp + 0x4c]
fld st(1)
fmul dword [esp + 0x40]
faddp st(1)
fmul dword [0x66c4f4]
fld dword [ebp + 0x240]
fmul dword [0x66c5e0]
faddp st(1)
fstp dword [esp + 0x58]
fld dword [esp + 0x38]
fmul dword [esp + 0x50]
fxch st(1)
fmul dword [esp + 0x44]
faddp st(1)
fmul dword [0x66c4f4]
fld dword [ebp + 0x244]
fmul dword [0x66c5e0]
faddp st(1)
fstp dword [esp + 0x5c]
call fcn.00501460
add esp, 0x14
test al, al
je 0x56b1fa
movsx eax, word [esp + 0xf0]
sub eax, 2
je 0x56b1ca
dec eax
jne 0x56b1fa
mov eax, dword [esp + 0x128]
mov ecx, dword [0x851c30]
mov edx, dword [ecx + 0x34]
mov edi, eax
and eax, 0xffff
lea eax, [eax + eax*2]
mov ecx, dword [edx + eax*4 + 8]
cmp word [ecx + 0xb4], 2
je 0x56b160
mov eax, dword [ecx + 0x11c]
cmp eax, 0xffffffff
je 0x56b160
mov edi, eax
and eax, 0xffff
lea ecx, [eax + eax*2]
mov ecx, dword [edx + ecx*4 + 8]
cmp dword [esp + 0x18], 0xffffffff
je 0x56b19f
mov dx, word [ecx + 0xb4]
test dx, dx
jne 0x56b1fa
cmp word [esp + 0x54], dx
jne 0x56b193
fld dword [esp + 0xec]
fcomp dword [esp + 0x104]
fnstsw ax
test ah, 0x41
je 0x56b19f
test dx, dx
jne 0x56b1fa
cmp word [esp + 0x54], dx
je 0x56b1fa
mov dx, word [ecx + 0xb4]
mov eax, dword [esp + 0x124]
mov ecx, dword [esp + 0x104]
mov dword [esp + 0x18], edi
mov word [esp + 0x54], dx
mov dword [esp + 0x1c], eax
mov dword [esp + 0xec], ecx
jmp 0x56b1fa
cmp dword [esp + 0x18], edi
jne 0x56b1fa
mov eax, dword [esp + 0x13c]
test al, 8
mov edx, dword [esp + 0x124]
mov dword [esp + 0x1c], edx
je 0x56b1fa
mov ecx, dword [esp + 0x134]
movzx ax, ah
mov word [esp + 0x58], ax
mov dword [esp + 0x6c], ecx
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x50]
inc ecx
dec eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x50], eax
jne 0x56b05a
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x5c]
inc ecx
dec eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x5c], eax
jne 0x56b034
mov edi, dword [0x851c30]
mov edx, dword [edi + 0x34]
mov eax, dword [ebx + edx + 8]
mov cx, word [eax + 0x2f2]
cmp cx, 0xffff
je 0x56b28f
movsx ecx, cx
mov eax, dword [eax + ecx*4 + 0x2f8]
cmp eax, 0xffffffff
je 0x56b28f
and eax, 0xffff
lea edx, [eax + eax*2]
mov eax, dword [edi + 0x34]
mov ecx, dword [eax + edx*4 + 8]
mov edx, dword [ecx]
mov eax, dword [0x86cff4]
and edx, 0xffff
shl edx, 5
mov eax, dword [edx + eax + 0x14]
mov ebx, dword [eax + 0x3a0]
cmp ebx, 0xffffffff
mov ecx, dword [eax + 0x3b0]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x4c], ecx
jne 0x56b29f
mov edx, dword [esp + 0x74]
mov eax, dword [edx + 0x294]
mov dword [esp + 0x14], eax
mov ebx, eax
mov edx, dword [esp + 0x18]
cmp edx, 0xffffffff
je 0x56b310
mov eax, edx
and eax, 0xffff
lea ecx, [eax + eax*2]
mov eax, dword [edi + 0x34]
mov eax, dword [eax + ecx*4 + 8]
mov ecx, 1
cmp word [eax + 0xb4], cx
jne 0x56b310
cmp dword [eax + 4], ecx
je 0x56b310
mov ecx, dword [eax]
mov eax, dword [0x86cff4]
and ecx, 0xffff
shl ecx, 5
mov ecx, dword [ecx + eax + 0x14]
fld dword [ecx + 0x20]
lea eax, [esp + 0x28]
fmul dword [0x66cbb0]
mov ecx, edx
fld st(0)
fmul dword [esi]
fstp dword [esp + 0x28]
fld st(0)
fmul dword [esi + 4]
fstp dword [esp + 0x2c]
fmul dword [esi + 8]
fstp dword [esp + 0x30]
call fcn.0056d600
mov edx, dword [esp + 0x18]
cmp ebx, 0xffffffff
je 0x56b535
xor eax, eax
mov ecx, 0x15
lea edi, [esp + 0x78]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x7c]
mov eax, dword [ebp + 0x98]
or ecx, 1
cmp edx, 0xffffffff
mov dword [esp + 0x7c], ecx
mov ecx, dword [ebp + 0x9c]
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x144]
mov dword [esp + 0x90], ecx
mov cx, word [ebp + 0xb8]
mov dword [esp + 0x84], eax
mov eax, dword [ebp + 0x218]
mov word [esp + 0x88], cx
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x94], ecx
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], ecx
lea eax, [ebp + 0xa0]
mov ecx, dword [eax]
mov dword [esp + 0xa0], ecx
mov ecx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esp + 0xa4], ecx
mov dword [esp + 0xa8], eax
mov ecx, esi
mov eax, dword [ecx]
mov dword [esp + 0xac], eax
mov eax, dword [ecx + 4]
mov ecx, dword [ecx + 8]
mov dword [esp + 0xb0], eax
mov ax, word [esp + 0x1c]
mov dword [esp + 0x78], ebx
mov dword [esp + 0xb8], 0x3f800000
mov dword [esp + 0xbc], 0x3f800000
mov dword [esp + 0xb4], ecx
mov word [esp + 0xc4], ax
jne 0x56b42f
mov eax, dword [esp + 0x58]
cmp ax, dx
je 0x56b535
mov ecx, dword [esp + 0x6c]
push ecx
push eax
lea ebx, [esp + 0x80]
call fcn.004fb9c0
mov ebx, dword [esp + 0x1c]
add esp, 8
jmp 0x56b535
mov eax, edx
and eax, 0xffff
lea edi, [eax + eax*2]
mov eax, dword [0x851c30]
mov ecx, dword [eax + 0x34]
shl edi, 2
mov eax, dword [edi + ecx + 8]
cmp word [eax + 0xb4], 7
jne 0x56b45d
mov ecx, edx
call fcn.0044b650
mov edx, dword [esp + 0x18]
mov ecx, dword [0x738ba0]
mov ecx, dword [ecx + 0x174]
fld dword [ecx + 0x34]
fcomp dword [0x66c40c]
fnstsw ax
test ah, 0x41
jne 0x56b4d8
fld dword [ebp + 0x70]
fmul dword [ebp + 0x7c]
fld dword [ebp + 0x6c]
fmul dword [ebp + 0x78]
faddp st(1)
fld dword [ebp + 0x74]
fmul dword [ebp + 0x68]
faddp st(1)
fmul dword [0x66c414]
fdiv dword [ecx + 0x34]
fst dword [esp + 0xb8]
fcomp dword [0x66c40c]
fnstsw ax
test ah, 5
jp 0x56b4b9
mov dword [esp + 0xb8], 0
jmp 0x56b4d8
fld dword [esp + 0xb8]
fcomp dword [0x66c410]
fnstsw ax
test ah, 0x41
jne 0x56b4d8
mov dword [esp + 0xb8], 0x3f800000
cmp word [ebp + 0xb4], 0
jne 0x56b506
mov eax, dword [0x851c30]
mov ecx, dword [eax + 0x34]
mov eax, dword [esp + 0x70]
mov ecx, dword [eax + ecx + 8]
cmp byte [ecx + 0x501], 0xf
jle 0x56b506
mov dword [esp + 0xb8], 0x3fc00000
mov eax, dword [0x851c30]
mov ecx, dword [eax + 0x34]
mov eax, dword [edi + ecx + 8]
cmp word [eax + 0xb4], 0
jne 0x56b535
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xffffffffffffffff
push edx
lea ecx, [esp + 0x8c]
push ecx
call fcn.004ea1a0
add esp, 0x18
mov eax, dword [esp + 0x1c]
cmp ax, 0xffff
je 0x56b63d
mov edx, dword [esp + 0x144]
mov ecx, ebx
call fcn.0056abe0
mov ebx, dword [esp + 0x4c]
or edx, 0xffffffff
cmp ebx, edx
je 0x56b63d
fld dword [esi]
xor eax, eax
fchs
mov ecx, 0x15
lea edi, [esp + 0x78]
rep stosd dword es:[edi], eax
fstp dword [esp + 0xac]
fld dword [esi + 4]
fchs
fstp dword [esp + 0xb0]
mov ecx, dword [esp + 0x7c]
fld dword [esi + 8]
or ecx, 8
fchs
mov dword [esp + 0x7c], ecx
fstp dword [esp + 0xb4]
lea eax, [ebp + 0xa0]
mov ecx, eax
mov esi, dword [ecx]
mov dword [esp + 0xa0], esi
mov esi, dword [ecx + 4]
mov ecx, dword [ecx + 8]
mov dword [esp + 0xa8], ecx
mov ecx, dword [eax]
push 0
push edx
mov dword [esp + 0x9c], ecx
mov ecx, dword [eax + 4]
mov eax, dword [eax + 8]
push edx
push edx
mov dword [esp + 0xa8], ecx
mov ecx, dword [esp + 0x154]
mov word [esp + 0xd4], dx
mov dword [esp + 0x90], edx
mov dword [esp + 0x94], edx
mov word [esp + 0x98], dx
mov word [esp + 0xa0], dx
push ecx
lea edx, [esp + 0x8c]
push edx
mov dword [esp + 0x90], ebx
mov dword [esp + 0xd0], 0x3f800000
mov dword [esp + 0xd4], 0x3f800000
mov dword [esp + 0xbc], esi
mov dword [esp + 0xb4], eax
call fcn.004ea1a0
add esp, 0x18
pop edi
pop esi
mov byte [ebp + 0x289], 0
pop ebp
pop ebx
add esp, 0x130
ret