Function at 0x40c71d
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x459d15
mov eax, dword fs:[0]
push eax
sub esp, 0xa78
mov eax, dword [0x47d084]
xor eax, esp
mov dword [esp + 0xa70], eax
push ebx
push esi
push edi
mov eax, dword [0x47d084]
xor eax, esp
push eax
lea eax, [esp + 0xa88]
mov dword fs:[0], eax
mov esi, 0x114
push esi
xor edi, edi
push edi
mov ebx, 0x4805f8
push ebx
call fcn.00413610
add esp, 0xc
push ebx
mov dword [0x4805f8], esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov dword [esp + 0x10], 0x10
mov dword [esp + 0x1c], 0x51
mov dword [esp + 0x14], 0x1e
mov eax, dword [esp + 0x10]
add eax, 0xb
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x1c]
imul eax, ecx
mov ecx, dword [esp + 0x10]
imul ecx, ecx, 0x50
sub ecx, eax
mov eax, dword [esp + 0x14]
sub ecx, eax
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
cmp eax, ecx
jne 0x40c834
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
imul eax, ecx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
lea eax, [ecx + eax - 0x2e]
add eax, dword [esp + 0x1c]
add eax, dword [esp + 0x10]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
imul eax, ecx
mov ecx, dword [esp + 0x10]
imul eax, eax, 0x33
mov edx, dword [esp + 0x10]
imul ecx, edx
add eax, ecx
mov ecx, dword [esp + 0x10]
sub eax, ecx
mov ecx, dword [esp + 0x10]
sub eax, ecx
add eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x1c]
lea eax, [eax + ecx + 0x58]
mov dword [esp + 0x14], eax
mov dword [0x480710], edi
mov dword [0x48070c], edi
mov dword [esp + 0x10], 0x28
add dword [esp + 0x10], 0x62
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x10]
imul ecx, eax
mov eax, dword [esp + 0x10]
cdq
push 0x54
pop esi
idiv esi
push 0x2c
add ecx, eax
mov eax, dword [esp + 0x14]
sub ecx, eax
sub ecx, 0x11
mov dword [esp + 0x14], ecx
mov eax, dword [esp + 0x14]
cdq
pop ecx
idiv ecx
push 0x34
pop ecx
cdq
idiv ecx
add eax, dword [esp + 0x10]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x10]
imul eax, eax, 0x3d
sub ecx, eax
mov eax, dword [esp + 0x10]
sub ecx, eax
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x10]
imul eax, eax, 9
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
imul eax, eax, 0x59
mov dword [esp + 0x10], eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0xa90], edi
push dword [0x47e8d4]
mov eax, 0x20019
push reloc.OLEAUT32.dll_SysReAllocString
lea ebx, [esp + 0x34]
call fcn.004052e3
test eax, eax
jne 0x40cb92
push 0x7fe
mov word [esp + 0x280], ax
xor ebx, ebx
lea eax, [esp + 0x282]
push ebx
push eax
call fcn.00413610
fld qword [0x477948]
mov dword [esp + 0x20], 0x2a
mov dword [esp + 0x1c], 0x3b
mov eax, dword [esp + 0x20]
imul eax, eax, 0x1f
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x1c]
imul eax, eax, 0x11
sub ecx, eax
mov eax, dword [esp + 0x1c]
imul ecx, ecx, 5
sub ecx, eax
mov eax, dword [esp + 0x1c]
sub ecx, eax
mov eax, dword [esp + 0x1c]
sub ecx, eax
mov eax, dword [esp + 0x20]
sub ecx, eax
mov eax, dword [esp + 0x20]
sub ecx, eax
mov eax, dword [esp + 0x20]
sub ecx, eax
mov eax, dword [esp + 0x1c]
lea eax, [ecx + eax - 0x12]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x20]
add esp, 0xc
imul eax, ecx
mov ecx, dword [esp + 0x10]
lea eax, [ecx + eax*4]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x38], 0x400
lea eax, [eax + ecx + 3]
mov dword [esp + 0x10], eax
fstp qword [esp + 0x14]
fld qword [esp + 0x14]
fld qword [0x477958]
fadd st(1), st(0)
fxch st(1)
fstp qword [esp + 0x14]
fld qword [esp + 0x14]
fsub qword [esp + 0x14]
fld qword [esp + 0x14]
fmul qword [0x477940]
fsubp st(1)
fadd qword [esp + 0x14]
fld qword [esp + 0x14]
fmul qword [0x477938]
fmul qword [0x477930]
fmul qword [esp + 0x14]
fmul qword [0x477928]
fsubp st(1)
fstp qword [esp + 0x14]
fld qword [esp + 0x14]
fadd qword [0x477920]
fstp qword [esp + 0x14]
fld qword [esp + 0x14]
fadd qword [esp + 0x14]
fld qword [esp + 0x14]
fmul qword [0x477918]
fsubp st(1)
fsub qword [0x477910]
fstp qword [esp + 0x14]
fld qword [esp + 0x14]
fsub qword [0x477908]
fstp qword [esp + 0x14]
fld qword [esp + 0x14]
fmul qword [0x477900]
fsub qword [esp + 0x14]
fsub qword [0x4778f8]
fstp qword [esp + 0x14]
fld qword [esp + 0x14]
fmul qword [esp + 0x14]
lea eax, [esp + 0x2c]
lea esi, [esp + 0x38]
lea edi, [esp + 0x27c]
fadd qword [esp + 0x14]
fsub qword [esp + 0x14]
fadd qword [esp + 0x14]
fadd qword [esp + 0x14]
fsub qword [esp + 0x14]
fsub qword [esp + 0x14]
fld qword [esp + 0x14]
fmul qword [0x4778f0]
faddp st(1)
fadd qword [esp + 0x14]
fadd qword [esp + 0x14]
faddp st(1)
fstp qword [esp + 0x14]
fld qword [esp + 0x14]
fmul qword [0x4778e8]
fsub qword [esp + 0x14]
fld qword [esp + 0x14]
fmul qword [esp + 0x14]
faddp st(1)
fld qword [0x477950]
fadd st(1), st(0)
fld qword [esp + 0x14]
fsubp st(2)
fxch st(1)
fsub qword [0x4778e0]
fsub qword [esp + 0x14]
fadd qword [esp + 0x14]
fsub qword [0x4778d8]
fadd qword [esp + 0x14]
fsub qword [0x4778d0]
fstp qword [esp + 0x14]
fld qword [esp + 0x14]
fsub qword [esp + 0x14]
fld qword [esp + 0x14]
fmul qword [0x4778c8]
fsubp st(1)
fsub qword [esp + 0x14]
fld qword [esp + 0x14]
fmulp st(2)
fxch st(1)
fmul qword [0x4778c0]
faddp st(1)
fld qword [esp + 0x14]
fmul qword [esp + 0x14]
push dword [0x47e8d8]
push eax
faddp st(1)
fstp qword [esp + 0x1c]
call fcn.0040b5bd
test eax, eax
jne 0x40cb92
mov eax, edi
push eax
lea eax, [esp + 0x40]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
call fcn.004057bc
push 0xfde9
lea edx, [esp + 0x40]
lea ecx, [esp + 0x5c]
mov byte [esp + 0xa94], 1
call fcn.0044ddf8
cmp dword [eax + 0x14], 0x10
pop ecx
jb 0x40cb45
mov eax, dword [eax]
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x28]
push ecx
push dword [0x47e270]
push eax
call fcn.00414414
add esp, 0x10
cmp eax, 2
sete bl
push 1
xor edi, edi
lea esi, [esp + 0x5c]
call fcn.00405351
push 1
lea esi, [esp + 0x40]
call fcn.00405695
test bl, bl
je 0x40cb92
mov eax, dword [esp + 0x24]
mov dword [0x48070c], eax
mov eax, dword [esp + 0x28]
mov dword [0x480710], eax
or dword [esp + 0xa90], 0xffffffff
xor esi, esi
cmp dword [esp + 0x2c], esi
je 0x40cbb0
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x2c], esi
xor eax, eax
push 0x206
mov word [esp + 0x78], ax
lea eax, [esp + 0x7a]
push esi
push eax
mov dword [esp + 0x3c], esi
call fcn.00413610
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x51
mov dword [esp + 0x28], 0x1e
mov eax, dword [esp + 0x1c]
add eax, 0xb
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x20]
imul eax, ecx
mov ecx, dword [esp + 0x1c]
imul ecx, ecx, 0x50
sub ecx, eax
mov eax, dword [esp + 0x28]
sub ecx, eax
mov dword [esp + 0x1c], ecx
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x1c]
add esp, 0xc
cmp eax, ecx
jne 0x40cc81
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
imul eax, ecx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
lea eax, [ecx + eax - 0x2e]
add eax, dword [esp + 0x14]
add eax, dword [esp + 0x10]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
imul eax, ecx
mov ecx, dword [esp + 0x10]
imul eax, eax, 0x33
mov edx, dword [esp + 0x10]
imul ecx, edx
add eax, ecx
mov ecx, dword [esp + 0x10]
sub eax, ecx
mov ecx, dword [esp + 0x10]
sub eax, ecx
add eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x14]
lea eax, [eax + ecx + 0x58]
mov dword [esp + 0x1c], eax
push dword [0x47e8dc]
lea eax, [esp + 0x78]
push eax
call fcn.00413d12
fld qword [0x477970]
fstp qword [esp + 0x24]
pop ecx
fld qword [0x477968]
pop ecx
fstp qword [esp + 0x14]
lea eax, [esp + 0x74]
fld qword [0x477960]
push eax
fstp qword [esp + 0x18]
fld qword [esp + 0x18]
fadd qword [esp + 0x20]
fstp qword [esp + 0x18]
call fcn.004406fa
lea eax, [esp + 0x74]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
neg eax
sbb eax, eax
and eax, 0x20
add eax, 0x20
mov dword [0x480714], eax
mov eax, 0x4805f8
mov ecx, dword [esp + 0xa88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa70]
xor ecx, esp
call fcn.00411527
mov esp, ebp
pop ebp
ret