Function at 0x445940
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x44f730
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [0x463290]
mov ecx, str.install
push esi
push edi
test ecx, ecx
mov dword [esp + 8], eax
je 0x4459bd
mov edx, ecx
shr edx, 0x10
jne 0x445984
xor eax, eax
mov ax, cx
lea ecx, [esp + 8]
push eax
call fcn.004050d0
jmp 0x4459bd
push str.install
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
test esi, esi
je 0x4459bd
push esi
lea ecx, [esp + 0xc]
call fcn.00402e70
test eax, eax
je 0x4459bd
mov edi, dword [esp + 8]
lea ecx, [esi + esi]
mov edx, ecx
mov esi, str.install
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push ebx
push ebp
mov edi, dword [esp + 0x28]
lea eax, [esp + 0x10]
mov dword [esp + 0x20], 0
lea ebp, [edi + 8]
push ebp
push eax
call fcn.004458f0
mov ecx, eax
call fcn.004466e0
mov eax, dword [esp + 0x10]
mov edx, dword [0x463294]
or esi, 0xffffffff
lea ecx, [eax - 0xc]
mov dword [esp + 0x20], esi
cmp ecx, edx
je 0x445a16
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x445a16
mov edx, dword [esp + 0x10]
lea eax, [edx - 0xc]
push eax
call fcn.0044737a
add esp, 4
mov eax, dword [0x463290]
mov ecx, str.main
test ecx, ecx
mov dword [esp + 0x10], eax
je 0x445a80
mov edx, ecx
shr edx, 0x10
jne 0x445a40
xor eax, eax
mov ax, cx
lea ecx, [esp + 0x10]
push eax
call fcn.004050d0
jmp 0x445a80
push str.main
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
test esi, esi
je 0x445a7d
push esi
lea ecx, [esp + 0x14]
call fcn.00402e70
test eax, eax
je 0x445a7d
mov edi, dword [esp + 0x10]
lea ecx, [esi + esi]
mov edx, ecx
mov esi, str.main
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x28]
or esi, 0xffffffff
lea eax, [edi + 0x10]
lea ecx, [esp + 0x10]
push eax
push ecx
mov dword [esp + 0x28], 1
call fcn.004458f0
mov ecx, eax
call fcn.004466e0
mov eax, dword [esp + 0x10]
mov ecx, dword [0x463294]
mov dword [esp + 0x20], esi
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x445ad0
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x445ad0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff4
push eax
call fcn.0044737a
add esp, 4
mov ecx, dword [edi + 0x14]
lea ebx, [edi + 0x14]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x445b90
mov eax, dword [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x445b90
mov edx, dword [0x463290]
mov dword [esp + 0x10], edx
lea eax, [esp + 0x10]
mov dword [esp + 0x20], 2
push eax
push ebp
call fcn.004429f0
mov ecx, dword [ebx]
mov eax, dword [esp + 0x18]
add esp, 8
cmp ecx, eax
je 0x445b61
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x445b31
mov edx, dword [0x463294]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x445b38
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x445b46
mov ecx, dword [eax - 8]
push eax
push ecx
mov ecx, ebx
call fcn.00404f60
jmp 0x445b5d
mov ecx, ebx
call fcn.00402f00
mov eax, dword [esp + 0x10]
mov dword [ebx], eax
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [esp + 0x10]
mov ecx, dword [0x463294]
lea edx, [eax - 0xc]
cmp edx, ecx
mov dword [esp + 0x20], esi
je 0x445b90
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x445b90
mov eax, dword [esp + 0x10]
add eax, 0xfffffff4
push eax
call fcn.0044737a
add esp, 4
mov ecx, dword [0x463290]
mov edx, 0x469488
test edx, edx
mov dword [esp + 0x10], ecx
je 0x445bfd
mov eax, edx
shr eax, 0x10
jne 0x445bbd
xor eax, eax
mov ecx, edx
mov ax, cx
lea ecx, [esp + 0x10]
push eax
call fcn.004050d0
jmp 0x445bfd
push 0x469488
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
test esi, esi
je 0x445bfa
push esi
lea ecx, [esp + 0x14]
call fcn.00402e70
test eax, eax
je 0x445bfa
mov edi, dword [esp + 0x10]
lea ecx, [esi + esi]
mov edx, ecx
mov esi, 0x469488
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x28]
or esi, 0xffffffff
lea eax, [esp + 0x10]
push ebx
push eax
mov dword [esp + 0x28], 3
call fcn.004458f0
mov ecx, eax
call fcn.004466e0
mov eax, dword [esp + 0x10]
mov edx, dword [0x463294]
pop ebp
mov dword [esp + 0x1c], esi
lea ecx, [eax - 0xc]
pop ebx
cmp ecx, edx
je 0x445c4c
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x445c4c
mov edx, dword [esp + 8]
lea eax, [edx - 0xc]
push eax
call fcn.0044737a
add esp, 4
push str.tipver
lea ecx, [esp + 0x24]
call fcn.00427bb0
lea eax, [edi + 0x1c]
lea ecx, [esp + 0x20]
push eax
push ecx
mov dword [esp + 0x20], 4
call fcn.004458f0
mov ecx, eax
call fcn.004466e0
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], esi
call fcn.0043c2e0
push str.cmdline
lea ecx, [esp + 0x10]
call fcn.00427bb0
add edi, 0x18
lea edx, [esp + 0xc]
push edi
push edx
mov dword [esp + 0x20], 5
call fcn.004458f0
mov ecx, eax
call fcn.004466e0
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], esi
call fcn.0043c2e0
mov ecx, dword [esp + 0x10]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret 4