Function at 0x4165c0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42fc77
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x290
mov dword [ebp - 0x178], 0
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x11c]
call sub.MFC42.DLL_CString::CString_2
mov byte [ebp - 4], 2
mov dword [ebp - 0x10], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x17c], eax
push str.Agent
mov ecx, dword [ebp - 0x17c]
push ecx
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
neg eax
sbb eax, eax
inc eax
and eax, 0xff
test eax, eax
jne 0x41665d
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x180], edx
push str.tagDialog
mov eax, dword [ebp - 0x180]
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
neg eax
sbb eax, eax
inc eax
and eax, 0xff
test eax, eax
je 0x4166b8
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x184], ecx
push str.Agent
mov edx, dword [ebp - 0x184]
push edx
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
neg eax
sbb eax, eax
inc eax
and eax, 0xff
test eax, eax
je 0x416695
mov dword [ebp - 0x29c], 0x43d04c
jmp 0x41669f
mov dword [ebp - 0x29c], str.label
mov eax, dword [ebp - 0x29c]
push eax
lea ecx, [ebp - 0x11c]
call sub.MFC42.DLL_CString::operator_1
mov dword [ebp - 0x10], 1
cmp dword [ebp - 0x10], 0
je 0x4167f3
lea ecx, [ebp - 0x130]
call fcn.0042deca
mov byte [ebp - 4], 3
push 0x4408d0
lea ecx, [ebp - 0x120]
call fcn.0042df12
mov byte [ebp - 4], 4
push 0
push 0
mov ecx, dword [ebp - 0x11c]
push ecx
lea ecx, [ebp - 0x130]
call sub.MFC42.DLL_CFile::Open
test eax, eax
je 0x416795
mov dword [ebp - 0x16c], 0x32
mov dword [ebp - 0x134], 0
push 0x32
lea edx, [ebp - 0x168]
push edx
lea ecx, [ebp - 0x130]
call sub.MFC42.DLL_CFile::Read
mov dword [ebp - 0x134], eax
mov byte [ebp - 0x136], 0
cmp dword [ebp - 0x134], 0x32
jge 0x41674f
mov eax, dword [ebp - 0x134]
mov byte [ebp + eax - 0x168], 0
lea ecx, [ebp - 0x168]
push ecx
lea ecx, [ebp - 0x120]
call fcn.0042df18
cmp dword [ebp - 0x134], 0x32
je 0x416717
lea ecx, [ebp - 0x130]
call sub.MFC42.DLL_CFile::Close
push str.__t_n_r
lea ecx, [ebp - 0x120]
call sub.MFC42.DLL_CString::TrimLeft_1
push str.__t_n_r
lea ecx, [ebp - 0x120]
call sub.MFC42.DLL_CString::TrimRight
lea edx, [ebp - 0x120]
push edx
mov ecx, dword [ebp + 8]
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [ebp - 0x178]
or al, 1
mov dword [ebp - 0x178], eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x120]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x130]
call sub.MFC42.DLL_CFile::CFile
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x11c]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp + 8]
jmp 0x4168de
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 0x174]
push edx
call fcn.00416350
add esp, 8
mov dword [ebp - 0x294], eax
mov eax, dword [ebp - 0x294]
mov ecx, dword [eax]
mov dword [ebp - 0x298], ecx
mov edx, dword [ebp - 0x298]
push edx
push 0x104
lea eax, [ebp - 0x118]
push eax
push 0x4408d0
mov ecx, dword [ebp + 0xc]
push ecx
push str.OCS_Inventory_Agent
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
neg eax
sbb eax, eax
inc eax
mov byte [ebp - 0x170], al
lea ecx, [ebp - 0x174]
call sub.MFC42.DLL_CString::CString
mov edx, dword [ebp - 0x170]
and edx, 0xff
test edx, edx
je 0x4168a2
push 0x4408d0
mov ecx, dword [ebp + 8]
call fcn.0042df12
mov eax, dword [ebp - 0x178]
or al, 1
mov dword [ebp - 0x178], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x11c]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp + 8]
jmp 0x4168de
lea ecx, [ebp - 0x118]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0042df12
mov edx, dword [ebp - 0x178]
or edx, 1
mov dword [ebp - 0x178], edx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x11c]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret