Function at 0x40a450
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x63e96e
mov eax, dword fs:[0]
push eax
sub esp, 0x170
mov eax, dword [0x6d906c]
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
mov esi, dword [ebp + 8]
mov dword [ebp - 0x168], 0
cmp dword [esi + 0x40], 0
je 0x40a740
cmp dword [esi + 0x44], 0x10
lea edi, [esi + 0x30]
mov eax, edi
jb 0x40a4a2
mov eax, dword [edi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40a740
cmp byte [esi + 0xa8], 0
je 0x40a4c5
push esi
call fcn.0040a770
jmp 0x40a742
call fcn.004c9dfa
test al, al
je 0x40a541
mov eax, dword [0x6e936c]
test eax, eax
je 0x40a541
cmp dword [eax + 4], 5
jl 0x40a541
sub esp, 0xc
lea ecx, [ebp - 0x160]
push 0x21
push str.CDoOwerInstall::DoInstall
push 5
call fcn.00409de0
mov ebx, eax
lea ecx, [ebx + 0x30]
mov dword [ebp - 4], 0
mov edx, str.ower_exe_ins:
call fcn.00409c50
cmp dword [esi + 0xc4], 0x10
lea edx, [esi + 0xb0]
jb 0x40a51b
mov edx, dword [edx]
lea ecx, [ebx + 0x30]
call fcn.00409c50
mov ecx, dword [0x6e936c]
push ebx
call fcn.0040aff0
lea ecx, [ebp - 0x160]
mov dword [ebp - 4], 0xffffffff
call fcn.0040a1e0
push 0x75300
push 1
push 0x3a8
sub esp, 0x18
lea eax, [esi + 0x140]
mov ecx, esp
push eax
call fcn.00403930
lea eax, [ebp - 0x40]
push eax
call fcn.004c4b35
add esp, 0x20
mov dword [ebp - 4], 1
cmp dword [eax + 0x14], 8
jb 0x40a579
mov eax, dword [eax]
push eax
push 0x3a8
sub esp, 0x18
mov ecx, esp
push edi
call fcn.00403930
lea eax, [ebp - 0x28]
push eax
call fcn.004c4b35
add esp, 0x20
mov byte [ebp - 4], 2
cmp dword [eax + 0x14], 8
jb 0x40a5a2
mov eax, dword [eax]
push eax
call fcn.004cb6e4
mov byte [ebp - 4], 1
add esp, 0x10
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x40a5e9
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40a5df
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a760
push edx
push ecx
call fcn.004216e0
add esp, 8
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp edx, 8
jb 0x40a63e
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40a634
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a765
push edx
push ecx
call fcn.004216e0
add esp, 8
lea ecx, [ebp - 0x17c]
call fcn.004c80a6
mov dword [ebp - 4], 3
mov ebx, dword [esi + 0x1d4]
mov esi, dword [esi + 0x1d0]
cmp esi, ebx
je 0x40a72d
push esi
lea ecx, [ebp - 0x28]
call fcn.00403930
push 0
sub esp, 0x18
mov byte [ebp - 4], 4
mov edi, esp
lea eax, [ebp - 0x28]
sub esp, 0x18
mov ecx, esp
push eax
call fcn.00403930
push edi
call fcn.004c49f1
add esp, 0x1c
lea ecx, [ebp - 0x17c]
call fcn.004c842a
movzx eax, al
mov dword [ebp - 0x168], eax
test eax, eax
jne 0x40a6fd
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x40a6df
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40a6d5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a760
push edx
push ecx
call fcn.004216e0
add esp, 8
add esi, 0x18
cmp esi, ebx
jne 0x40a664
lea ecx, [ebp - 0x17c]
call fcn.004c824d
mov al, byte [ebp - 0x168]
jmp 0x40a742
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x40a72d
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40a723
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a76a
push edx
push ecx
call fcn.004216e0
add esp, 8
lea ecx, [ebp - 0x17c]
call fcn.004c824d
mov al, byte [ebp - 0x168]
jmp 0x40a742
xor al, al
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.00421065
mov esp, ebp
pop ebp
ret 4
call fcn.004fe980
call fcn.004fe980
call fcn.004fe980
int3