Function at 0x4b69c0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x523556
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x5c44
call fcn.004fe1a0
mov eax, dword [0x5a4aa8]
xor eax, esp
mov dword [esp + 0x5c40], eax
push ebx
push esi
push edi
mov eax, dword [0x5a4aa8]
xor eax, esp
push eax
lea eax, [esp + 0x5c58]
mov dword fs:[0], eax
xor ebx, ebx
push 0x800
lea eax, [esp + 0x24c]
push ebx
push eax
mov edi, ecx
mov esi, edx
mov dword [esp + 0x248], ebx
mov byte [esp + 0x24c], bl
mov dword [esp + 0x250], ebx
call fcn.004fd670
add esp, 0xc
cmp esi, ebx
mov dword [esp + 0x5c60], ebx
je 0x4b742f
mov eax, esi
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4b6a50
sub eax, edx
sar eax, 1
je 0x4b742f
push esi
push str.__Update_Comp_:__s
mov ecx, 0x649e50
call fcn.004918f0
push 0x800
lea ecx, [esp + 0x4c58]
push ebx
push ecx
call fcn.004fd670
add esp, 0x14
push esi
push str.InstallingComponents
push 0x535a74
lea edx, [esp + 0x4c58]
call fcn.00404380
mov edx, dword [edi]
add esp, 0xc
push edx
lea ebx, [esp + 0x4c50]
lea eax, [esp + 0x240]
call fcn.00491f50
test eax, eax
je 0x4b6af0
mov dword [esp + 0x5c60], 0xffffffff
cmp byte [esp + 0x240], 0
je 0x4b6ae6
mov eax, dword [esp + 0x23c]
test eax, eax
je 0x4b6ae6
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 3
jmp 0x4b745a
push 0x800
xor ebx, ebx
lea eax, [esp + 0x3250]
push ebx
push eax
call fcn.004fd670
mov edx, dword [esp + 0x248]
add esp, 0xc
push 1
push 0x800
lea ecx, [esp + 0x3254]
push ecx
push str.Update_Temp_Dir
push edx
xor edx, edx
call fcn.004920e0
mov esi, eax
add esp, 0x14
cmp esi, ebx
je 0x4b6b73
push str.Invalid_Target_Directory___
mov ecx, 0x649e50
call fcn.004918f0
add esp, 4
mov dword [esp + 0x5c60], 0xffffffff
cmp byte [esp + 0x240], bl
je 0x4b6b6c
mov eax, dword [esp + 0x23c]
cmp eax, ebx
je 0x4b6b6c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x4b745a
mov ecx, 0x54c608
lea edx, [esp + 0x324c]
call fcn.00494ad0
mov ecx, 0x54c608
lea edx, [esp + 0x324c]
call fcn.00494c80
lea eax, [esp + 0x324c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4b6be2
lea ecx, [esp + 0x324c]
push ecx
push str.Invalid_Path___s_
mov ecx, 0x649e50
call fcn.004918f0
add esp, 8
lea eax, [esp + 0x23c]
mov dword [esp + 0x5c60], 0xffffffff
call fcn.00491f30
mov eax, 3
jmp 0x4b745a
lea edx, [esp + 0x324c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x4b739e
push 0x200
lea eax, [esp + 0x2e50]
push ebx
push eax
call fcn.004fd670
add esp, 0xc
push 0x200
lea ecx, [esp + 0x3050]
push ebx
push ecx
call fcn.004fd670
mov eax, dword [esp + 0x248]
add esp, 0xc
push 1
push 0x200
lea edx, [esp + 0x3054]
push edx
push str.Class
push eax
xor edx, edx
call fcn.004920e0
add esp, 0x14
test eax, eax
je 0x4b6c60
push str.Get_Class_Name_Fail___
mov ecx, 0x649e50
call fcn.004918f0
add esp, 4
lea ecx, [esp + 0x304c]
push str.Printer
push ecx
call fcn.004f9f1e
add esp, 8
test eax, eax
je 0x4b7068
lea edx, [esp + 0x304c]
push str.Image
push edx
call fcn.004f9f1e
add esp, 8
test eax, eax
je 0x4b7068
lea eax, [esp + 0x304c]
push str.NonDevice
push eax
call fcn.004f9f1e
add esp, 8
test eax, eax
je 0x4b7068
push 0x800
lea ecx, [esp + 0x3a50]
push ebx
push ecx
call fcn.004fd670
mov eax, dword [esp + 0x248]
add esp, 0xc
push 1
push 0x800
lea edx, [esp + 0x3a54]
push edx
push str.Inst_Cmd
push eax
xor edx, edx
call fcn.004920e0
mov esi, eax
add esp, 0x14
cmp esi, ebx
je 0x4b6d03
push str.Get_install_command_fail___
jmp 0x4b70af
push 0x200
lea ecx, [esp + 0x4250]
push ebx
push ecx
call fcn.004fd670
add esp, 0xc
lea edx, [esp + 0x3a4c]
push 0x5c
push edx
call fcn.004fa6eb
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x4b6d36
add esi, 2
jmp 0x4b6d3d
lea esi, [esp + 0x3a4c]
push 0xff
push esi
lea eax, [esp + 0x2e54]
push pe_nt_image_headers32
push eax
call fcn.004fa71b
lea ecx, [esp + 0x3a5c]
add esp, 0x10
cmp esi, ecx
je 0x4b6d9f
mov edx, ecx
push 0x5c
push edx
mov word [esi - 2], bx
call fcn.004fa6eb
add esp, 8
cmp eax, ebx
je 0x4b6d7d
add eax, 2
jmp 0x4b6d84
lea eax, [esp + 0x3a4c]
push 0xff
push eax
lea eax, [esp + 0x4254]
push pe_nt_image_headers32
push eax
call fcn.004fa71b
add esp, 0x10
lea ecx, [esp + 0x2c]
push ecx
call fcn.004aefb0
push 0xff
lea edx, [esp + 0x2e50]
push edx
lea eax, [esp + 0x34]
push pe_nt_image_headers32
push eax
mov byte [esp + 0x5c70], 1
call fcn.004fa71b
add esp, 0x10
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x3250]
push edx
mov ecx, edi
call fcn.004b7b40
push 0x800
lea eax, [esp + 0x4450]
push ebx
push eax
call fcn.004fd670
add esp, 0xc
push 0x800
lea ecx, [esp + 0x5450]
push ebx
push ecx
call fcn.004fd670
add esp, 0xc
lea ecx, [esp + 0x22c]
call fcn.004b7f00
sub eax, ebx
je 0x4b7030
sub eax, 1
lea edi, [esp + 0x22c]
je 0x4b6f9e
lea esi, [esp + 0x14]
call fcn.004bddd0
lea esi, [esp + 0x1c]
call fcn.00419830
mov esi, eax
lea edi, [esp + 0x14]
call fcn.004166c0
test al, al
je 0x4b6f4c
lea esp, [esp]
mov edi, dword [esp + 0x14]
lea esi, [esp + 0x14]
call fcn.00416670
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4b6e70
sub eax, edx
sar eax, 1
cmp ebx, eax
jae 0x4b6ec1
lea esi, [esp + 0x14]
call fcn.00416670
push 0x3ff
push eax
lea edx, [esp + 0x5454]
push 0x400
push edx
call fcn.004fa71b
add esp, 0x10
call fcn.00416670
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4b6eb0
sub eax, edx
sar eax, 1
mov ebx, eax
lea esi, [esp + 0x14]
call fcn.00416670
add eax, 0x800
push eax
lea eax, [esp + 0x4250]
push eax
call fcn.004f9f1e
add esp, 8
test eax, eax
je 0x4b6f28
test edi, edi
jne 0x4b6eed
call fcn.004f9d7d
mov ecx, dword [esp + 0x18]
cmp ecx, dword [edi + 8]
jb 0x4b6efb
call fcn.004f9d7d
add dword [esp + 0x18], 0xa00
lea esi, [esp + 0x1c]
lea edi, [esp + 0x22c]
call fcn.00419830
mov esi, eax
lea edi, [esp + 0x14]
call fcn.004166c0
test al, al
jne 0x4b6e60
jmp 0x4b6f4c
lea esi, [esp + 0x14]
call fcn.00416670
push 0x3ff
push eax
lea edx, [esp + 0x4454]
push 0x400
push edx
call fcn.004fa71b
add esp, 0x10
lea eax, [esp + 0x444c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4b6f56
sub eax, edx
sar eax, 1
jne 0x4b6fc9
lea eax, [esp + 0x544c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4b6f71
sub eax, edx
sar eax, 1
je 0x4b6fc9
push 0x3ff
lea eax, [esp + 0x5450]
push eax
push 0x400
lea ecx, [esp + 0x4458]
push ecx
jmp 0x4b6fc1
lea esi, [esp + 0x24]
call fcn.004bddd0
mov esi, eax
call fcn.00416670
push 0x3ff
push eax
push 0x400
lea edx, [esp + 0x4458]
push edx
call fcn.004fa71b
add esp, 0x10
push str.Inst_Cmd
push 0
lea eax, [esp + 0x244]
push eax
lea ecx, [esp + 0x4458]
call fcn.00419d10
lea ecx, [esp + 0x444c]
push 0x5c
push ecx
call fcn.004fa6eb
add esp, 8
test eax, eax
je 0x4b6fff
mov word [eax], 0
push str.Comp_Dir
push 0
lea edx, [esp + 0x244]
push edx
lea ecx, [esp + 0x4458]
call fcn.00419d10
lea esi, [esp + 0x2c]
mov byte [esp + 0x5c60], 0
call fcn.004b7480
jmp 0x4b73eb
lea eax, [esp + 0x324c]
push eax
lea ecx, [esp + 0x2e50]
push ecx
push str.Get_Execution_file___s__under___s__fail___
mov ecx, 0x649e50
call fcn.004918f0
add esp, 0xc
lea esi, [esp + 0x2c]
mov byte [esp + 0x5c60], 0
call fcn.004b7480
jmp 0x4b71b3
push 0x800
lea edx, [esp + 0x3a50]
push ebx
push edx
call fcn.004fd670
mov ecx, dword [esp + 0x248]
add esp, 0xc
push 1
push 0x800
lea eax, [esp + 0x3a54]
push eax
push 0x53b8ec
push ecx
xor edx, edx
call fcn.004920e0
mov esi, eax
add esp, 0x14
cmp esi, ebx
je 0x4b70da
push str.Get_Inf_File_path_fail___
mov ecx, 0x649e50
call fcn.004918f0
add esp, 4
lea eax, [esp + 0x23c]
mov dword [esp + 0x5c60], 0xffffffff
call fcn.00491f30
mov eax, esi
jmp 0x4b745a
lea edx, [esp + 0x3a4c]
push 0x5c
push edx
call fcn.004fa6eb
add esp, 8
cmp eax, ebx
je 0x4b70f5
add eax, 2
jmp 0x4b70fc
lea eax, [esp + 0x3a4c]
push 0xff
push eax
lea eax, [esp + 0x2e54]
push pe_nt_image_headers32
push eax
call fcn.004fa71b
add esp, 0x10
lea esi, [esp + 0xa4c]
call fcn.004aef30
push 0xff
lea ecx, [esp + 0x2e50]
push ecx
mov edx, esi
push pe_nt_image_headers32
push edx
call fcn.004fa71b
push 0xff
lea eax, [esp + 0x3060]
push eax
lea ecx, [esp + 0xc64]
push pe_nt_image_headers32
push ecx
call fcn.004fa71b
add esp, 0x20
mov edx, esi
push edx
lea eax, [esp + 0x3250]
push eax
mov ecx, edi
call fcn.004b74c0
lea eax, [esp + 0x164c]
lea edx, [eax + 2]
jmp 0x4b7180
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4b7180
sub eax, edx
sar eax, 1
jne 0x4b71d4
lea ecx, [esp + 0x324c]
push ecx
lea edx, [esp + 0x2e50]
push edx
push str.Inf__s__not_found_under_the_directory__s____
mov ecx, 0x649e50
call fcn.004918f0
add esp, 0xc
lea eax, [esp + 0x23c]
mov dword [esp + 0x5c60], 0xffffffff
call fcn.00491f30
mov eax, 2
jmp 0x4b745a
lea eax, [esp + 0xe4c]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4b71e0
sub eax, edx
sar eax, 1
jne 0x4b7339
lea eax, [esp + 0x1e4c]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4b7200
sub eax, edx
sar eax, 1
je 0x4b72df
lea eax, [esp + 0x264c]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4b7220
sub eax, edx
sar eax, 1
je 0x4b72df
lea eax, [esp + 0x1e4c]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4b7240
sub eax, edx
sar eax, 1
xor ecx, ecx
cmp eax, ebx
jle 0x4b7281
jmp 0x4b7260
movzx edx, word [esp + ecx*2 + 0x1e4c]
cmp dx, word [esp + ecx*2 + 0x264c]
jne 0x4b7281
mov word [esp + ecx*2 + 0xe4c], dx
add ecx, 1
cmp ecx, eax
jl 0x4b7260
lea eax, [esp + 0xe4c]
lea edx, [eax + 2]
jmp 0x4b7290
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4b7290
sub eax, edx
sar eax, 1
cmp word [esp + eax*2 + 0xe4a], 0x5c
lea eax, [esp + 0xe4c]
jne 0x4b72cd
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4b72b4
sub eax, edx
sar eax, 1
mov word [esp + eax*2 + 0xe4a], bx
jmp 0x4b72df
push 0x5c
push eax
call fcn.004fa6eb
add esp, 8
cmp eax, ebx
je 0x4b72df
mov word [eax], bx
lea eax, [esp + 0xe4c]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4b72f0
sub eax, edx
sar eax, 1
jne 0x4b7339
push 0x3ff
lea ecx, [esp + 0x1650]
push ecx
lea edx, [esp + 0xe54]
push 0x400
push edx
call fcn.004fa71b
lea eax, [esp + 0xe5c]
push 0x5c
push eax
call fcn.004fa6eb
add esp, 0x18
cmp eax, ebx
je 0x4b7339
mov word [eax], bx
push 0x53b8ec
push ebx
lea ecx, [esp + 0x244]
push ecx
lea ecx, [esp + 0x1658]
call fcn.00419d10
push str.Inf_32
push ebx
lea edx, [esp + 0x244]
push edx
lea ecx, [esp + 0x1e58]
call fcn.00419d10
push str.Inf_64
push ebx
lea eax, [esp + 0x244]
push eax
lea ecx, [esp + 0x2658]
call fcn.00419d10
push str.Comp_Dir
lea ecx, [esp + 0x240]
push ebx
push ecx
lea ecx, [esp + 0xe58]
jmp 0x4b73e6
push str.Inst_Cmd
push ebx
lea edx, [esp + 0x244]
push edx
lea ecx, [esp + 0x3258]
call fcn.00419d10
lea eax, [esp + 0x324c]
push 0x5c
push eax
call fcn.004fa6eb
add esp, 8
cmp eax, ebx
je 0x4b73d1
mov word [eax], bx
push str.Comp_Dir
lea ecx, [esp + 0x240]
push ebx
push ecx
lea ecx, [esp + 0x3258]
call fcn.00419d10
mov edx, dword [esp + 0x23c]
push 0
push 4
push 4
push str.UpdateSetting
push edx
lea ecx, [esp + 0x28]
xor edx, edx
mov dword [esp + 0x28], 1
call fcn.004924c0
add esp, 0x14
lea eax, [esp + 0x23c]
mov dword [esp + 0x5c60], 0xffffffff
call fcn.00491f30
xor eax, eax
jmp 0x4b745a
mov dword [esp + 0x5c60], 0xffffffff
cmp byte [esp + 0x240], bl
je 0x4b7455
mov eax, dword [esp + 0x23c]
cmp eax, ebx
je 0x4b7455
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x57
mov ecx, dword [esp + 0x5c58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x5c40]
xor ecx, esp
call fcn.004fa103
mov esp, ebp
pop ebp
ret