Function at 0x511747
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf8
push ebx
push esi
push edi
push dword [0x62a35c]
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 [0x62a368]
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 0x511819
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 0x511878
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 [0x62a360]
lea ecx, [ebp - 0x90]
call fcn.0040921d
push dword [0x62a314]
lea ecx, [ebp - 0x78]
call fcn.0040921d
lea eax, [ebp - 0x5c]
mov ecx, edi
push eax
call fcn.00510d16
mov esi, eax
mov ecx, edi
push ebx
lea eax, [ebp - 0x24]
push eax
call fcn.00510a5a
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.005200b5
add esp, 0x1c
lea ecx, [edi + 0x24]
push eax
call fcn.00500a43
mov ecx, dword [ebp - 0x28]
test ecx, ecx
je 0x5118e4
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, 0x5f9b70
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 [0x62a31c]
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.005200b5
add esp, 0x2c
lea ecx, [edi + 0x24]
push eax
call fcn.00500a43
mov ecx, dword [ebp - 0x28]
test ecx, ecx
je 0x511985
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 0x5119cb
cmp dword [ebp - 0xc], 0
jne 0x5119cb
xor esi, esi
jmp 0x5119ce
xor esi, esi
inc esi
mov ecx, ebx
call fcn.005058f4
test al, al
jne 0x5119e6
cmp dword [ebp - 8], 0
jne 0x5119e6
xor ebx, ebx
mov dword [ebp - 8], ebx
jmp 0x5119fe
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 0x511a02
mov byte [ebp - 1], 0
lea ecx, [edi + 0xd4]
call fcn.005058c4
test al, al
jne 0x511aa5
mov esi, dword [edi + 0x73c]
test esi, esi
je 0x511a3d
test ebx, ebx
je 0x511a3d
lea ecx, [edi + 0xd4]
mov dword [ebp - 8], 1
call fcn.00505793
test al, al
jne 0x511a41
mov bl, 1
jmp 0x511a43
and dword [ebp - 8], 0
xor bl, bl
push 0x6008dc
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 0x60091c
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 0x511b43
mov ecx, edi
call fcn.0051071d
cmp eax, 1
je 0x511b43
and dword [ebp - 0xc], 0
lea ecx, [ebp - 0x24]
and dword [ebp - 8], 0
push 0x6008dc
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 0x60091c
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 0x511b24
push 0
call fcn.004543c1
pop ecx
test al, al
je 0x511b24
xor esi, esi
inc esi
jmp 0x511b26
xor esi, esi
test ebx, ebx
je 0x511b3f
push 1
call fcn.004543c1
pop ecx
test al, al
je 0x511b3f
mov dword [ebp - 8], 1
jmp 0x511b43
and dword [ebp - 8], 0
mov ecx, edi
call fcn.0051071d
cmp eax, 1
jne 0x511b86
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 0x511c7b
push dword [0x62a360]
lea ecx, [ebp - 0x5c]
call fcn.0040921d
push dword [0x62a310]
lea ecx, [ebp - 0x24]
call fcn.0040921d
lea eax, [ebp - 0x90]
mov ecx, edi
push eax
call fcn.00510d16
mov esi, eax
mov ecx, edi
push 0
lea eax, [ebp - 0x44]
push eax
call fcn.00510a5a
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.005200b5
add esp, 0x1c
lea ecx, [edi + 0x24]
push eax
call fcn.00500a43
mov ecx, dword [ebp - 0x28]
test ecx, ecx
je 0x511c09
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 0x5f9b70
lea ecx, [ebp - 0x24]
call fcn.0040921d
lea eax, [ebp - 0x44]
mov ecx, edi
push eax
call fcn.00510d16
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.0050eec7
lea ecx, [ebp - 0x44]
call fcn.00403f80
lea ecx, [ebp - 0x24]
call fcn.00403f80
mov al, byte [ebp - 1]
jmp 0x511c81
movzx ecx, al
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 8], 0
je 0x511e13
test al, al
je 0x511d44
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 0x511e13
push dword [0x62a364]
lea ecx, [ebp - 0x24]
call fcn.0040921d
lea eax, [ebp - 0x90]
mov ecx, edi
push eax
call fcn.0050fefa
push eax
push 0
lea eax, [ebp - 0x5c]
mov ecx, edi
push eax
call fcn.00510a5a
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.0050d554
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.0050fefa
push esi
push eax
push 0x631574
push 0
jmp 0x511df2
push dword [0x62a364]
lea ecx, [ebp - 0x5c]
call fcn.0040921d
push dword [0x62a308]
lea ecx, [ebp - 0x24]
call fcn.0040921d
lea eax, [ebp - 0x90]
mov ecx, edi
push eax
call fcn.0050fefa
mov esi, eax
xor ebx, ebx
push ebx
lea eax, [ebp - 0x44]
mov ecx, edi
push eax
call fcn.00510a5a
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.005200b5
add esp, 0x1c
lea ecx, [edi + 0x24]
push eax
call fcn.00500a43
mov ecx, dword [ebp - 0x28]
test ecx, ecx
je 0x511db0
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 0x5f9b70
lea ecx, [ebp - 0x24]
call fcn.0040921d
lea eax, [ebp - 0x44]
mov ecx, edi
push eax
call fcn.0050fefa
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.0050eec7
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