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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x476a68
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4eec64]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov esi, ecx
movzx eax, byte [esi + 0x39]
mov bl, byte [esi + 0x21]
mov cl, byte [esi + 0x69]
mov byte [esp + 0x19], al
mov al, byte [esi + 0x51]
mov byte [esp + 0x1a], al
mov byte [esp + 0x1b], cl
test bl, bl
jne 0x412564
test al, al
je 0x412a1e
cmp byte [esi + 0x12b], 0
lea ebp, [esi + 0x12b]
je 0x41258c
mov eax, 3
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov al, byte [ebp]
mov dword [esp + 0x2c], ebp
mov byte [esp + 0x30], al
mov dword [esp + 0x60], 0
cmp byte [esi + 0x12a], 0
mov byte [ebp], 1
jne 0x4125b5
cmp dword [esi + 0x154], 0
jne 0x4125bd
mov byte [ebp], al
jmp 0x412a1e
mov edx, dword [esi]
mov edx, dword [edx + 0x20]
lea eax, [esp + 0x44]
push eax
mov ecx, esi
call edx
cmp byte [esi + 0x12a], 0
jne 0x4125dc
mov ecx, dword [esi + 0x154]
jmp 0x4125de
xor ecx, ecx
mov eax, dword [ecx]
mov eax, dword [eax + 0x24]
push 0
lea edx, [esp + 0x38]
push edx
call eax
mov ecx, dword [esp + 0x50]
mov edi, dword [esp + 0x48]
test bl, bl
je 0x412811
cmp byte [esp + 0x19], 0
mov eax, dword [esp + 0x4c]
je 0x41270b
mov edx, dword [esp + 0x44]
cmp edx, eax
jge 0x412a17
cmp edi, ecx
jge 0x412a17
mov ebx, dword [esp + 0x3c]
sub ebx, dword [esp + 0x34]
sub eax, edx
mov dword [esp + 0x1c], ebx
fild dword [esp + 0x1c]
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
mov dword [esp + 0x1c], eax
fst dword [esp + 0x20]
fild dword [esp + 0x1c]
fstp dword [esp + 0x1c]
fld dword [esi + 0x28]
fld dword [esp + 0x20]
fld st(0)
fmulp st(2)
fld dword [esi + 0x2c]
faddp st(2)
fxch st(1)
fstp dword [esp + 0x20]
fld dword [esp + 0x20]
fld dword [esi + 0x10]
fmulp st(2)
fld dword [esi + 0x14]
faddp st(2)
fxch st(1)
fstp dword [esp + 0x20]
fsub dword [esp + 0x20]
fstp dword [esp + 0x20]
fld dword [esp + 0x20]
fld dword [esi + 0x24]
fld dword [esp + 0x1c]
fld st(0)
fmulp st(2)
fxch st(1)
fstp dword [esp + 0x20]
fld dword [esp + 0x20]
fld dword [esi + 0xc]
fmulp st(2)
fxch st(1)
fstp dword [esp + 0x20]
fsub dword [esp + 0x20]
fdivp st(1)
fstp dword [esp + 0x20]
fld dword [esp + 0x20]
fst dword [esi + 0x8c]
fild dword [esp + 0x44]
fmul st(1)
fstp dword [esp + 0x1c]
fld dword [esi + 0x10]
fmulp st(2)
fild dword [esp + 0x34]
faddp st(2)
fld dword [esi + 0x14]
faddp st(2)
fxch st(1)
fstp dword [esp + 0x20]
fld dword [esp + 0x20]
fild dword [esp + 0x4c]
fmulp st(2)
fxch st(1)
fstp dword [esp + 0x20]
fld dword [esp + 0x20]
fld dword [esp + 0x1c]
fld st(0)
fsubp st(2)
fld dword [esi + 0xc]
fmulp st(2)
fld dword [esi + 0xc]
fmulp st(2)
faddp st(1)
fstp dword [esp + 0x20]
fsub dword [esp + 0x20]
fstp dword [esi + 0x78]
jmp 0x412811
mov edx, dword [esp + 0x3c]
sub edx, dword [esp + 0x34]
sub eax, dword [esp + 0x44]
cmp byte [esi + 0x20], 0
mov dword [esp + 0x20], edx
fild dword [esp + 0x20]
mov dword [esp + 0x20], eax
fstp dword [esp + 0x1c]
fild dword [esp + 0x34]
fstp dword [esp + 0x24]
fld dword [esi + 0x84]
fmul dword [esi + 0xc]
fimul dword [esp + 0x20]
fiadd dword [esp + 0x44]
fstp dword [esp + 0x20]
fld dword [esi + 0x10]
fld dword [esp + 0x1c]
fld st(0)
fmulp st(2)
fld dword [esp + 0x24]
fld st(0)
faddp st(3)
fld dword [esi + 0x14]
faddp st(3)
fxch st(2)
fstp dword [esp + 0x24]
fld dword [esp + 0x24]
fld dword [esp + 0x20]
fld st(0)
fsubp st(2)
fxch st(1)
fstp dword [esp + 0x1c]
je 0x4127fe
fld dword [esi + 0x18]
fmulp st(2)
fxch st(1)
faddp st(2)
fld dword [esi + 0x1c]
faddp st(2)
fxch st(1)
fstp dword [esp + 0x24]
fsubr dword [esp + 0x24]
fstp dword [esp + 0x24]
fld dword [esp + 0x1c]
fld dword [esi + 0x78]
fcomp st(1)
fnstsw ax
fld dword [esp + 0x24]
test ah, 0x41
jne 0x4127ba
fld dword [esi + 0x78]
fcomp st(1)
fnstsw ax
test ah, 5
jnp 0x41280d
fld dword [esi + 0x78]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x4127d2
fld dword [esi + 0x78]
fcomp st(2)
fnstsw ax
test ah, 5
jnp 0x41280d
fcom st(1)
fnstsw ax
fld dword [esi + 0x78]
test ah, 0x41
jne 0x4127ee
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x4127f7
fstp st(1)
fstp dword [esi + 0x78]
jmp 0x412811
fcomp st(2)
fnstsw ax
test ah, 0x41
jne 0x4127e7
fstp st(0)
fstp dword [esi + 0x78]
jmp 0x412811
fstp st(1)
fstp st(1)
fstp st(0)
fld dword [esp + 0x1c]
fstp dword [esi + 0x78]
jmp 0x412811
fstp st(1)
fstp st(0)
cmp byte [esp + 0x1a], 0
je 0x412a17
cmp byte [esp + 0x1b], 0
je 0x412913
mov edx, dword [esp + 0x40]
sub edx, dword [esp + 0x38]
sub ecx, edi
mov dword [esp + 0x24], edx
fild dword [esp + 0x24]
mov dword [esp + 0x24], ecx
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
fst dword [esp + 0x20]
fild dword [esp + 0x24]
fstp dword [esp + 0x1c]
fld dword [esi + 0x58]
fld dword [esp + 0x20]
fld st(0)
fmulp st(2)
fld dword [esi + 0x5c]
faddp st(2)
fxch st(1)
fstp dword [esp + 0x24]
fld dword [esp + 0x24]
fld dword [esi + 0x40]
fmulp st(2)
fld dword [esi + 0x44]
faddp st(2)
fxch st(1)
fstp dword [esp + 0x24]
fsub dword [esp + 0x24]
fstp dword [esp + 0x24]
fld dword [esp + 0x24]
fld dword [esi + 0x54]
fld dword [esp + 0x1c]
fld st(0)
fmulp st(2)
fxch st(1)
fstp dword [esp + 0x24]
fld dword [esp + 0x24]
fld dword [esi + 0x3c]
fmulp st(2)
fxch st(1)
fstp dword [esp + 0x24]
fsub dword [esp + 0x24]
fdivp st(1)
fstp dword [esp + 0x24]
fld dword [esp + 0x24]
fst dword [esi + 0x90]
fild dword [esp + 0x48]
fmul st(1)
fstp dword [esp + 0x20]
fld dword [esi + 0x40]
fmulp st(2)
fild dword [esp + 0x38]
faddp st(2)
fld dword [esi + 0x44]
faddp st(2)
fxch st(1)
fstp dword [esp + 0x24]
fld dword [esp + 0x24]
fild dword [esp + 0x50]
fmulp st(2)
fxch st(1)
fstp dword [esp + 0x24]
fld dword [esp + 0x24]
fld dword [esp + 0x20]
fld st(0)
fsubp st(2)
fld dword [esi + 0x3c]
fmulp st(2)
fld dword [esi + 0x3c]
fmulp st(2)
faddp st(1)
fstp dword [esp + 0x24]
fsub dword [esp + 0x24]
fstp dword [esi + 0x7c]
jmp 0x412a17
mov eax, dword [esp + 0x40]
sub eax, dword [esp + 0x38]
sub ecx, edi
cmp byte [esi + 0x50], 0
mov dword [esp + 0x24], eax
fild dword [esp + 0x24]
mov dword [esp + 0x24], ecx
fstp dword [esp + 0x1c]
fild dword [esp + 0x38]
fstp dword [esp + 0x20]
fld dword [esi + 0x88]
fmul dword [esi + 0x3c]
fimul dword [esp + 0x24]
fiadd dword [esp + 0x48]
fstp dword [esp + 0x28]
fld dword [esi + 0x40]
fld dword [esp + 0x1c]
fld st(0)
fmulp st(2)
fld dword [esp + 0x20]
fld st(0)
faddp st(3)
fld dword [esi + 0x44]
faddp st(3)
fxch st(2)
fstp dword [esp + 0x24]
fld dword [esp + 0x24]
fld dword [esp + 0x28]
fld st(0)
fsubp st(2)
fxch st(1)
fstp dword [esp + 0x1c]
je 0x412a04
fld dword [esi + 0x48]
fmulp st(2)
fxch st(1)
faddp st(2)
fld dword [esi + 0x4c]
faddp st(2)
fxch st(1)
fstp dword [esp + 0x28]
fsubr dword [esp + 0x28]
fstp dword [esp + 0x28]
fld dword [esp + 0x1c]
fld dword [esi + 0x7c]
fcomp st(1)
fnstsw ax
fld dword [esp + 0x28]
test ah, 0x41
jne 0x4129c0
fld dword [esi + 0x7c]
fcomp st(1)
fnstsw ax
test ah, 5
jnp 0x412a13
fld dword [esi + 0x7c]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x4129d8
fld dword [esi + 0x7c]
fcomp st(2)
fnstsw ax
test ah, 5
jnp 0x412a13
fcom st(1)
fnstsw ax
fld dword [esi + 0x7c]
test ah, 0x41
jne 0x4129f4
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x4129fd
fstp st(1)
fstp dword [esi + 0x7c]
jmp 0x412a17
fcomp st(2)
fnstsw ax
test ah, 0x41
jne 0x4129ed
fstp st(0)
fstp dword [esi + 0x7c]
jmp 0x412a17
fstp st(1)
fstp st(1)
fstp st(0)
fld dword [esp + 0x1c]
fstp dword [esi + 0x7c]
jmp 0x412a17
fstp st(1)
fstp st(0)
mov cl, byte [esp + 0x30]
mov byte [ebp], cl
xor eax, eax
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret