Function at 0x403970
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x453fd1
mov eax, dword fs:[0]
push eax
sub esp, 0xc88
mov eax, dword [0x47f060]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xc94], ecx
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x830], ax
lea eax, [ebp - 0x82e]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x830]
call fcn.0042e1b0
mov edi, dword [sym.imp.isafepxy.dll_ISAFE_WriteProgramLogNoMask]
lea eax, [ebp - 0x830]
push eax
push str.OutPutBasicInfo__Os_info:__s_
call edi
add esp, 8
xor eax, eax
push eax
push 0x45ec1c
lea ecx, [ebp - 0xc70]
mov dword [ebp - 0xc8c], 0
mov dword [ebp - 0xc5c], 7
mov dword [ebp - 0xc60], 0
mov word [ebp - 0xc70], ax
call fcn.00406c00
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0xc90], eax
lea eax, [ebp - 0xc70]
push eax
lea edx, [ebp - 0xc8c]
lea ecx, [ebp - 0xc90]
call fcn.00429ee0
mov esi, dword [ebp - 0xc8c]
add esp, 4
cmp dword [ebp - 0xc5c], 8
lea eax, [ebp - 0xc70]
cmovae eax, dword [ebp - 0xc70]
push eax
push esi
push str.OutPutBasicInfo__Parent_process_info:__d___s_
call edi
add esp, 0xc
lea eax, [ebp - 0xc70]
push eax
lea edx, [ebp - 0xc8c]
lea ecx, [ebp - 0xc90]
mov dword [ebp - 0xc8c], 0
mov dword [ebp - 0xc90], esi
call fcn.00429ee0
add esp, 4
cmp dword [ebp - 0xc5c], 8
lea eax, [ebp - 0xc70]
cmovae eax, dword [ebp - 0xc70]
push eax
push dword [ebp - 0xc8c]
push str.OutPutBasicInfo__Grandparent_process_info:__d___s_
call edi
mov eax, dword [0x4826e0]
add esp, 0xc
test al, 1
jne 0x403add
or eax, 1
push 0x45ae80
mov dword [0x4826e0], eax
call fcn.004521b7
add esp, 4
xor eax, eax
mov dword [ebp - 0xc74], 7
mov dword [ebp - 0xc78], 0
mov word [ebp - 0xc88], ax
cmp word [0x4822d0], ax
jne 0x403b07
xor ecx, ecx
jmp 0x403b1f
mov ecx, 0x4822d0
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403b10
sub ecx, edx
sar ecx, 1
push ecx
push 0x4822d0
lea ecx, [ebp - 0xc88]
call fcn.00406c00
xor eax, eax
push 0x206
mov byte [ebp - 4], 1
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call sub.MSVCR110.dll_memset
mov esi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
add esp, 0xc
cmp dword [ebp - 0xc74], 8
lea eax, [ebp - 0xc88]
cmovae eax, dword [ebp - 0xc88]
push str.main
push eax
lea eax, [ebp - 0x218]
push eax
call esi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0xc40], ax
lea eax, [ebp - 0xc3e]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x403be0
mov eax, dword [0x482720]
test al, 1
jne 0x403bc8
or eax, 1
push 0x45aeb0
mov dword [0x482720], eax
call fcn.004521b7
add esp, 4
push 0x104
lea eax, [ebp - 0xc40]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.00443950
push 4
xor eax, eax
push str.Null
lea ecx, [ebp - 0xc58]
mov dword [ebp - 0xc44], 7
mov dword [ebp - 0xc48], 0
mov word [ebp - 0xc58], ax
call fcn.00406c00
mov byte [ebp - 4], 2
cmp byte [0x48275f], 0
je 0x403c30
push 0xe
push str.Uninstallation
lea ecx, [ebp - 0xc58]
call fcn.00406c00
jmp 0x403c83
cmp byte [0x48275e], 0
je 0x403c4d
push 0xe
push str.Uninstallation
lea ecx, [ebp - 0xc58]
call fcn.00406c00
jmp 0x403c83
cmp byte [0x482760], 0
je 0x403c6a
push 0xc
push str.Installation
lea ecx, [ebp - 0xc58]
call fcn.00406c00
jmp 0x403c83
cmp byte [0x48275d], 0
je 0x403c83
push str.Upgrade
lea ecx, [ebp - 0xc58]
call fcn.00404f90
cmp dword [ebp - 0xc44], 8
lea eax, [ebp - 0xc58]
cmovae eax, dword [ebp - 0xc58]
push eax
push str.OutPutBasicInfo__This_is_a_process_for:__s_
call edi
push dword [ebp - 0xc94]
push str.OutPutBasicInfo__Cmdline:__s_
call edi
lea eax, [ebp - 0xc40]
push eax
push str.OutPutBasicInfo__Current_version:__s_
call edi
add esp, 0x18
cmp byte [0x48275d], 0
je 0x403d9c
xor eax, eax
push 0x206
push eax
mov word [ebp - 0xa38], ax
lea eax, [ebp - 0xa36]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea ecx, [ebp - 0xa38]
call fcn.0040b7f0
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [ebp - 0xa38]
push str.main
push eax
lea eax, [ebp - 0x420]
push eax
call esi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x628], ax
lea eax, [ebp - 0x626]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x403d8b
mov eax, dword [0x482720]
test al, 1
jne 0x403d73
or eax, 1
push 0x45aeb0
mov dword [0x482720], eax
call fcn.004521b7
add esp, 4
push 0x104
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.00443950
lea eax, [ebp - 0x628]
push eax
push str.OutPutBasicInfo__Installed_version:__s_
call edi
add esp, 8
cmp dword [ebp - 0xc44], 8
mov esi, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
jb 0x403db6
push dword [ebp - 0xc58]
call esi
add esp, 4
xor eax, eax
cmp dword [ebp - 0xc74], 8
mov dword [ebp - 0xc44], 7
mov dword [ebp - 0xc48], 0
mov word [ebp - 0xc58], ax
jb 0x403de7
push dword [ebp - 0xc88]
call esi
add esp, 4
xor eax, eax
cmp dword [ebp - 0xc5c], 8
mov dword [ebp - 0xc74], 7
mov dword [ebp - 0xc78], 0
mov word [ebp - 0xc88], ax
jb 0x403e18
push dword [ebp - 0xc70]
call esi
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00452076
mov esp, ebp
pop ebp
ret