Function at 0x40c4f0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x456454
mov eax, dword fs:[0]
push eax
sub esp, 0xa80
mov eax, dword [0x479084]
xor eax, esp
mov dword [esp + 0xa78], eax
push ebx
push esi
push edi
mov eax, dword [0x479084]
xor eax, esp
push eax
lea eax, [esp + 0xa90]
mov dword fs:[0], eax
mov edi, 0x114
push edi
xor esi, esi
push esi
mov ebx, 0x47c600
push ebx
call fcn.00413420
add esp, 0xc
mov dword [0x47c600], edi
call fcn.0043d8a6
push ebx
call dword [eax + 0x54]
fld qword [0x473a58]
mov dword [0x47c718], esi
mov dword [0x47c714], esi
fstp qword [esp + 0x14]
fld qword [esp + 0x14]
fsub qword [esp + 0x14]
fld qword [esp + 0x14]
fmul qword [0x473a00]
fsubp st(1)
fadd qword [0x473960]
fadd qword [esp + 0x14]
fstp qword [esp + 0x14]
fld qword [esp + 0x14]
fmul qword [0x4739f8]
fld qword [esp + 0x14]
fadd qword [0x4739f0]
faddp st(1)
fstp qword [esp + 0x14]
fld qword [esp + 0x14]
fadd qword [0x473980]
fadd qword [esp + 0x14]
fld qword [esp + 0x14]
fmul qword [0x4739e8]
faddp st(1)
fsub qword [0x4739e0]
fstp qword [esp + 0x14]
fld qword [esp + 0x14]
fmul qword [esp + 0x14]
fld qword [esp + 0x14]
fadd qword [0x4739d8]
faddp st(1)
fld qword [esp + 0x14]
fmul qword [0x4739d0]
fmul qword [esp + 0x14]
fsubp st(1)
fadd qword [0x473a68]
fsub qword [esp + 0x14]
fsub qword [0x4739c8]
fadd qword [esp + 0x14]
fsub qword [esp + 0x14]
fsub qword [esp + 0x14]
fstp qword [esp + 0x14]
fld qword [esp + 0x14]
fdiv qword [0x473a60]
fadd qword [esp + 0x14]
fadd qword [esp + 0x14]
fsub qword [esp + 0x14]
fstp qword [esp + 0x14]
fld qword [esp + 0x14]
fsub qword [esp + 0x14]
fsub qword [esp + 0x14]
fstp qword [esp + 0x14]
fld qword [esp + 0x14]
fadd qword [esp + 0x14]
fstp qword [esp + 0x14]
fld qword [esp + 0x14]
fmul qword [esp + 0x14]
fadd qword [esp + 0x14]
fstp qword [esp + 0x14]
fld qword [esp + 0x14]
mov dword [esp + 0x2c], esi
fsub qword [0x473a50]
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
fstp qword [esp + 0x14]
mov dword [esp + 0xa98], esi
push dword [0x47a8ec]
push reloc.OLEAUT32.dll_SysReAllocString
mov eax, 0x20019
lea ebx, [esp + 0x34]
call fcn.00405180
test eax, eax
jne 0x40c800
push 0x7fe
mov word [esp + 0x288], ax
xor ebx, ebx
lea eax, [esp + 0x28a]
push ebx
push eax
call fcn.00413420
add esp, 0xc
push dword [0x47a8f0]
lea eax, [esp + 0x30]
push eax
lea esi, [esp + 0x40]
lea edi, [esp + 0x28c]
mov dword [esp + 0x40], 0x400
call fcn.0040b420
test eax, eax
jne 0x40c800
mov eax, edi
push eax
lea eax, [esp + 0x48]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
call fcn.00405659
lea eax, [esp + 0x44]
push eax
mov ecx, 0xfde9
lea edx, [esp + 0x64]
mov byte [esp + 0xa9c], 1
call fcn.0044abe1
cmp dword [eax + 0x14], 0x10
pop ecx
jb 0x40c71b
mov eax, dword [eax]
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x28]
push ecx
push dword [0x47a270]
push eax
call fcn.00414224
add esp, 0x10
cmp eax, 2
sete bl
push 1
xor edi, edi
lea esi, [esp + 0x64]
call fcn.004051ee
push 1
lea esi, [esp + 0x48]
call fcn.00405532
test bl, bl
je 0x40c800
mov eax, dword [esp + 0x24]
fld qword [0x473920]
mov dword [0x47c714], eax
fstp qword [esp + 0x3c]
fld qword [0x473918]
fstp qword [esp + 0x14]
fld qword [0x473910]
fstp qword [esp + 0x1c]
fld qword [0x473908]
fstp qword [esp + 0x1c]
fld qword [0x473900]
fstp qword [esp + 0x1c]
fld qword [esp + 0x14]
fcomp qword [esp + 0x14]
fnstsw ax
test ah, 1
jne 0x40c7b0
fld qword [esp + 0x1c]
fadd qword [esp + 0x3c]
fstp qword [esp + 0x1c]
mov eax, dword [esp + 0x28]
mov dword [0x47c718], eax
mov dword [esp + 0x14], 0x4f
mov dword [esp + 0x14], 0x47
mov dword [esp + 0x1c], 0x15
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
cmp ecx, eax
jle 0x40c800
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x1c]
cmp eax, ecx
je 0x40c800
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
imul eax, eax, 0x29
lea eax, [eax + ecx - 0x12]
add eax, dword [esp + 0x14]
mov dword [esp + 0x1c], eax
or dword [esp + 0xa98], 0xffffffff
cmp dword [esp + 0x2c], 0
je 0x40c819
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
push 0x206
push eax
mov word [esp + 0x84], ax
lea eax, [esp + 0x86]
push eax
call fcn.00413420
push dword [0x47a8f4]
lea eax, [esp + 0x8c]
push eax
call fcn.00413b22
add esp, 0x14
lea eax, [esp + 0x7c]
push eax
call fcn.0043df94
lea eax, [esp + 0x7c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
neg eax
sbb eax, eax
and eax, 0x20
add eax, 0x20
mov dword [0x47c71c], eax
mov eax, 0x47c600
mov ecx, dword [esp + 0xa90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa78]
xor ecx, esp
call fcn.0041134f
mov esp, ebp
pop ebp
ret