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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4c6598
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push ebx
push ebp
push esi
push edi
mov eax, dword [0x521da0]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov ebp, ecx
xor edi, edi
or ebx, 0xffffffff
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], edi
mov dword [esp + 0x68], edi
mov dword [esp + 0x6c], edi
mov dword [esp + 0x70], edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x48], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], edi
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
xor esi, esi
cmp dword [ebp + 0x104], edi
mov dword [esp + 0x80], edi
mov dword [esp + 0x18], esi
jle 0x41a4fa
lea ecx, [ecx]
push esi
mov ecx, ebp
call fcn.00418710
test eax, eax
jne 0x41a4e9
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x40]
lea ebx, [ebp + 0xbc]
push ecx
mov ecx, ebx
call fcn.00419600
mov edi, dword [eax]
mov esi, dword [eax + 4]
mov ebx, dword [ebx + 0x18]
mov eax, dword [ebp + 0xbc]
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], esi
test edi, edi
je 0x41a265
cmp edi, eax
je 0x41a26a
call fcn.00496353
cmp esi, ebx
je 0x41a4e0
test edi, edi
jne 0x41a34c
call fcn.00496353
cmp esi, dword [edi + 0x18]
jne 0x41a289
call fcn.00496353
mov eax, dword [esi + 0x1c]
mov edx, dword [esi + 0x18]
mov ecx, dword [esi + 0x20]
mov edi, dword [esi + 0x10]
mov dword [esp + 0x50], eax
mov eax, dword [esi + 0x24]
mov dword [esp + 0x4c], edx
mov edx, dword [esi + 0x14]
mov dword [esp + 0x58], eax
mov eax, dword [esi + 0x28]
mov dword [esp + 0x54], ecx
mov ecx, dword [esi + 0x2c]
mov dword [esp + 0x48], edx
mov edx, dword [esi + 0x30]
mov ebx, 1
mov dword [esp + 0x44], edi
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], edx
cmp eax, ebx
jne 0x41a48b
cmp edi, 0xffffffff
je 0x41a48b
mov eax, dword [ebp + 0x11c]
sub eax, dword [ebp + 0x118]
sar eax, 2
cmp edi, eax
jb 0x41a2f6
call fcn.00496353
mov ecx, dword [ebp + 0x118]
mov esi, dword [ecx + edi*4]
xor ecx, ecx
cmp dword [esi + 0xb8], ecx
je 0x41a48b
cmp dword [ebp + 0x1910], ebx
jne 0x41a321
cmp dword [esi + 0x1ac], ebx
je 0x41a48b
mov eax, 0x270f
cmp dword [esi + 0x2a0], eax
je 0x41a353
cmp dword [esi + 0x2a4], eax
je 0x41a353
mov edx, dword [esi + 0x2a0]
mov eax, dword [esi + 0x2a4]
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], eax
jmp 0x41a35b
mov edi, dword [edi]
jmp 0x41a27f
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], ecx
fild dword [esp + 0x58]
push ecx
mov ecx, dword [esi + 0x28c]
add ecx, 0x68
fstp dword [esp + 0x28]
fild dword [esp + 0x20]
fstp dword [esp + 0x20]
fild dword [esp + 0x24]
fstp dword [esp + 0x24]
call dword [0x4ce6cc]
fld dword [ebp + 0x18b8]
mov ecx, dword [eax]
fsub dword [esp + 0x24]
mov edi, dword [0x4ce6ac]
sub esp, 0xc
fstp dword [esp + 0x34]
fld dword [esp + 0x34]
fstp dword [esp + 8]
fild dword [esp + 0x5c]
fadd dword [esp + 0x28]
fstp dword [esp + 0x34]
fld dword [esp + 0x34]
fstp dword [esp + 4]
fild dword [esp + 0x58]
fadd dword [esp + 0x2c]
fstp dword [esp + 0x34]
fld dword [esp + 0x34]
fstp dword [esp]
call edi
cmp dword [esi + 0xd4], ebx
jne 0x41a447
cmp dword [esi + 0x138], 0
jne 0x41a447
mov ecx, dword [esi + 0x190]
mov edx, dword [esi + 0x194]
mov dword [esp + 0x34], ecx
mov ecx, dword [esi + 0x160]
push 0
add ecx, 0x68
mov dword [esp + 0x3c], edx
call dword [0x4ce6cc]
fld dword [ebp + 0x18b8]
fsub dword [esp + 0x24]
mov ecx, dword [eax]
sub esp, 0xc
fstp dword [esp + 0x34]
fld dword [esp + 0x34]
fstp dword [esp + 8]
fild dword [esp + 0x44]
fadd dword [esp + 0x28]
fstp dword [esp + 0x34]
fld dword [esp + 0x34]
fstp dword [esp + 4]
fild dword [esp + 0x40]
fadd dword [esp + 0x2c]
fstp dword [esp + 0x34]
fld dword [esp + 0x34]
fstp dword [esp]
call edi
fld1
fcomp dword [esi + 0x244]
fnstsw ax
test ah, 0x44
jnp 0x41a48b
mov ecx, dword [esi + 0x28c]
push 0
add ecx, 0x68
call dword [0x4ce6cc]
fld1
mov ecx, dword [eax]
sub esp, 0xc
fstp dword [esp + 8]
fld dword [esi + 0x244]
fstp dword [esp + 4]
fld dword [esi + 0x244]
fstp dword [esp]
call dword [0x4ce614]
lea ecx, [esp + 0x2c]
call fcn.004180c0
mov ecx, dword [ebp + 0xd4]
mov eax, dword [ecx + 4]
cmp byte [eax + 0x41], 0
mov ebx, ecx
jne 0x41a4bd
mov ecx, dword [esp + 0x18]
cmp ecx, dword [eax + 0xc]
jge 0x41a4b4
mov ebx, eax
mov eax, dword [eax]
jmp 0x41a4b7
mov eax, dword [eax + 8]
cmp byte [eax + 0x41], 0
je 0x41a4a5
mov edi, dword [esp + 0x2c]
mov eax, dword [ebp + 0xbc]
test edi, edi
je 0x41a4cf
cmp edi, eax
je 0x41a4d4
call fcn.00496353
mov esi, dword [esp + 0x30]
cmp esi, ebx
jne 0x41a272
mov esi, dword [esp + 0x18]
or ebx, 0xffffffff
xor edi, edi
inc esi
cmp esi, dword [ebp + 0x104]
mov dword [esp + 0x18], esi
jl 0x41a220
cmp dword [ebp + 0x18c8], edi
je 0x41a59a
cmp dword [ebp + 0x1854], 1
jne 0x41a53d
mov ecx, dword [ebp + 0x1858]
push edi
add ecx, 0x68
call dword [0x4ce6cc]
fld dword [0x4cf1cc]
mov ecx, dword [eax]
sub esp, 0xc
fstp dword [esp + 8]
fldz
fst dword [esp + 4]
fstp dword [esp]
call dword [0x4ce6ac]
mov eax, dword [ebp + 0x18bc]
cmp dword [eax + 0xd0], ebx
jne 0x41a551
mov dword [eax + 0xd0], edi
mov ecx, dword [ebp + 0x18bc]
push edi
add ecx, 0x68
call dword [0x4ce6cc]
mov edx, dword [eax]
cmp byte [edx + 0x260], 0
jne 0x41a59a
mov ecx, dword [ebp + 0x18bc]
push edi
add ecx, 0x68
call dword [0x4ce6cc]
fld dword [0x4cf1cc]
mov ecx, dword [eax]
sub esp, 0xc
fstp dword [esp + 8]
fldz
fst dword [esp + 4]
fstp dword [esp]
call dword [0x4ce6ac]
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret