Function at 0x404a70
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41b618
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x48
push ebx
push esi
push edi
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
call fcn.00413100
mov byte [ebp - 4], 1
call fcn.0041445f
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 2
call fcn.0041445f
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov esi, dword [ebp + 8]
xor eax, eax
test esi, esi
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov byte [ebp - 4], 3
mov word [ebp - 0x40], ax
je 0x404df2
cmp byte [esi], 0
je 0x404df2
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 0x104
push esi
jle 0x404b33
lea ecx, [ebp - 0x14]
push str.Filename_too_long:__s
push ecx
call fcn.00404a50
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
add esp, 0xc
push eax
call fcn.00402800
add esp, 4
push 0x420970
lea edx, [ebp - 0x1c]
add eax, 0x10
push edx
mov dword [ebp - 0x1c], eax
call fcn.004087f3
push 0x4249a8
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [ebp + 0x20]
push esi
push 0xa
lea ecx, [ebp - 0x48]
push ecx
push str.Default
push str.InProc
push str.General
mov dword [0x424ab4], eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push str.Default
lea edx, [ebp - 0x48]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x404b88
mov eax, dword [0x424ab4]
test eax, eax
jne 0x404b88
call fcn.004047f0
call fcn.004048d0
mov edi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push esi
push 0x41d200
push str.InProc
push str.General
call edi
test eax, eax
je 0x404db7
push esi
push 0
push 0
push 0
call edi
mov ecx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x14]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
lea edx, [ebp - 0x18]
push edx
push str.Filename
push str.SoftwareHewlett_PackardSetupCoreLogging
mov dword [0x4231fc], ecx
push 0x80000001
lea ecx, [ebp - 0x54]
mov dword [0x4231f0], edi
mov dword [0x4231f4], eax
mov dword [0x4231f8], ebx
call fcn.004138e0
test eax, eax
jne 0x404bfe
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x404d7b
push esi
push str.Filename
push str.SoftwareHewlett_PackardSetupCoreLogging
push 0x80000001
lea ecx, [ebp - 0x54]
mov dword [0x424ab0], 1
call fcn.004137b0
test eax, eax
je 0x404c55
push eax
push str.Filename
lea eax, [ebp - 0x14]
push str.Unable_to_set__s:__d
push eax
call fcn.00404a50
add esp, 0x10
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x20]
call fcn.004029d0
push 0x420970
lea edx, [ebp - 0x20]
push edx
call fcn.004087f3
push edi
push str.ErrorLevel
push str.SoftwareHewlett_PackardSetupCoreLogging
push 0x80000001
lea ecx, [ebp - 0x54]
call fcn.00413730
test eax, eax
je 0x404c9d
push eax
lea eax, [ebp - 0x14]
push str.Unable_to_set_default_error_level:__d
push eax
call fcn.00404a50
add esp, 0xc
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x24]
call fcn.004029d0
push 0x420970
lea edx, [ebp - 0x24]
push edx
call fcn.004087f3
push ebx
push str.LogOutputLevel
push str.SoftwareHewlett_PackardSetupCoreLogging
push 0x80000001
lea ecx, [ebp - 0x54]
call fcn.00413730
test eax, eax
je 0x404ce5
push eax
lea eax, [ebp - 0x14]
push str.Unable_to_set_default_file_name:__d
push eax
call fcn.00404a50
add esp, 0xc
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x28]
call fcn.004029d0
push 0x420970
lea edx, [ebp - 0x28]
push edx
call fcn.004087f3
mov eax, dword [ebp + 0x14]
push eax
push str.LogLevel
push str.SoftwareHewlett_PackardSetupCoreLogging
push 0x80000001
lea ecx, [ebp - 0x54]
call fcn.00413730
test eax, eax
je 0x404d30
push eax
lea ecx, [ebp - 0x14]
push str.Unable_to_set_default_file_name:__d
push ecx
call fcn.00404a50
add esp, 0xc
lea edx, [ebp - 0x14]
push edx
lea ecx, [ebp - 0x2c]
call fcn.004029d0
push 0x420970
lea eax, [ebp - 0x2c]
push eax
call fcn.004087f3
mov ecx, dword [ebp + 0x18]
push ecx
push str.LogTime
push str.SoftwareHewlett_PackardSetupCoreLogging
push 0x80000001
lea ecx, [ebp - 0x54]
call fcn.00413730
test eax, eax
je 0x404d7b
push eax
lea edx, [ebp - 0x14]
push str.Unable_to_set_default_file_name:__d
push edx
call fcn.00404a50
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x30]
call fcn.004029d0
push 0x420970
lea ecx, [ebp - 0x30]
push ecx
call fcn.004087f3
lea ecx, [ebp - 0x14]
mov dword [0x424aac], 1
call fcn.00401ae0
lea ecx, [ebp - 0x18]
call fcn.00401ae0
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 0
call fcn.00413120
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [ebp - 0x14]
push str.WriteProfileString_returned_error:__d
push edx
call fcn.00404a50
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
add esp, 0xc
push eax
call fcn.00402800
add eax, 0x10
add esp, 4
mov dword [ebp - 0x34], eax
push 0x420970
lea eax, [ebp - 0x34]
push eax
call fcn.004087f3
push 0x4207ec
lea ecx, [ebp - 0x38]
push ecx
mov dword [ebp - 0x38], str.No_file_name_specified
call fcn.004087f3
lea ecx, [ebp - 0x3c]
call fcn.00401ae0
mov eax, 0x404e15
ret