Function at 0x4e8d60
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a9b21
mov eax, dword fs:[0]
push eax
sub esp, 0x488
mov eax, dword [0x608554]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push ecx
push str.CBaseInfoPrinterEx::RestoreBasicPrinterInfo
lea ecx, [ebp - 0x480]
call fcn.0040a480
mov dword [ebp - 4], 0
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x4e8de8
test byte [ecx + 0x1c], 1
je 0x4e8de8
cmp dword [0x608f68], 8
mov eax, 0x608f54
mov edx, 0x5daec4
cmovae eax, dword [0x608f54]
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x1c
call fcn.00401840
add esp, 0xc
mov dword [ebp - 0x490], 0
mov dword [ebp - 0x48c], 0
mov dword [ebp - 0x488], 0
push 0x200
lea eax, [ebp - 0x210]
mov byte [ebp - 4], 1
push 0
push eax
call fcn.00571c00
push 0x200
lea eax, [ebp - 0x410]
push 0
push eax
call fcn.00571c00
mov eax, dword [0x6184f0]
lea ecx, [ebp - 0x448]
add esp, 0x14
mov dword [ebp - 0x494], 0
mov esi, dword [eax + 0x2c]
push str.CBaseInfoResBasicIni::Read_InstInfo_FileVersion
call fcn.0040a480
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x4e8e95
test byte [ecx + 0x1c], 1
je 0x4e8e95
cmp dword [0x608f68], 8
mov eax, 0x608f54
mov edx, 0x5db828
cmovae eax, dword [0x608f54]
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0xc
call fcn.00401840
add esp, 0xc
cmp dword [esi + 0x18], 8
lea eax, [esi + 4]
jb 0x4e8ea0
mov eax, dword [eax]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push eax
push 0x10000
push 0x5ceb18
push str.InstallInfo
call edi
mov esi, eax
mov byte [ebp - 0x444], 1
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x4e8f03
test byte [ecx + 0x1c], 1
je 0x4e8f03
cmp dword [0x608f68], 8
mov eax, 0x608f54
push 0
cmovae eax, dword [0x608f54]
mov edx, 0x5db828
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0xd
call fcn.004018a0
add esp, 0x10
lea ecx, [ebp - 0x448]
call fcn.0040a570
cmp esi, 0x10000
je 0x4e8f2a
mov esi, 0x80010006
mov dword [0x6183ec], 6
jmp 0x4e90e3
lea ecx, [ebp - 0x484]
call fcn.00475e00
lea eax, [ebp - 0x210]
mov byte [ebp - 4], 2
push eax
push 0x100
lea ecx, [ebp - 0x484]
call fcn.004775d0
mov ecx, dword [0x6184f0]
lea eax, [ebp - 0x410]
push eax
push 0x100
mov ecx, dword [ecx + 0x2c]
call fcn.004f87e0
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x410]
push eax
lea ecx, [ebp - 0x484]
call fcn.00477740
lea ecx, [ebp - 0x484]
mov byte [ebp - 4], 1
mov esi, eax
call fcn.00475ed0
test esi, esi
jne 0x4e90e3
mov eax, dword [0x6184f0]
push ecx
push str.CBaseInfoResBasicIni::Read_InstInfo_PrinterNum
lea ecx, [ebp - 0x448]
mov esi, dword [eax + 0x2c]
call fcn.0040a480
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x4e8ff5
test byte [ecx + 0x1c], 1
je 0x4e8ff5
cmp dword [0x608f68], 8
mov eax, 0x608f54
mov edx, 0x5db828
cmovae eax, dword [0x608f54]
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x14
call fcn.00401840
add esp, 0xc
cmp dword [esi + 0x18], 8
lea eax, [esi + 4]
jb 0x4e9000
mov eax, dword [eax]
push eax
push 0
push str.PrinterNum
push str.InstallInfo
call edi
mov edi, eax
mov byte [ebp - 0x444], 1
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x4e905a
test byte [ecx + 0x1c], 1
je 0x4e905a
cmp dword [0x608f68], 8
mov eax, 0x608f54
push 0
cmovae eax, dword [0x608f54]
mov edx, 0x5db828
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x15
call fcn.004018a0
add esp, 0x10
lea ecx, [ebp - 0x448]
call fcn.0040a570
mov ecx, dword [0x6184f0]
lea eax, [ebp - 0x494]
push eax
mov ecx, dword [ecx + 0x2c]
call fcn.004f8d40
mov esi, eax
test esi, esi
jne 0x4e90e3
mov ecx, dword [0x6184f0]
mov dword [ebp - 0x48c], eax
lea eax, [ebp - 0x490]
push eax
mov ecx, dword [ecx + 0x2c]
call fcn.004f91c0
mov ecx, dword [ebp - 0x48c]
mov esi, eax
sub ecx, dword [ebp - 0x490]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
je 0x4e90cf
mov esi, 0x80010006
mov dword [0x6183ec], 6
jmp 0x4e90e3
test esi, esi
jne 0x4e90e3
lea eax, [ebp - 0x490]
mov ecx, ebx
push eax
call fcn.004edea0
mov esi, eax
mov byte [ebp - 0x47c], 1
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x4e912b
test byte [ecx + 0x1c], 1
je 0x4e912b
cmp dword [0x608f68], 8
mov eax, 0x608f54
push esi
cmovae eax, dword [0x608f54]
mov edx, 0x5daec4
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x1d
call fcn.004018a0
add esp, 0x10
lea ecx, [ebp - 0x490]
call fcn.00409b00
lea ecx, [ebp - 0x480]
call fcn.0040a570
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0056d977
mov esp, ebp
pop ebp
ret