Function at 0x412480
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58ff8a
mov eax, dword fs:[0]
push eax
sub esp, 0xfc
mov eax, dword [0x5f1414]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor eax, eax
mov dword [ebp - 0x14], 7
xor ecx, ecx
mov word [ebp - 0x28], ax
cmp word [str.Slien], cx
mov eax, 5
mov dword [ebp - 0x18], 0
cmove eax, ecx
lea ecx, [ebp - 0x28]
push eax
push str.Slien
call fcn.00410890
push 0
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
mov ecx, esi
call fcn.00412d80
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x412513
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00411000
xor eax, eax
mov dword [ebp - 0x14], 7
xor ecx, ecx
mov word [ebp - 0x28], ax
cmp word [str.IsDesttopCut], cx
mov eax, 0xc
mov dword [ebp - 0x18], 0
cmove eax, ecx
lea ecx, [ebp - 0x28]
push eax
push str.IsDesttopCut
call fcn.00410890
push 1
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 1
push eax
mov ecx, esi
call fcn.00412d80
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x412576
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00411000
xor eax, eax
mov dword [ebp - 0x14], 7
xor ecx, ecx
mov word [ebp - 0x28], ax
cmp word [str.IsStartmenu], cx
mov eax, 0xb
mov dword [ebp - 0x18], 0
cmove eax, ecx
lea ecx, [ebp - 0x28]
push eax
push str.IsStartmenu
call fcn.00410890
push 1
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 2
push eax
mov ecx, esi
call fcn.00412d80
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x4125d9
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00411000
xor eax, eax
mov dword [ebp - 0x14], 7
xor ecx, ecx
mov word [ebp - 0x28], ax
cmp word [str.IsPinAppToTaskBar], cx
mov edi, 0x11
mov eax, edi
mov dword [ebp - 0x18], 0
cmove eax, ecx
lea ecx, [ebp - 0x28]
push eax
push str.IsPinAppToTaskBar
call fcn.00410890
push 1
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 3
push eax
mov ecx, esi
call fcn.00412d80
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x41263e
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00411000
xor eax, eax
mov dword [ebp - 0x14], 7
xor ecx, ecx
mov word [ebp - 0x28], ax
cmp word [str.DeleteUserDat], cx
mov eax, 0xd
mov dword [ebp - 0x18], 0
cmove eax, ecx
lea ecx, [ebp - 0x28]
push eax
push str.DeleteUserDat
call fcn.00410890
push 0
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 4
push eax
mov ecx, esi
call fcn.00412d80
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x4126a1
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00411000
push 0xe
xor eax, eax
mov dword [ebp - 0xa4], 7
push str.PaintliterUser
lea ecx, [ebp - 0xb8]
mov dword [ebp - 0xa8], 0
mov word [ebp - 0xb8], ax
call fcn.00410890
mov dword [ebp - 4], 5
lea ecx, [ebp - 0x40]
xor eax, eax
mov dword [ebp - 0x2c], 7
cmp word [str.InstallFolderName], ax
mov dword [ebp - 0x30], 0
cmove edi, eax
mov word [ebp - 0x40], ax
push edi
push str.InstallFolderName
call fcn.00410890
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x108]
mov ecx, esi
push eax
call fcn.004135f0
mov ecx, dword [ebp - 0x108]
lea eax, [ebp - 0xb8]
add ecx, 0x28
cmp ecx, eax
je 0x412736
push 0xffffffffffffffff
push 0
push eax
call fcn.00410a40
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x41274b
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00411000
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov word [ebp - 0x40], ax
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
cmp eax, 8
jb 0x412784
inc eax
lea ecx, [ebp - 0xb8]
push eax
push dword [ebp - 0xb8]
call fcn.00411000
push 2
xor eax, eax
mov dword [ebp - 0xbc], 7
push 0x5db40c
lea ecx, [ebp - 0xd0]
mov dword [ebp - 0xc0], 0
mov word [ebp - 0xd0], ax
call fcn.00410890
xor eax, eax
mov dword [ebp - 4], 7
xor ecx, ecx
mov word [ebp - 0x40], ax
cmp word [0x5db3a8], cx
mov eax, 3
mov dword [ebp - 0x2c], 7
cmove eax, ecx
mov dword [ebp - 0x30], 0
push eax
push 0x5db3a8
lea ecx, [ebp - 0x40]
call fcn.00410890
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 8
push eax
lea eax, [ebp - 0x108]
mov ecx, esi
push eax
call fcn.004135f0
mov ecx, dword [ebp - 0x108]
lea eax, [ebp - 0xd0]
add ecx, 0x28
cmp ecx, eax
je 0x412820
push 0xffffffffffffffff
push 0
push eax
call fcn.00410a40
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x412835
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00411000
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov word [ebp - 0x40], ax
mov eax, dword [ebp - 0xbc]
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
cmp eax, 8
jb 0x41286e
inc eax
lea ecx, [ebp - 0xd0]
push eax
push dword [ebp - 0xd0]
call fcn.00411000
lea ecx, [ebp - 0x28]
call fcn.0041c1b0
mov edx, eax
mov dword [ebp - 4], 9
lea ecx, [ebp - 0x88]
call fcn.0040e920
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x4128a3
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00411000
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor eax, eax
cmp dword [ebp - 0x74], 8
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x88]
cmovae eax, dword [ebp - 0x88]
push eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4128f1
cmp dword [ebp - 0x74], 8
lea eax, [ebp - 0x88]
push 0
cmovae eax, dword [ebp - 0x88]
push eax
call edi
push 0xb
xor eax, eax
mov dword [ebp - 0x44], 7
push str.InstallPath
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
call fcn.00410890
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 0xc
push eax
lea eax, [ebp - 0x108]
mov ecx, esi
push eax
call fcn.004135f0
mov ecx, dword [ebp - 0x108]
lea eax, [ebp - 0x88]
add ecx, 0x28
cmp ecx, eax
je 0x412947
push 0xffffffffffffffff
push 0
push eax
call fcn.00410a40
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x44]
cmp eax, 8
jb 0x412960
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.00411000
lea ecx, [ebp - 0x58]
call fcn.0041c0e0
mov edx, eax
mov byte [ebp - 4], 0xd
cmp dword [edx + 0x14], 8
jb 0x412976
mov edx, dword [edx]
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
cmp word [edx], ax
jne 0x412993
xor ecx, ecx
jmp 0x4129b5
mov ecx, edx
lea ebx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4129a0
sub ecx, ebx
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x40]
call fcn.00410890
lea edx, [ebp - 0x40]
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x70]
call fcn.0040eb80
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x4129e3
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00411000
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
mov byte [ebp - 4], 0x11
mov eax, dword [ebp - 0x44]
cmp eax, 8
jb 0x412a10
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.00411000
xor eax, eax
mov dword [ebp - 0x44], 7
cmp dword [ebp - 0x5c], 8
mov word [ebp - 0x58], ax
lea eax, [ebp - 0x70]
cmovae eax, dword [ebp - 0x70]
push eax
mov dword [ebp - 0x48], 0
call ebx
test eax, eax
jne 0x412a46
cmp dword [ebp - 0x5c], 8
lea eax, [ebp - 0x70]
push 0
cmovae eax, dword [ebp - 0x70]
push eax
call edi
cmp dword [ebp - 0x5c], 8
lea edx, [ebp - 0x70]
mov dword [ebp - 0xd4], 7
cmovae edx, dword [ebp - 0x70]
xor eax, eax
mov dword [ebp - 0xd8], 0
mov word [ebp - 0xe8], ax
cmp word [edx], ax
jne 0x412a77
xor ecx, ecx
jmp 0x412a8f
mov ecx, edx
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x412a80
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0xe8]
call fcn.00410890
xor eax, eax
mov byte [ebp - 4], 0x12
xor ecx, ecx
mov word [ebp - 0x28], ax
cmp word [str.UserDataPath], ax
mov eax, 0xc
mov dword [ebp - 0x14], 7
cmove eax, ecx
mov dword [ebp - 0x18], 0
push eax
push str.UserDataPath
lea ecx, [ebp - 0x28]
call fcn.00410890
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0x13
push eax
lea eax, [ebp - 0x108]
mov ecx, esi
push eax
call fcn.004135f0
mov ecx, dword [ebp - 0x108]
lea eax, [ebp - 0xe8]
add ecx, 0x28
cmp ecx, eax
je 0x412b06
push 0xffffffffffffffff
push 0
push eax
call fcn.00410a40
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x412b1b
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00411000
xor eax, eax
mov byte [ebp - 4], 0x11
mov word [ebp - 0x28], ax
mov eax, dword [ebp - 0xd4]
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
cmp eax, 8
jb 0x412b51
inc eax
lea ecx, [ebp - 0xe8]
push eax
push dword [ebp - 0xe8]
call fcn.00411000
cmp dword [ebp - 0x5c], 8
lea edx, [ebp - 0x70]
mov dword [ebp - 0x14], 7
cmovae edx, dword [ebp - 0x70]
xor eax, eax
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp word [edx], ax
jne 0x412b79
xor ecx, ecx
jmp 0x412b8f
mov ecx, edx
lea edi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x412b80
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00410890
lea edx, [ebp - 0x28]
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0xa0]
call fcn.0040ecb0
mov byte [ebp - 4], 0x16
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x412bc4
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00411000
xor eax, eax
mov dword [ebp - 0xec], 7
cmp dword [ebp - 0x8c], 8
lea edx, [ebp - 0xa0]
mov dword [ebp - 0xf0], eax
cmovae edx, dword [ebp - 0xa0]
mov word [ebp - 0x100], ax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp word [edx], ax
jne 0x412c0c
xor ecx, ecx
jmp 0x412c20
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x412c11
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x100]
call fcn.00410890
xor eax, eax
mov byte [ebp - 4], 0x17
xor ecx, ecx
mov word [ebp - 0x58], ax
cmp word [str.UserDataFilePath], cx
mov eax, 0x10
mov dword [ebp - 0x44], 7
cmove eax, ecx
mov dword [ebp - 0x48], 0
push eax
push str.UserDataFilePath
lea ecx, [ebp - 0x58]
call fcn.00410890
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 0x18
push eax
lea eax, [ebp - 0x108]
mov ecx, esi
push eax
call fcn.004135f0
mov ecx, dword [ebp - 0x108]
lea eax, [ebp - 0x100]
add ecx, 0x28
cmp ecx, eax
je 0x412c97
push 0xffffffffffffffff
push 0
push eax
call fcn.00410a40
mov eax, dword [ebp - 0x44]
cmp eax, 8
jb 0x412cac
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.00411000
xor eax, eax
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
mov eax, dword [ebp - 0xec]
mov dword [ebp - 0x48], 0
cmp eax, 8
jb 0x412cde
inc eax
lea ecx, [ebp - 0x100]
push eax
push dword [ebp - 0x100]
call fcn.00411000
mov eax, dword [ebp - 0x8c]
cmp eax, 8
jb 0x412cfc
inc eax
lea ecx, [ebp - 0xa0]
push eax
push dword [ebp - 0xa0]
call fcn.00411000
xor eax, eax
mov dword [ebp - 0x8c], 7
mov word [ebp - 0xa0], ax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x90], 0
cmp eax, 8
jb 0x412d2e
inc eax
lea ecx, [ebp - 0x70]
push eax
push dword [ebp - 0x70]
call fcn.00411000
xor eax, eax
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x60], 0
cmp eax, 8
jb 0x412d5d
inc eax
lea ecx, [ebp - 0x88]
push eax
push dword [ebp - 0x88]
call fcn.00411000
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004fb4f0
mov esp, ebp
pop ebp
ret