Function at 0x401120
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x4160bc
call fcn.0040ef50
sub esp, 0x140
push ebx
push esi
push edi
mov dword [ebp - 0x10], ecx
xor ebx, ebx
push str.CChkSmartAngel::IsInstallSmartAngel2_check_VIF_file.__start__n
mov dword [ebp - 4], ebx
xor edi, edi
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], 0xf000c
call fcn.004024eb
cmp dword [ebp + 0xc], 1
pop ecx
jne 0x40115e
lea edi, [ebp - 0x28]
push ecx
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp + 0xc], esp
push eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], ebx
xor esi, esi
call fcn.004013ef
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x18]
push eax
call fcn.0040102c
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.00401b7a
test eax, eax
jne 0x40135c
push dword [ebp - 0x18]
push str.Target_printer_is___s_._n
call fcn.004024eb
pop ecx
lea eax, [ebp - 0x14]
pop ecx
push edi
push eax
lea ecx, [ebp - 0x18]
call fcn.00401e04
push eax
call sub.WINSPOOL.DRV_OpenPrinterA
test eax, eax
je 0x401355
push str.OpenPrinter_is_success.__Already_exist_same_target_driver.__n
call fcn.004024eb
pop ecx
lea eax, [ebp + 0xc]
push eax
push ebx
push ebx
push 2
push ebx
mov dword [ebp + 0xc], ebx
push dword [ebp - 0x14]
call sub.WINSPOOL.DRV_GetPrinterDriverA
cmp dword [ebp + 0xc], ebx
je 0x401331
push dword [ebp + 0xc]
call fcn.0040efd0
mov esi, eax
pop ecx
cmp esi, ebx
je 0x40132a
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0xc]
push esi
push 2
push ebx
push dword [ebp - 0x14]
call sub.WINSPOOL.DRV_GetPrinterDriverA
test eax, eax
je 0x401323
push str.GetPrinterDriver_is_success._n
call fcn.004024eb
cmp dword [esi + 0x10], ebx
pop ecx
je 0x40131c
push 0x104
lea eax, [ebp - 0x14c]
push ebx
push eax
call fcn.0040ef70
add esp, 0xc
lea eax, [ebp - 0x14c]
push dword [esi + 0x10]
push eax
call fcn.0040f060
pop ecx
lea eax, [ebp - 0x14c]
pop ecx
mov ecx, dword [ebp - 0x10]
push eax
call fcn.004013af
lea eax, [ebp - 0x14c]
push eax
push str.DataFile__s_n
call fcn.004024eb
pop ecx
lea eax, [ebp - 0x14c]
pop ecx
push str..VIF
push eax
call fcn.0040efe0
pop ecx
test eax, eax
pop ecx
je 0x401315
push 0x20
lea eax, [ebp - 0x48]
push ebx
push eax
call fcn.0040ef70
add esp, 0xc
lea eax, [ebp - 0x48]
push dword [esi + 0x10]
push 0x20
push eax
push 0x420bb0
push str.SAInstI
push str.User_Mode_Printer_Driver_Information
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp eax, ebx
je 0x40130e
lea eax, [ebp - 0x48]
push eax
push str.KeyValue___s_n
call fcn.004024eb
pop ecx
lea eax, [ebp - 0x48]
pop ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.00401595
push str.E_ARCV02.DLL
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.00401de8
test eax, eax
jne 0x401300
push str.This_KeyValue_is_SmartModel_Installer___n
mov dword [ebp - 0x1c], 1
call fcn.004024eb
pop ecx
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.00401563
jmp 0x40133c
push str.I_am_not_found__SAInstI__key._n
jmp 0x401336
push str.You_have_not_VIF_file._n
jmp 0x401336
push str.You_have_not_define_data_file._n
jmp 0x401336
push str.I_cant_get_DriverInfo.__2__n
jmp 0x401336
push str.I_cant_allocate_memory._n
jmp 0x401336
push str.I_cant_get_DriverInfo.__1__n
call fcn.004024eb
pop ecx
cmp dword [ebp - 0x14], ebx
je 0x401349
push dword [ebp - 0x14]
call sub.WINSPOOL.DRV_ClosePrinter
cmp esi, ebx
je 0x401367
push esi
call fcn.0040eaf0
jmp 0x401366
push str.I_cant_open_printer._n
jmp 0x401361
push str.I_cant_get_printer_name._n
call fcn.004024eb
pop ecx
cmp dword [ebp - 0x1c], 1
mov eax, str.TRUE
je 0x401377
mov eax, str.FALSE
push eax
push str.CChkSmartAngel::IsInstallSmartAngel2_end____s_n
call fcn.004024eb
pop ecx
mov byte [ebp - 4], bl
pop ecx
lea ecx, [ebp - 0x18]
call fcn.00401563
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401563
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x1c]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8