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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4c68bb
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x4f06b4]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push esi
push edi
mov eax, dword [0x4f06b4]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
cmp byte [ebp + 0x18], 0
mov edi, ecx
mov dword [esp + 0x1c], edi
je 0x490b76
mov al, 1
jmp 0x490d94
lea ebx, [edi + 0xf4]
push ebx
call fcn.0048f71d
cmp byte [ebp + 8], 0
je 0x490c87
test al, al
je 0x490c87
cmp dword [ebx + 0x14], 8
jb 0x490b9e
mov eax, dword [ebx]
jmp 0x490ba0
mov eax, ebx
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x490c3a
cmp dword [ebx + 0x14], 8
jb 0x490bb9
mov eax, dword [ebx]
jmp 0x490bbb
mov eax, ebx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne al
test al, al
jne 0x490c3a
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub esp, 0x1c
push 7
pop ecx
mov edi, esp
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [0x4f546c]
push str.Failed_to_CreateDirectory__s_
push 3
mov dword [esp + 0x3c], eax
call fcn.0047b68e
add esp, 0x24
push 1
push dword [esp + 0x1c]
sub esp, 0x1c
mov esi, esp
mov dword [esp + 0x3c], esp
push ebx
call fcn.00409de0
lea ebx, [esp + 0x44]
call fcn.004899c5
and dword [esp + 0x58], 0
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx]
push eax
push 3
call dword [edx + 0x24c]
lea ecx, [esp + 0x20]
call fcn.00489a41
xor al, al
jmp 0x490d94
cmp byte [ebp + 0x10], 0
je 0x490c87
push 0x20
call fcn.004a59a9
pop ecx
test eax, eax
je 0x490c65
mov dword [eax], vtable.CUninstallItemDeleteProgramDir.0
and dword [eax + 0x14], 0
xor ecx, ecx
mov dword [eax + 0x18], 7
mov word [eax + 4], cx
jmp 0x490c67
xor eax, eax
mov cl, byte [edi + 0x3a0]
mov dword [esp + 0x18], eax
lea esi, [edi + 0x3a4]
lea eax, [esp + 0x18]
test cl, cl
jne 0x490c82
add esi, 0x10
call fcn.0049554b
lea ebx, [edi + 0x148]
push ebx
mov ecx, edi
call fcn.0048f71d
cmp byte [ebp + 0xc], 0
mov byte [esp + 0x17], al
je 0x490d90
test al, al
je 0x490d90
cmp dword [ebx + 0x14], 8
jb 0x490cb5
mov eax, dword [ebx]
jmp 0x490cb7
mov eax, ebx
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x490d3b
cmp dword [ebx + 0x14], 8
jb 0x490ccc
mov eax, dword [ebx]
jmp 0x490cce
mov eax, ebx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne byte [esp + 0x17]
cmp byte [esp + 0x17], 0
jne 0x490d3b
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub esp, 0x1c
push 7
pop ecx
mov edi, esp
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [0x4f546c]
push str.Failed_to_CreateDirectory__s_
push 3
mov dword [esp + 0x3c], eax
call fcn.0047b68e
add esp, 0x24
push 2
push dword [esp + 0x1c]
sub esp, 0x1c
mov esi, esp
mov dword [esp + 0x3c], esp
push ebx
call fcn.00409de0
lea ebx, [esp + 0x44]
call fcn.004899c5
mov dword [esp + 0x58], 1
jmp 0x490c1b
cmp byte [ebp + 0x14], 0
je 0x490d90
push 0x24
call fcn.004a59a9
xor esi, esi
pop ecx
cmp eax, esi
je 0x490d67
mov dword [eax], vtable.CUninstallItemDeleteAppDataDir.0
mov dword [eax + 0x14], esi
xor ecx, ecx
mov dword [eax + 0x18], 7
mov word [eax + 4], cx
mov esi, eax
push 0xffffffffffffffff
push 0
lea eax, [edi + 0x164]
lea ecx, [esi + 4]
call fcn.0040a347
mov byte [esi + 0x20], 0
mov dword [esp + 0x1c], esi
lea esi, [edi + 0x3c4]
lea eax, [esp + 0x1c]
call fcn.0049554b
mov al, byte [esp + 0x17]
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.004a545d
mov esp, ebp
pop ebp
ret 0x14