Function at 0x4afec0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x521030
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1024
call fcn.004fe1a0
mov eax, dword [0x5a4aa8]
xor eax, ebp
mov dword [ebp - 0x18], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov dword [ebp - 0x1030], ebx
mov esi, edx
mov dword [ebp - 0x1024], 1
mov dword [ebp - 4], 0
test esi, esi
je 0x4b044d
mov eax, dword [esi + 0x6c20]
test eax, eax
je 0x4b044d
cmp byte [ebp + 8], 0
je 0x4b0021
lea edi, [eax + 0x800]
mov eax, edi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4aff40
sub eax, edx
sar eax, 1
je 0x4b0017
push 0x800
push 0
lea eax, [ebp - 0x81c]
push eax
call fcn.004fd670
add esp, 0xc
push 0
push 0x400
lea ecx, [ebp - 0x81c]
push ecx
push edi
mov ecx, dword [ebx + 0xfd64]
call fcn.00480760
test eax, eax
je 0x4affae
mov eax, dword [esi + 0x6c20]
add eax, 0x800
push 0x3ff
push eax
push 0x400
lea edx, [ebp - 0x81c]
push edx
call fcn.004fa71b
add esp, 0x10
lea ecx, [ebp - 0x81c]
call fcn.00495170
test al, al
jne 0x4afffb
push 0x800
push 0
mov eax, dword [esi + 0x6c20]
add eax, 0x800
push eax
call fcn.004fd670
mov dword [ebp - 0x1024], 3
lea ecx, [ebp - 0x81c]
push ecx
push esi
push str.__s__Install_command_was_invalid___s____
mov ecx, 0x649e50
call fcn.004918f0
add esp, 0x18
jmp 0x4b0021
lea edx, [ebp - 0x81c]
push edx
push esi
push str.__s__Install_command_was_valid___s_
mov ecx, 0x649e50
call fcn.004918f0
add esp, 0xc
jmp 0x4b0021
mov dword [ebp - 0x1024], 3
push str.TRUE
lea eax, [esi + 0x6a00]
push eax
call fcn.004f9f1e
add esp, 8
test eax, eax
je 0x4b0365
mov byte [ebp - 0x101d], 0
mov eax, dword [esi + 0x6c20]
lea edi, [eax + 0x3800]
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4b0055
sub eax, edx
sar eax, 1
je 0x4b010a
push 0x800
push 0
lea ecx, [ebp - 0x101c]
push ecx
call fcn.004fd670
mov eax, dword [ebx + 0xfd68]
push 1
push 0x800
lea edx, [ebp - 0x101c]
push edx
push edi
mov eax, dword [eax]
push eax
mov edx, str.UninstallInfo
call fcn.004920e0
add esp, 0x20
test eax, eax
jne 0x4b0207
lea ecx, [ebp - 0x101c]
call fcn.00495170
mov bl, al
mov byte [ebp - 0x101d], bl
test bl, bl
je 0x4b01db
lea ecx, [ebp - 0x101c]
push ecx
mov edx, dword [esi + 0x6c20]
add edx, 0x3800
push edx
push esi
push str.__s__uninstall_command_from_key__s__was_valid___s___
mov ecx, 0x649e50
call fcn.004918f0
add esp, 0x10
cmp byte [ebp + 8], 0
jne 0x4b00fc
mov dword [ebp - 0x1024], 1
test bl, bl
mov ebx, dword [ebp - 0x1030]
jne 0x4b0290
mov eax, dword [esi + 0x6c20]
lea edi, [eax + 0x1800]
mov eax, edi
lea edx, [eax + 2]
jmp 0x4b0120
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4b0120
sub eax, edx
sar eax, 1
je 0x4b025f
push 0x800
push 0
lea eax, [ebp - 0x81c]
push eax
call fcn.004fd670
add esp, 0xc
push 0
push 0x400
lea ecx, [ebp - 0x81c]
push ecx
push edi
mov ecx, dword [ebx + 0xfd64]
call fcn.00480760
test eax, eax
je 0x4b018e
mov eax, dword [esi + 0x6c20]
add eax, 0x800
push 0x3ff
push eax
push 0x400
lea edx, [ebp - 0x81c]
push edx
call fcn.004fa71b
add esp, 0x10
lea ecx, [ebp - 0x81c]
call fcn.00495170
test al, al
je 0x4b022c
mov byte [ebp - 0x101d], 1
lea eax, [ebp - 0x81c]
push eax
push esi
push str.__s__uninstall_command_was_valid___s_
mov ecx, 0x649e50
call fcn.004918f0
add esp, 0xc
cmp byte [ebp + 8], 0
jne 0x4b0290
mov dword [ebp - 0x1024], 1
jmp 0x4b0290
lea eax, [ebp - 0x101c]
push eax
mov ecx, dword [esi + 0x6c20]
add ecx, 0x3800
push ecx
push esi
push str.__s__uninstall_command_from_key__s__was_invalid___s___
mov ecx, 0x649e50
call fcn.004918f0
add esp, 0x10
jmp 0x4b00fc
mov edx, dword [esi + 0x6c20]
add edx, 0x3800
push edx
push esi
push str.__s__uninstall_command_from_key__s__fail____
mov ecx, 0x649e50
call fcn.004918f0
add esp, 0xc
jmp 0x4b010a
push 0x800
push 0
mov ecx, dword [esi + 0x6c20]
add ecx, 0x1800
push ecx
call fcn.004fd670
lea edx, [ebp - 0x81c]
push edx
push esi
push str.__s__Install_command_was_invalid___s____
mov ecx, 0x649e50
call fcn.004918f0
add esp, 0x18
lea eax, [esi + 0x400]
lea edx, [eax + 2]
jmp 0x4b0270
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4b0270
sub eax, edx
sar eax, 1
je 0x4b0290
cmp byte [ebp + 8], cl
jne 0x4b0290
mov dword [ebp - 0x1024], 3
mov eax, dword [esi + 0x6c20]
lea edi, [eax + 0x2800]
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4b02a1
sub eax, edx
sar eax, 1
je 0x4b0365
push 0x800
push 0
lea eax, [ebp - 0x81c]
push eax
call fcn.004fd670
add esp, 0xc
push 0
push 0x400
lea ecx, [ebp - 0x81c]
push ecx
push edi
mov ecx, dword [ebx + 0xfd64]
call fcn.00480760
test eax, eax
je 0x4b030f
mov eax, dword [esi + 0x6c20]
add eax, 0x800
push 0x3ff
push eax
push 0x400
lea edx, [ebp - 0x81c]
push edx
call fcn.004fa71b
add esp, 0x10
lea ecx, [ebp - 0x81c]
call fcn.00495170
test al, al
jne 0x4b034b
push 0x800
push 0
mov eax, dword [esi + 0x6c20]
add eax, 0x2800
push eax
call fcn.004fd670
push esi
push str.__s__Reinstall_command_was_invalid__
mov ecx, 0x649e50
call fcn.004918f0
add esp, 0x14
jmp 0x4b0365
lea ecx, [ebp - 0x81c]
push ecx
push esi
push str.__s__Reinstall_command_was_valid___s_
mov ecx, 0x649e50
call fcn.004918f0
add esp, 0xc
cmp dword [ebp - 0x1024], 1
jne 0x4b0422
mov byte [ebp - 0x1025], 1
lea edi, [esi + 0x400]
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4b0384
sub eax, edx
sar eax, 1
je 0x4b040e
push 0x800
push 0
lea edx, [ebp - 0x81c]
push edx
call fcn.004fd670
add esp, 0xc
push 0
push 0x400
lea eax, [ebp - 0x81c]
push eax
push edi
mov ecx, dword [ebx + 0xfd64]
call fcn.00480760
test eax, eax
je 0x4b03e3
push 0x3ff
push edi
push 0x400
lea ecx, [ebp - 0x81c]
push ecx
call fcn.004fa71b
add esp, 0x10
lea edx, [ebp - 0x81c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4b040e
lea eax, [ebp - 0x81c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x4b040e
mov byte [ebp - 0x1025], 0
jmp 0x4b0422
push edi
mov ecx, dword [esi + 0x6c20]
add ecx, 0x800
xor edx, edx
call fcn.004b0fd0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1024]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.004fa103
mov esp, ebp
pop ebp
ret 4
xor eax, eax
jmp 0x4b042f