Function at 0x51173b
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf8
push ebx
push esi
push edi
push dword [0x62a360]
mov edi, ecx
lea ecx, [ebp - 0x78]
mov dword [ebp - 0x60], edi
call fcn.0040921d
push 1
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0xc0]
push 0xc
push eax
call fcn.005ad360
add esp, 0x10
lea ecx, [ebp - 0x78]
call fcn.00403f80
push dword [0x62a36c]
lea ecx, [ebp - 0x78]
call fcn.0040921d
push 1
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0xa8]
push 0xc
push eax
call fcn.005ad360
add esp, 0x10
lea ecx, [ebp - 0x78]
call fcn.00403f80
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0xc0]
xor ebx, ebx
cmp dword [ebp - 0xac], 8
mov dword [ebp - 0xc], ebx
cmovae eax, dword [ebp - 0xc0]
push eax
call esi
test eax, eax
je 0x51180d
lea ecx, [ebp - 0xf8]
call fcn.005afe10
sub esp, 0x18
lea eax, [ebp - 0xc0]
mov ecx, esp
push eax
mov dword [ecx], ebx
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], ebx
call fcn.00408766
lea ecx, [ebp - 0xf8]
call fcn.005adc60
lea ecx, [ebp - 0xf8]
mov dword [ebp - 0xc], 1
call fcn.005afd10
cmp dword [ebp - 0x94], 8
lea eax, [ebp - 0xa8]
mov dword [ebp - 8], ebx
cmovae eax, dword [ebp - 0xa8]
push eax
call esi
test eax, eax
je 0x51186c
lea ecx, [ebp - 0xf8]
call fcn.005afe10
sub esp, 0x18
lea eax, [ebp - 0xa8]
mov ecx, esp
push eax
mov dword [ecx], ebx
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], ebx
call fcn.00408766
lea ecx, [ebp - 0xf8]
call fcn.005adc60
lea ecx, [ebp - 0xf8]
mov dword [ebp - 8], 1
call fcn.005afd10
push dword [0x62a364]
lea ecx, [ebp - 0x90]
call fcn.0040921d
push dword [0x62a318]
lea ecx, [ebp - 0x78]
call fcn.0040921d
lea eax, [ebp - 0x5c]
mov ecx, edi
push eax
call fcn.00510d0a
mov esi, eax
mov ecx, edi
push ebx
lea eax, [ebp - 0x24]
push eax
call fcn.00510a4e
push esi
push eax
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0x78]
push eax
push 0x631514
lea eax, [ebp - 0x2c]
push ebx
push eax
call fcn.005200a6
add esp, 0x1c
lea ecx, [edi + 0x24]
push eax
call fcn.00500a43
mov ecx, dword [ebp - 0x28]
test ecx, ecx
je 0x5118d8
call fcn.004fb55d
lea ecx, [ebp - 0x24]
call fcn.00403f80
lea ecx, [ebp - 0x5c]
call fcn.00403f80
lea ecx, [ebp - 0x78]
call fcn.00403f80
lea ecx, [ebp - 0x90]
call fcn.00403f80
mov esi, 0x5f9b84
lea ecx, [ebp - 0x24]
push esi
call fcn.0040921d
push str.uninst.exe
lea ecx, [ebp - 0x5c]
call fcn.0040921d
push esi
lea ecx, [ebp - 0x78]
call fcn.0040921d
push dword [0x62a320]
lea ecx, [ebp - 0x90]
call fcn.0040921d
push 1
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x44]
push 0
push eax
call fcn.005ad360
lea ecx, [ebp - 0x24]
push ecx
push eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x90]
push eax
push 0x63152c
lea eax, [ebp - 0x2c]
push 0
push eax
call fcn.005200a6
add esp, 0x2c
lea ecx, [edi + 0x24]
push eax
call fcn.00500a43
mov ecx, dword [ebp - 0x28]
test ecx, ecx
je 0x511979
call fcn.004fb55d
lea ecx, [ebp - 0x44]
call fcn.00403f80
lea ecx, [ebp - 0x90]
call fcn.00403f80
lea ecx, [ebp - 0x78]
call fcn.00403f80
lea ecx, [ebp - 0x5c]
call fcn.00403f80
lea ecx, [ebp - 0x24]
call fcn.00403f80
lea ebx, [edi + 0xd4]
mov ecx, ebx
call fcn.00505903
test al, al
jne 0x5119bf
cmp dword [ebp - 0xc], 0
jne 0x5119bf
xor esi, esi
jmp 0x5119c2
xor esi, esi
inc esi
mov ecx, ebx
call fcn.005058f4
test al, al
jne 0x5119da
cmp dword [ebp - 8], 0
jne 0x5119da
xor ebx, ebx
mov dword [ebp - 8], ebx
jmp 0x5119f2
xor ebx, ebx
lea ecx, [edi + 0xd4]
inc ebx
mov dword [ebp - 8], ebx
call fcn.00505793
mov byte [ebp - 1], bl
test al, al
je 0x5119f6
mov byte [ebp - 1], 0
lea ecx, [edi + 0xd4]
call fcn.005058c4
test al, al
jne 0x511a99
mov esi, dword [edi + 0x73c]
test esi, esi
je 0x511a31
test ebx, ebx
je 0x511a31
lea ecx, [edi + 0xd4]
mov dword [ebp - 8], 1
call fcn.00505793
test al, al
jne 0x511a35
mov bl, 1
jmp 0x511a37
and dword [ebp - 8], 0
xor bl, bl
push 0x6008ec
lea ecx, [ebp - 0x24]
mov byte [ebp - 1], bl
call fcn.0040921d
mov eax, esi
neg eax
sbb eax, eax
add eax, 5
push eax
lea eax, [ebp - 0x24]
push eax
push 2
call fcn.005aaa10
add esp, 0xc
lea ecx, [ebp - 0x24]
call fcn.00403f80
push 0x60092c
lea ecx, [ebp - 0x24]
call fcn.0040921d
movzx eax, bl
xor eax, 1
add eax, 4
push eax
lea eax, [ebp - 0x24]
push eax
push 2
call fcn.005aaa10
add esp, 0xc
lea ecx, [ebp - 0x24]
call fcn.00403f80
jmp 0x511b37
mov ecx, edi
call fcn.00510711
cmp eax, 1
je 0x511b37
and dword [ebp - 0xc], 0
lea ecx, [ebp - 0x24]
and dword [ebp - 8], 0
push 0x6008ec
call fcn.0040921d
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x24]
push eax
push 2
call fcn.005ab780
add esp, 0x10
lea ecx, [ebp - 0x24]
call fcn.00403f80
push 0x60092c
lea ecx, [ebp - 0x24]
call fcn.0040921d
push 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x24]
push eax
push 2
call fcn.005ab780
add esp, 0x10
lea ecx, [ebp - 0x24]
call fcn.00403f80
test esi, esi
je 0x511b18
push 0
call fcn.004543c1
pop ecx
test al, al
je 0x511b18
xor esi, esi
inc esi
jmp 0x511b1a
xor esi, esi
test ebx, ebx
je 0x511b33
push 1
call fcn.004543c1
pop ecx
test al, al
je 0x511b33
mov dword [ebp - 8], 1
jmp 0x511b37
and dword [ebp - 8], 0
mov ecx, edi
call fcn.00510711
cmp eax, 1
jne 0x511b7a
xor ebx, ebx
lea ecx, [ebp - 0x24]
test esi, esi
push str.cshctt
setne bl
call fcn.0040921d
mov eax, ebx
or eax, 2
cmp byte [ebp - 1], 0
cmove eax, ebx
push eax
lea eax, [ebp - 0x24]
push eax
push 1
call fcn.005aaa10
add esp, 0xc
lea ecx, [ebp - 0x24]
call fcn.00403f80
lea ebx, [edi + 0xd4]
mov ecx, ebx
call fcn.00505793
mov byte [ebp - 1], al
test esi, esi
je 0x511c6f
push dword [0x62a364]
lea ecx, [ebp - 0x5c]
call fcn.0040921d
push dword [0x62a314]
lea ecx, [ebp - 0x24]
call fcn.0040921d
lea eax, [ebp - 0x90]
mov ecx, edi
push eax
call fcn.00510d0a
mov esi, eax
mov ecx, edi
push 0
lea eax, [ebp - 0x44]
push eax
call fcn.00510a4e
push esi
push eax
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x24]
push eax
push 0x631544
lea eax, [ebp - 0x2c]
push 0
push eax
call fcn.005200a6
add esp, 0x1c
lea ecx, [edi + 0x24]
push eax
call fcn.00500a43
mov ecx, dword [ebp - 0x28]
test ecx, ecx
je 0x511bfd
call fcn.004fb55d
lea ecx, [ebp - 0x44]
call fcn.00403f80
lea ecx, [ebp - 0x90]
call fcn.00403f80
lea ecx, [ebp - 0x24]
call fcn.00403f80
lea ecx, [ebp - 0x5c]
call fcn.00403f80
push 0x5f9b84
lea ecx, [ebp - 0x24]
call fcn.0040921d
lea eax, [ebp - 0x44]
mov ecx, edi
push eax
call fcn.00510d0a
movzx esi, byte [ebp - 1]
lea ecx, [ebp - 0x24]
push ecx
push eax
push 0x631544
push 0
push esi
push 0x66
push 0x7d6
mov ecx, edi
mov dword [ebp - 0xc], esi
call fcn.0050eebb
lea ecx, [ebp - 0x44]
call fcn.00403f80
lea ecx, [ebp - 0x24]
call fcn.00403f80
mov al, byte [ebp - 1]
jmp 0x511c75
movzx ecx, al
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 8], 0
je 0x511e07
test al, al
je 0x511d38
lea eax, [ebp - 0x44]
mov ecx, ebx
push eax
call fcn.00503a1f
lea ecx, [ebp - 0x44]
mov esi, dword [eax + 0x10]
call fcn.00403f80
test esi, esi
je 0x511e07
push dword [0x62a368]
lea ecx, [ebp - 0x24]
call fcn.0040921d
lea eax, [ebp - 0x90]
mov ecx, edi
push eax
call fcn.0050feee
push eax
push 0
lea eax, [ebp - 0x5c]
mov ecx, edi
push eax
call fcn.00510a4e
push eax
lea eax, [ebp - 0x24]
mov ecx, ebx
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00503a1f
push eax
push 0x631574
push 0
lea ecx, [ebp - 0x60]
call fcn.0050d548
lea ecx, [ebp - 0x44]
call fcn.00403f80
lea ecx, [ebp - 0x5c]
call fcn.00403f80
lea ecx, [ebp - 0x90]
call fcn.00403f80
lea ecx, [ebp - 0x24]
call fcn.00403f80
lea eax, [ebp - 0x24]
mov ecx, ebx
push eax
call fcn.00503a1f
mov esi, eax
mov ecx, edi
lea eax, [ebp - 0x44]
push eax
call fcn.0050feee
push esi
push eax
push 0x631574
push 0
jmp 0x511de6
push dword [0x62a368]
lea ecx, [ebp - 0x5c]
call fcn.0040921d
push dword [0x62a30c]
lea ecx, [ebp - 0x24]
call fcn.0040921d
lea eax, [ebp - 0x90]
mov ecx, edi
push eax
call fcn.0050feee
mov esi, eax
xor ebx, ebx
push ebx
lea eax, [ebp - 0x44]
mov ecx, edi
push eax
call fcn.00510a4e
push esi
push eax
lea eax, [ebp - 0x5c]
mov esi, 0x63155c
push eax
lea eax, [ebp - 0x24]
push eax
push esi
lea eax, [ebp - 0x2c]
push ebx
push eax
call fcn.005200a6
add esp, 0x1c
lea ecx, [edi + 0x24]
push eax
call fcn.00500a43
mov ecx, dword [ebp - 0x28]
test ecx, ecx
je 0x511da4
call fcn.004fb55d
lea ecx, [ebp - 0x44]
call fcn.00403f80
lea ecx, [ebp - 0x90]
call fcn.00403f80
lea ecx, [ebp - 0x24]
call fcn.00403f80
lea ecx, [ebp - 0x5c]
call fcn.00403f80
push 0x5f9b84
lea ecx, [ebp - 0x24]
call fcn.0040921d
lea eax, [ebp - 0x44]
mov ecx, edi
push eax
call fcn.0050feee
lea ecx, [ebp - 0x24]
push ecx
push eax
push esi
push ebx
push dword [ebp - 0xc]
mov ecx, edi
push 0x67
push 0x7d6
call fcn.0050eebb
lea ecx, [ebp - 0x44]
call fcn.00403f80
lea ecx, [ebp - 0x24]
call fcn.00403f80
lea ecx, [ebp - 0xa8]
call fcn.00403f80
lea ecx, [ebp - 0xc0]
call fcn.00403f80
pop edi
pop esi
pop ebx
leave
ret