Function at 0x4058b0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x539371
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x58bd20]
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
lea ecx, [ebp - 0x2c]
mov dword [0x594384], 0x409770
call fcn.0040ccf0
xor edi, edi
push 5
mov eax, str.Debug
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], edi
call fcn.004038a0
mov eax, dword [ebp - 0x2c]
mov esi, 8
cmp dword [ebp - 0x18], esi
jae 0x405911
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
setne bl
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x18], esi
jb 0x405935
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00413334
add esp, 4
movzx ecx, bl
mov ebx, 0x566f8c
mov dword [0x594388], ecx
mov dword [0x594394], 0x58d60c
call fcn.00409370
mov ebx, str.UNINSTALL
call fcn.00409410
call fcn.0040c330
mov dword [0x594380], eax
mov eax, dword [eax + 8]
cmp eax, edi
je 0x405974
push 0x58d5fc
call eax
mov ebx, 7
xor edx, edx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], edi
mov word [ebp - 0x2c], dx
lea ecx, [ebp - 0x64]
mov dword [ebp - 4], 1
call fcn.004036b0
mov edi, eax
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.004022f0
mov esi, 8
mov byte [ebp - 4], 1
cmp dword [ebp - 0x50], esi
jb 0x4059bc
mov eax, dword [ebp - 0x64]
push eax
call fcn.00413334
add esp, 4
xor edi, edi
xor ecx, ecx
cmp dword [ebp - 0x18], esi
mov esi, dword [ebp - 0x2c]
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x54], edi
mov word [ebp - 0x64], cx
jae 0x4059d5
lea esi, [ebp - 0x2c]
mov eax, dword [0x5943a8]
cmp eax, edi
jne 0x405a06
push 0x5c
call fcn.00413305
add esp, 4
mov dword [ebp - 0x68], eax
mov byte [ebp - 4], 3
cmp eax, edi
je 0x4059fb
push eax
call fcn.0040d910
jmp 0x4059fd
xor eax, eax
mov byte [ebp - 4], 1
mov dword [0x5943a8], eax
mov ecx, esi
mov ebx, eax
call fcn.0040dbe0
mov eax, dword [ebp - 0x2c]
mov esi, 8
cmp dword [ebp - 0x18], esi
jae 0x405a1f
lea eax, [ebp - 0x2c]
push eax
push str.bundlePath__s
push edi
push edi
push 2
mov edx, 0xb
call fcn.004094f0
add esp, 0x14
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x18], esi
jb 0x405a4e
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00413334
add esp, 4
xor eax, eax
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], edi
mov word [ebp - 0x48], ax
mov ebx, 4
mov dword [ebp - 4], ebx
call fcn.00401040
mov ecx, dword [eax + 0xc]
sub ecx, dword [eax + 8]
sar ecx, 2
cmp ecx, edi
jle 0x405aaa
call fcn.00401040
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
sub edx, ecx
sar edx, 2
test edx, edx
jne 0x405a96
push str.invalid_vector_T__subscript
call fcn.0052b46d
mov eax, dword [ecx]
add eax, 0x54
push edi
push eax
or eax, 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.00401990
jmp 0x405abe
push 2
mov eax, 0x566fb0
lea esi, [ebp - 0x48]
call fcn.00401a90
mov esi, 8
cmp dword [ebp - 0x34], esi
mov esi, dword [ebp - 0x48]
jae 0x405ac9
lea esi, [ebp - 0x48]
mov eax, dword [0x5943a8]
cmp eax, edi
jne 0x405af9
push 0x5c
call fcn.00413305
add esp, 4
mov dword [ebp - 0x68], eax
mov byte [ebp - 4], 5
cmp eax, edi
je 0x405aef
push eax
call fcn.0040d910
jmp 0x405af1
xor eax, eax
mov byte [ebp - 4], bl
mov dword [0x5943a8], eax
push eax
mov eax, esi
call fcn.0040dcd0
mov eax, dword [0x5943a8]
cmp eax, edi
jne 0x405b31
push 0x5c
call fcn.00413305
add esp, 4
mov dword [ebp - 0x68], eax
mov byte [ebp - 4], 6
cmp eax, edi
je 0x405b27
push eax
call fcn.0040d910
jmp 0x405b29
xor eax, eax
mov byte [ebp - 4], bl
mov dword [0x5943a8], eax
lea esi, [eax + 0x20]
push 2
mov eax, 0x566fb0
call fcn.00401a90
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x34], 8
jb 0x405b59
mov eax, dword [ebp - 0x48]
push eax
call fcn.00413334
add esp, 4
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.0051202b
mov esp, ebp
pop ebp
ret