Function at 0x40d87f
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x462f8b
mov eax, dword fs:[0]
push eax
sub esp, 0xa88
mov eax, dword [0x486084]
xor eax, esp
mov dword [esp + 0xa80], eax
push ebx
push esi
push edi
mov eax, dword [0x486084]
xor eax, esp
push eax
lea eax, [esp + 0xa98]
mov dword fs:[0], eax
mov edi, 0x114
push edi
xor esi, esi
push esi
mov ebx, 0x4895f8
push ebx
call fcn.00414750
add esp, 0xc
mov dword [0x4895f8], edi
call fcn.004450da
push ebx
call dword [eax + 0x5c]
mov dword [0x489710], esi
mov dword [0x48970c], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0xaa0], esi
push dword [0x4878dc]
mov eax, 0x20019
push reloc.OLEAUT32.dll_SysReAllocString
lea ebx, [esp + 0x3c]
call fcn.00405df2
test eax, eax
jne 0x40dc4c
push 0x7fe
mov word [esp + 0x290], ax
xor ebx, ebx
lea eax, [esp + 0x292]
push ebx
push eax
call fcn.00414750
fld qword [0x480950]
mov dword [esp + 0x54], 0x400
fstp qword [esp + 0x20]
fld qword [esp + 0x20]
add esp, 0xc
fmul qword [esp + 0x14]
lea eax, [esp + 0x34]
lea esi, [esp + 0x48]
lea edi, [esp + 0x28c]
fmul qword [esp + 0x14]
fld qword [esp + 0x14]
fmul qword [0x4808f0]
faddp st(1)
fstp qword [esp + 0x14]
fld qword [esp + 0x14]
fld qword [0x480ae8]
fsub st(1), st(0)
fld qword [esp + 0x14]
faddp st(2)
fxch st(1)
fadd qword [0x480908]
fstp qword [esp + 0x14]
fld qword [esp + 0x14]
fsub qword [0x480ad8]
fadd qword [esp + 0x14]
fadd qword [esp + 0x14]
fsub qword [0x480a68]
fsub qword [esp + 0x14]
fstp qword [esp + 0x14]
fld qword [esp + 0x14]
fmul qword [0x480ad0]
fadd qword [esp + 0x14]
fsub qword [0x480ac8]
fld qword [esp + 0x14]
fdiv qword [0x480980]
fsubp st(1)
fsub qword [esp + 0x14]
fstp qword [esp + 0x14]
fld qword [esp + 0x14]
fadd qword [esp + 0x14]
fstp qword [esp + 0x14]
fsubr qword [esp + 0x14]
fstp qword [esp + 0x14]
fld qword [esp + 0x14]
fmul qword [esp + 0x14]
push dword [0x4878e0]
push eax
fstp qword [esp + 0x1c]
call fcn.0040c7f6
test eax, eax
jne 0x40dc4c
fld qword [0x480950]
mov dword [esp + 0x44], ebx
mov dword [esp + 0x40], ebx
fstp qword [esp + 0x14]
fld qword [esp + 0x14]
mov eax, edi
fmul qword [esp + 0x14]
push eax
lea eax, [esp + 0x50]
fmul qword [esp + 0x18]
fld qword [esp + 0x18]
fmul qword [0x4808f0]
faddp st(1)
fstp qword [esp + 0x18]
fld qword [esp + 0x18]
fld qword [0x480ae8]
fsub st(1), st(0)
fld qword [esp + 0x18]
faddp st(2)
fxch st(1)
fadd qword [0x480908]
fstp qword [esp + 0x18]
fld qword [esp + 0x18]
fsub qword [0x480ad8]
fadd qword [esp + 0x18]
fadd qword [esp + 0x18]
fsub qword [0x480a68]
fsub qword [esp + 0x18]
fstp qword [esp + 0x18]
fld qword [esp + 0x18]
fmul qword [0x480ad0]
fadd qword [esp + 0x18]
fsub qword [0x480ac8]
fld qword [esp + 0x18]
fdiv qword [0x480980]
fsubp st(1)
fsub qword [esp + 0x18]
fstp qword [esp + 0x18]
fld qword [esp + 0x18]
fadd qword [esp + 0x18]
fstp qword [esp + 0x18]
fsubr qword [esp + 0x18]
fstp qword [esp + 0x18]
fld qword [esp + 0x18]
fmul qword [esp + 0x18]
fstp qword [esp + 0x18]
call fcn.004062cb
lea eax, [esp + 0x4c]
push eax
mov ecx, 0xfde9
lea edx, [esp + 0x6c]
mov byte [esp + 0xaa4], 1
call fcn.00455921
cmp dword [eax + 0x14], 0x10
pop ecx
jb 0x40db00
mov eax, dword [eax]
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esp + 0x48]
push ecx
push dword [0x487270]
push eax
call fcn.00415554
add esp, 0x10
cmp eax, 2
sete bl
push 1
xor edi, edi
lea esi, [esp + 0x6c]
call fcn.00405e60
push 1
lea esi, [esp + 0x50]
call fcn.004061a4
test bl, bl
je 0x40dc4c
mov eax, dword [esp + 0x44]
fld qword [0x480968]
mov dword [0x48970c], eax
fstp qword [esp + 0x24]
fld qword [0x480a60]
fstp qword [esp + 0x14]
fld qword [0x480960]
fst qword [esp + 0x2c]
fld qword [0x480928]
fstp qword [esp + 0x1c]
fld qword [esp + 0x14]
fcomp qword [esp + 0x1c]
fnstsw ax
fld qword [0x480a78]
fld1
test ah, 1
jne 0x40dbd7
fld qword [esp + 0x1c]
fmul qword [0x480a58]
fadd qword [esp + 0x14]
fsub qword [esp + 0x24]
fld qword [esp + 0x2c]
fmul st(3)
faddp st(1)
fld qword [esp + 0x14]
fdivrp st(4)
fld qword [esp + 0x14]
fmulp st(4)
faddp st(3)
fadd st(2), st(0)
fld qword [esp + 0x14]
faddp st(3)
fld qword [esp + 0x2c]
fmul qword [0x4808f0]
fsubp st(3)
fld qword [esp + 0x2c]
fmul qword [0x480a50]
faddp st(3)
fxch st(2)
fstp qword [esp + 0x2c]
jmp 0x40dbd9
fstp st(2)
fld qword [esp + 0x24]
fsub qword [esp + 0x14]
fsubrp st(2)
fld qword [esp + 0x14]
fmul qword [esp + 0x24]
faddp st(2)
fxch st(1)
fsub qword [0x480a18]
fstp qword [esp + 0x1c]
fld qword [esp + 0x2c]
fld qword [0x480a68]
fmul st(1), st(0)
fld qword [esp + 0x1c]
fmul qword [esp + 0x2c]
fsubp st(2)
fxch st(1)
fsubrp st(2)
fld qword [esp + 0x2c]
faddp st(2)
fxch st(1)
fadd qword [0x480900]
fsub qword [esp + 0x24]
fsub qword [esp + 0x14]
fstp qword [esp + 0x14]
fsubr qword [esp + 0x14]
fstp qword [esp + 0x14]
fld qword [esp + 0x1c]
mov eax, dword [esp + 0x40]
fadd qword [0x480938]
mov dword [0x489710], eax
fstp qword [esp + 0x1c]
xor esi, esi
cmp dword [esp + 0x34], esi
je 0x40dc62
push dword [esp + 0x34]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x34], esi
xor eax, eax
push 0x206
mov word [esp + 0x88], ax
lea eax, [esp + 0x8a]
push esi
push eax
mov dword [esp + 0x44], esi
call fcn.00414750
push dword [0x4878e4]
lea eax, [esp + 0x94]
push eax
call fcn.00414e52
fld qword [0x480a18]
fstp qword [esp + 0x38]
add esp, 0x14
fld qword [0x4809b0]
push 0x104
fst qword [esp + 0x28]
lea eax, [esp + 0x88]
fld qword [0x480a10]
push eax
fst qword [esp + 0x2c]
fld qword [0x480a08]
fstp qword [esp + 0x24]
fstp qword [esp + 0x2c]
fld qword [esp + 0x24]
fadd qword [0x480a00]
fsub qword [esp + 0x2c]
faddp st(1)
fadd qword [esp + 0x2c]
fstp qword [esp + 0x24]
call dword [sym.imp.SHELL32.dll_DoEnvironmentSubstW]
fld qword [0x480ae8]
fstp qword [esp + 0x24]
fld qword [0x480a40]
fstp qword [esp + 0x1c]
fld qword [0x480958]
fstp qword [esp + 0x14]
fld qword [esp + 0x14]
fcomp qword [esp + 0x14]
fnstsw ax
test ah, 0x41
jne 0x40dd8f
fld qword [esp + 0x14]
fmul qword [0x480908]
fmul qword [esp + 0x1c]
fmul qword [0x4809d8]
fmul qword [esp + 0x14]
fld qword [esp + 0x14]
fld qword [0x480920]
fmul st(1), st(0)
fld qword [esp + 0x14]
faddp st(2)
fxch st(2)
faddp st(1)
fsub qword [esp + 0x14]
fstp qword [esp + 0x1c]
fld qword [esp + 0x1c]
fmul qword [esp + 0x1c]
fld qword [esp + 0x14]
fld qword [0x480990]
fsub st(1), st(0)
fxch st(2)
faddp st(1)
fsub qword [0x480ac0]
fsub qword [esp + 0x24]
faddp st(2)
fld qword [esp + 0x14]
fmul qword [esp + 0x1c]
fsubp st(2)
fxch st(1)
fstp qword [esp + 0x24]
fadd qword [esp + 0x14]
fstp qword [esp + 0x1c]
lea eax, [esp + 0x84]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
neg eax
sbb eax, eax
and eax, 0x20
add eax, 0x20
mov dword [0x489714], eax
mov eax, 0x4895f8
mov ecx, dword [esp + 0xa98]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa80]
xor ecx, esp
call fcn.00412683
mov esp, ebp
pop ebp
ret