Function at 0x4039c0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4181d0
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.00404f70
mov eax, dword [0x41f1f0]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x48], eax
mov byte [ebp - 4], 3
mov dword [ebp - 0x44], eax
test esi, esi
mov word [ebp - 0x40], ax
je 0x403d19
cmp byte [esi], 0
je 0x403d19
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 0x104
push esi
jle 0x403a59
lea ecx, [ebp - 0x14]
push str.Filename_too_long:__s
push ecx
call fcn.00411083
add esp, 0xc
lea edx, [ebp - 0x14]
lea ecx, [ebp - 0x1c]
push edx
call fcn.00411855
lea eax, [ebp - 0x1c]
push 0x41b9e0
push eax
call fcn.004068b9
push 0x422694
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [ebp + 0x20]
push esi
lea edx, [ebp - 0x48]
push 0xa
push edx
push str.Default
push str.InProc
push str.General
mov dword [0x4227a0], ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x48]
push str.Default
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x403aaf
mov eax, dword [0x4227a0]
test eax, eax
jne 0x403aaf
call fcn.00403d80
call fcn.00403e60
mov edi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push esi
push 0x41e1d0
push str.InProc
push str.General
call edi
test eax, eax
je 0x403ce7
push esi
push 0
push 0
push 0
call edi
mov ecx, dword [ebp + 0x14]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x18]
lea eax, [ebp - 0x18]
mov dword [0x41ec48], ecx
push eax
push str.Filename
push str.SoftwareHewlett_PackardSetupCoreLogging
push 0x80000002
lea ecx, [ebp - 0x54]
mov dword [0x41ec44], edi
mov dword [0x41ec4c], ebx
mov dword [0x41ec50], edx
call fcn.00405120
test eax, eax
jne 0x403b26
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x403ca3
push esi
push str.Filename
push str.SoftwareHewlett_PackardSetupCoreLogging
push 0x80000002
lea ecx, [ebp - 0x54]
mov dword [0x42279c], 1
call fcn.004054c0
test eax, eax
je 0x403b7d
push eax
push str.Filename
lea ecx, [ebp - 0x14]
push str.Unable_to_set__s:__d
push ecx
call fcn.00411083
add esp, 0x10
lea edx, [ebp - 0x14]
lea ecx, [ebp - 0x20]
push edx
call fcn.00411855
lea eax, [ebp - 0x20]
push 0x41b9e0
push eax
call fcn.004068b9
push edi
push str.ErrorLevel
push str.SoftwareHewlett_PackardSetupCoreLogging
push 0x80000002
lea ecx, [ebp - 0x54]
call fcn.00405420
test eax, eax
je 0x403bc5
push eax
lea ecx, [ebp - 0x14]
push str.Unable_to_set_default_error_level:__d
push ecx
call fcn.00411083
add esp, 0xc
lea edx, [ebp - 0x14]
lea ecx, [ebp - 0x24]
push edx
call fcn.00411855
lea eax, [ebp - 0x24]
push 0x41b9e0
push eax
call fcn.004068b9
push ebx
push str.LogOutputLevel
push str.SoftwareHewlett_PackardSetupCoreLogging
push 0x80000002
lea ecx, [ebp - 0x54]
call fcn.00405420
test eax, eax
je 0x403c0d
push eax
lea ecx, [ebp - 0x14]
push str.Unable_to_set_default_file_name:__d
push ecx
call fcn.00411083
add esp, 0xc
lea edx, [ebp - 0x14]
lea ecx, [ebp - 0x28]
push edx
call fcn.00411855
lea eax, [ebp - 0x28]
push 0x41b9e0
push eax
call fcn.004068b9
mov ecx, dword [ebp + 0x14]
push ecx
push str.LogLevel
push str.SoftwareHewlett_PackardSetupCoreLogging
push 0x80000002
lea ecx, [ebp - 0x54]
call fcn.00405420
test eax, eax
je 0x403c58
push eax
lea edx, [ebp - 0x14]
push str.Unable_to_set_default_file_name:__d
push edx
call fcn.00411083
add esp, 0xc
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x2c]
push eax
call fcn.00411855
lea ecx, [ebp - 0x2c]
push 0x41b9e0
push ecx
call fcn.004068b9
mov edx, dword [ebp + 0x18]
lea ecx, [ebp - 0x54]
push edx
push str.LogTime
push str.SoftwareHewlett_PackardSetupCoreLogging
push 0x80000002
call fcn.00405420
test eax, eax
je 0x403ca3
push eax
lea eax, [ebp - 0x14]
push str.Unable_to_set_default_file_name:__d
push eax
call fcn.00411083
add esp, 0xc
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x30]
call fcn.00411855
lea edx, [ebp - 0x30]
push 0x41b9e0
push edx
call fcn.004068b9
lea ecx, [ebp - 0x14]
mov dword [0x422798], 1
mov byte [ebp - 4], 2
call fcn.00411ae0
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.00411ae0
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 0
call fcn.00404fe0
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 eax, [ebp - 0x14]
push str.WriteProfileString_returned_error:__d
push eax
call fcn.00411083
add esp, 0xc
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x34]
call fcn.00411855
lea edx, [ebp - 0x34]
push 0x41b9e0
push edx
call fcn.004068b9
lea eax, [ebp - 0x38]
push 0x41b808
push eax
mov dword [ebp - 0x38], str.No_file_name_specified
call fcn.004068b9
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 4
call fcn.00411ae0
mov eax, 0x403d40
ret