Function at 0x44232a
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x4f2be0]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 0x40
mov eax, 0x4afec0
call fcn.00475a5f
mov dword [ebp - 0x18], ecx
mov edi, dword [ebp + 0x214]
mov esi, 0x4f6b00
mov ecx, esi
call fcn.00439dce
mov dword [ebp - 0x30], eax
test eax, eax
jne 0x442372
push 8
pop eax
jmp 0x4427aa
mov ecx, esi
call fcn.00439dbb
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x44236a
push edi
lea ecx, [ebp - 0x10]
call fcn.00403cb4
and dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.0041597a
lea ecx, [ebp - 0x10]
call fcn.004159e2
mov ebx, dword [ebp - 0x10]
cmp dword [ebx - 0xc], 0
jne 0x4423b8
xor esi, esi
inc esi
lea ecx, [ebx - 0x10]
call fcn.004029d4
mov eax, esi
jmp 0x4427aa
mov eax, dword [edi]
cmp dword [eax - 0xc], 0x80
jle 0x4423c8
push 9
pop esi
jmp 0x4423a9
push ebx
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
je 0x4423d7
push 3
jmp 0x4423c5
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push ebx
call edi
test eax, eax
je 0x4423f3
push ebx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x4423f3
push 2
jmp 0x4423c5
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x10]
push eax
call fcn.00440a34
test eax, eax
je 0x442407
push 5
jmp 0x4423c5
push ebx
call edi
test eax, eax
jne 0x442455
lea ecx, [ebp - 0x4c]
call fcn.00433070
lea eax, [ebp - 0x20]
push eax
push ecx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x20], esp
mov ecx, esp
push eax
mov byte [ebp - 4], 1
call fcn.00403cb4
lea ecx, [ebp - 0x4c]
call fcn.00436027
xor edi, edi
lea ecx, [ebp - 0x4c]
cmp eax, edi
jne 0x44244a
call fcn.00435fd1
push 7
jmp 0x4423c5
mov byte [ebp - 4], 0
call fcn.00435fd1
jmp 0x442457
xor edi, edi
mov ecx, esi
call fcn.00439d94
mov ecx, eax
call fcn.0045e455
cmp eax, edi
je 0x442494
mov ecx, dword [eax]
push eax
call dword [ecx + 0x3c]
test eax, eax
je 0x442494
lea ecx, [ebp - 0x10]
call fcn.00414eac
push eax
call fcn.00442162
pop ecx
test eax, eax
je 0x442491
push 0x11
mov ebx, dword [ebp - 0x10]
pop esi
jmp 0x4423a9
mov ebx, dword [ebp - 0x10]
push str.:_Recyle.Bin
push ebx
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x4424ab
push 0x12
jmp 0x4423c5
mov ecx, esi
call fcn.00439d94
mov ecx, eax
mov dword [ebp - 0x28], ecx
cmp ecx, edi
je 0x442764
call fcn.0045e3d5
test eax, eax
jne 0x4426b6
push 0x208
lea eax, [ebp]
push edi
push eax
call fcn.00474a10
add esp, 0xc
push 0x104
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push ebx
lea eax, [ebp]
push eax
push str.CheckSetupTargetPath
call fcn.00404dac
add esp, 0xc
push ebx
lea eax, [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsSameRootW]
test eax, eax
jne 0x44257c
mov ecx, dword [ebp - 0x18]
call fcn.0044012a
test eax, eax
je 0x442560
cmp dword [ebx - 0xc], edi
jge 0x442529
push 0x80070057
call fcn.004029ee
movzx eax, word [ebx]
push ecx
mov ecx, esp
mov dword [ebp - 0x20], esp
push 1
push eax
call fcn.00440d61
mov ecx, dword [ebp - 0x18]
call fcn.0044172d
cmp eax, edi
je 0x442560
push edi
push edi
push 0xa2
call fcn.00402f1e
mov ecx, eax
call fcn.00402faf
push 0x10
jmp 0x4423c5
cmp dword [ebx - 0xc], edi
jl 0x44251f
movzx eax, word [ebx]
mov ecx, dword [ebp - 0x18]
push eax
call fcn.00440084
test eax, eax
je 0x44257c
push 0xf
jmp 0x4423c5
mov esi, 0x4bb404
push esi
lea ecx, [ebp - 0x14]
call fcn.00402675
mov eax, dword [ebp - 0x14]
push dword [eax - 0xc]
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.00414e44
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 3
call fcn.00410474
lea ecx, [ebp - 0x14]
call fcn.00410474
mov ecx, dword [ebp - 0x28]
call fcn.0045e6ea
test eax, eax
jne 0x44264d
push dword [ebp - 0x14]
lea ecx, [ebp - 0x1c]
call fcn.0040ce35
test eax, eax
lea eax, [ebp - 0x10]
je 0x442620
push esi
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00403a89
add esp, 0xc
push dword [eax]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
mov ecx, dword [ebp - 0x20]
test eax, eax
setne byte [ebp - 0x21]
add ecx, 0xfffffff0
call fcn.004029d4
cmp byte [ebp - 0x21], 0
je 0x44264d
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.004029d4
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.004029d4
push 0xd
jmp 0x4423c5
mov ecx, dword [ebp - 0x18]
push eax
call fcn.00465a0e
test eax, eax
jne 0x44264a
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.004029d4
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.004029d4
push 0xe
jmp 0x442488
mov ebx, dword [ebp - 0x10]
push dword [ebp - 0x14]
lea ecx, [ebp - 0x1c]
call fcn.0040ce35
push ecx
mov dword [ebp - 0x20], esp
test eax, eax
je 0x442695
mov eax, esp
push esi
lea ecx, [ebp - 0x10]
push ecx
push eax
call fcn.00403a89
add esp, 0xc
call fcn.004422e7
pop ecx
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
cmp eax, edi
jne 0x4426a2
call fcn.004029d4
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.004029d4
jmp 0x442443
lea eax, [ebp - 0x10]
mov ecx, esp
push eax
call fcn.00403cb4
jmp 0x442670
call fcn.004029d4
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
mov byte [ebp - 4], 0
call fcn.004029d4
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x18]
call fcn.00403cb4
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x20]
push eax
mov byte [ebp - 4], 4
call fcn.00440a16
mov esi, dword [ebp - 0x20]
mov byte [ebp - 4], 5
cmp dword [esi - 0xc], edi
je 0x4426fd
push esi
push 0x104
lea ecx, [ebp - 0x18]
call fcn.00416210
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x18]
call fcn.0040b382
mov edi, dword [ebp - 0x18]
push edi
mov ecx, 0x4f6b00
call fcn.00439e1f
test eax, eax
je 0x442726
lea ecx, [esi - 0x10]
call fcn.004029d4
lea ecx, [edi - 0x10]
call fcn.004029d4
push 0xb
jmp 0x4423c5
push edi
mov ecx, 0x4f6b00
call fcn.0043c77a
test eax, eax
je 0x44274c
lea ecx, [esi - 0x10]
call fcn.004029d4
lea ecx, [edi - 0x10]
call fcn.004029d4
push 0xc
jmp 0x4423c5
add esi, 0xfffffff0
mov ecx, esi
call fcn.004029d4
lea ecx, [edi - 0x10]
mov byte [ebp - 4], 0
call fcn.004029d4
xor edi, edi
cmp dword [ebx - 0xc], edi
jl 0x44251f
movzx eax, word [ebx]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0x50]
mov edi, eax
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax]
mov esi, edx
shrd edi, esi, 0x14
push eax
shr esi, 0x14
call dword [ecx + 0x30]
cdq
cmp esi, edx
ja 0x4427a0
jb 0x442799
cmp edi, eax
jae 0x4427a0
push 6
jmp 0x4423c5
lea ecx, [ebx - 0x10]
call fcn.004029d4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.00474a8a
add ebp, 0x20c
leave
ret 4