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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x8cc788
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], ebx
mov eax, dword [ebp + 0xc]
push dword [ebp + 8]
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x1c], eax
call 0x8193cc
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x3c]
mov ebx, dword [ebp - 0x1c]
mov dword [eax], 0xaf2a80
mov edx, dword [0x9a314c]
mov dword [eax + 4], edx
mov dword [eax + 0x220], ebx
xor ecx, ecx
mov dword [eax + 0x224], ecx
mov dword [eax + 0x20], ecx
mov dword [eax + 0x24], ecx
mov dword [eax + 0x28], ecx
mov dword [eax + 0x2c], ecx
mov dword [eax + 0x30], ecx
mov dword [eax + 0x34], ecx
mov dword [eax + 0x38], ecx
mov dword [eax + 0x3c], ecx
mov dword [eax + 0x40], ecx
mov dword [eax + 0x44], ecx
mov dword [eax + 0x48], ecx
mov dword [eax + 0x4c], ecx
mov dword [eax + 0x50], ecx
mov dword [eax + 0x54], ecx
mov dword [eax + 0x58], ecx
mov dword [eax + 0x5c], ecx
mov dword [eax + 0x60], ecx
mov dword [eax + 0x64], ecx
mov dword [eax + 0x68], ecx
mov dword [eax + 0x6c], ecx
mov dword [eax + 0x70], ecx
mov dword [eax + 0x74], ecx
mov dword [eax + 0x78], ecx
mov dword [eax + 0x7c], ecx
mov dword [eax + 0x80], ecx
mov dword [eax + 0x84], ecx
mov dword [eax + 0x88], ecx
mov dword [eax + 0x8c], ecx
mov dword [eax + 0x90], ecx
mov dword [eax + 0x94], ecx
mov dword [eax + 0x98], ecx
mov dword [eax + 0x9c], ecx
test ebx, ebx
je 0x40d1a6
mov edx, ebx
cmp edx, 1
jne 0x40d0c5
mov dword [eax + 0x1c], 0x13
xor ebx, ebx
fld dword [0x8fa1c4]
cmp ebx, 9
jle 0x40d038
mov ecx, 0x43de8000
jmp 0x40d03d
mov ecx, 0x420c0000
jle 0x40d044
lea edx, [ebx - 9]
jmp 0x40d046
mov edx, ebx
mov dword [ebp - 0x38], edx
fild dword [ebp - 0x38]
fmul dword [0x8fa1d4]
faddp st(1)
push 1
push 8
lea edi, [ebx + ebx]
add edi, edi
lea esi, [edi + edi]
add esi, edi
fstp dword [esi + eax + 0xa0]
lea edi, [eax + esi + 0xa0]
mov dword [esi + eax + 0xa8], 0x3b11a2b4
mov dword [esi + eax + 0xa4], ecx
push edi
call 0x50a0ec
mov ecx, eax
add esp, 0xc
mov eax, dword [ebp - 0x3c]
mov dword [eax + ebx*4 + 0x20], ecx
test ecx, ecx
je 0x40d0a5
push 0xc0
call 0x508efc
mov eax, dword [ebp - 0x3c]
add ebx, 1
cmp ebx, dword [eax + 0x1c]
jge 0x40d18d
cmp ebx, 9
jle 0x40d026
fld dword [0x8fa1c0]
jmp 0x40d02c
cmp edx, 2
jne 0x40d18d
mov dword [eax + 0x1c], 0x20
xor edx, edx
mov dword [ebp - 0x1c], edx
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x30], edx
fild dword [ebp - 0x30]
fstp dword [ebp - 0x18]
xor edi, edi
lea esi, [edx + edx]
add esi, esi
lea ecx, [edx + edx]
mov dword [ebp - 0x14], ecx
fld dword [0x8fa1cc]
fmul dword [ebp - 0x18]
fadd dword [0x8fa1d0]
lea ebx, [edi + esi]
mov dword [ebp - 0x30], edi
fild dword [ebp - 0x30]
fmul dword [0x8fa1d4]
fadd dword [0x8fa1d8]
push 1
lea ecx, [ebx + ebx]
push 8
add ecx, ecx
lea edx, [ecx + ecx]
add edx, ecx
fstp dword [edx + eax + 0xa0]
fstp dword [edx + eax + 0xa4]
lea ecx, [eax + edx + 0xa0]
mov dword [edx + eax + 0xa8], 0x3dcccccd
push ecx
call 0x50a0ec
mov edx, eax
add esp, 0xc
mov eax, dword [ebp - 0x3c]
mov dword [eax + ebx*4 + 0x20], edx
mov edx, dword [ebp - 0x14]
mov ecx, dword [eax + edx*2 + 0x20]
test ecx, ecx
je 0x40d16f
push 0xc0
call 0x508efc
mov eax, dword [ebp - 0x3c]
add edi, 1
cmp edi, 4
jl 0x40d0f3
mov edx, dword [ebp - 0x1c]
add edx, 1
mov dword [ebp - 0x1c], edx
cmp edx, 8
jl 0x40d0da
mov edi, dword [ebp - 0x28]
mov esi, dword [ebp - 0x24]
mov ebx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
mov dword [eax + 0x1c], 0x16
xor esi, esi
mov dword [ebp - 0x30], esi
fild dword [ebp - 0x30]
fmul dword [0x8fa1d4]
fadd dword [0x8fa1ac]
push 1
lea edx, [esi + esi]
push 0xf
add edx, edx
lea ecx, [edx + edx]
add ecx, edx
fstp dword [ecx + eax + 0xa4]
mov dword [ecx + eax + 0xa0], 0x41000000
lea ebx, [eax + ecx + 0xa0]
mov dword [ecx + eax + 0xa8], 0x3b04655e
push ebx
call 0x50a0ec
mov ecx, eax
add esp, 0xc
mov eax, dword [ebp - 0x3c]
mov dword [eax + esi*4 + 0x20], ecx
lea ebx, [esi + esi]
test ecx, ecx
je 0x40d225
push 0xc0
call 0x508efc
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax + ebx*2 + 0x20]
call 0x508f48
mov eax, dword [ebp - 0x3c]
add esi, 1
cmp esi, dword [eax + 0x1c]
jl 0x40d1af
jmp 0x40d18d