Function at 0x46b240
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x5d8e15
push eax
mov eax, 0x440c
mov dword fs:[0], esp
call fcn.0055b070
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
push edi
mov esi, ecx
push eax
call fcn.0046bf40
xor edi, edi
mov ecx, esi
mov dword [esp + 0x4424], edi
mov byte [esp + 0x17], 0
call fcn.0046bee0
mov ecx, dword [esp + 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push ecx
lea edx, [esp + 0x420]
push 0x4000
push edx
push 0x67f98c
push edi
push edi
call ebx
mov al, byte [esp + 0x41c]
mov dword [esp + 0x18], edi
test al, al
je 0x46b311
lea ebp, [esp + 0x41c]
push ebp
push edi
lea ecx, [esi + 0x134]
call fcn.0059ac9f
mov eax, dword [esi + 0x138]
push str.Original_Header_Footer
mov ecx, dword [eax + edi*4]
lea eax, [eax + edi*4]
push ecx
call fcn.0055b250
add esp, 8
test eax, eax
jne 0x46b2eb
mov byte [esp + 0x17], 1
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [esp + 0x18]
inc edi
lea eax, [edx + eax + 1]
mov dword [esp + 0x18], eax
lea ebp, [esp + eax + 0x41c]
mov al, byte [esp + eax + 0x41c]
test al, al
jne 0x46b2bb
mov eax, dword [esi + 0x13c]
xor edi, edi
test eax, eax
jle 0x46b654
push 0x30
call fcn.0059dece
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
mov byte [esp + 0x4424], 1
je 0x46b346
mov ecx, eax
call fcn.00498430
mov ebp, eax
jmp 0x46b348
xor ebp, ebp
mov ecx, dword [esp + 0x10]
mov eax, dword [esi + 0x138]
push ecx
lea edx, [esp + 0x420]
mov eax, dword [eax + edi*4]
push 0x4000
push edx
push 0x67f98c
push str.Header1Left
push eax
mov byte [esp + 0x443c], 0
call ebx
mov ecx, dword [ebp]
lea eax, [esp + 0x41c]
push 0x7f
push eax
push ecx
call fcn.0047f6b0
mov edx, dword [esi + 0x138]
mov ecx, dword [esp + 0x1c]
add esp, 0xc
mov eax, dword [edx + edi*4]
lea edx, [esp + 0x41c]
push ecx
push 0x4000
push edx
push 0x67f98c
push str.Header1Center
push eax
call ebx
mov ecx, dword [ebp + 0x10]
lea eax, [esp + 0x41c]
push 0x7f
push eax
push ecx
call fcn.0047f6b0
mov edx, dword [esi + 0x138]
mov ecx, dword [esp + 0x1c]
add esp, 0xc
mov eax, dword [edx + edi*4]
lea edx, [esp + 0x41c]
push ecx
push 0x4000
push edx
push 0x67f98c
push str.Header1Right
push eax
call ebx
mov ecx, dword [ebp + 0x20]
lea eax, [esp + 0x41c]
push 0x7f
push eax
push ecx
call fcn.0047f6b0
mov edx, dword [esi + 0x138]
mov ecx, dword [esp + 0x1c]
add esp, 0xc
mov eax, dword [edx + edi*4]
lea edx, [esp + 0x41c]
push ecx
push 0x4000
push edx
push 0x67f98c
push str.Header2Left
push eax
call ebx
mov ecx, dword [ebp + 4]
lea eax, [esp + 0x41c]
push 0x7f
push eax
push ecx
call fcn.0047f6b0
mov edx, dword [esi + 0x138]
mov ecx, dword [esp + 0x1c]
add esp, 0xc
mov eax, dword [edx + edi*4]
lea edx, [esp + 0x41c]
push ecx
push 0x4000
push edx
push 0x67f98c
push str.Header2Center
push eax
call ebx
mov ecx, dword [ebp + 0x14]
lea eax, [esp + 0x41c]
push 0x7f
push eax
push ecx
call fcn.0047f6b0
mov edx, dword [esi + 0x138]
mov ecx, dword [esp + 0x1c]
add esp, 0xc
mov eax, dword [edx + edi*4]
lea edx, [esp + 0x41c]
push ecx
push 0x4000
push edx
push 0x67f98c
push str.Header2Right
push eax
call ebx
mov ecx, dword [ebp + 0x24]
lea eax, [esp + 0x41c]
push 0x7f
push eax
push ecx
call fcn.0047f6b0
mov edx, dword [esi + 0x138]
mov ecx, dword [esp + 0x1c]
add esp, 0xc
mov eax, dword [edx + edi*4]
lea edx, [esp + 0x41c]
push ecx
push 0x4000
push edx
push 0x67f98c
push str.Footer1Left
push eax
call ebx
mov ecx, dword [ebp + 8]
lea eax, [esp + 0x41c]
push 0x7f
push eax
push ecx
call fcn.0047f6b0
mov edx, dword [esi + 0x138]
mov ecx, dword [esp + 0x1c]
add esp, 0xc
mov eax, dword [edx + edi*4]
lea edx, [esp + 0x41c]
push ecx
push 0x4000
push edx
push 0x67f98c
push str.Footer1Center
push eax
call ebx
mov ecx, dword [ebp + 0x18]
lea eax, [esp + 0x41c]
push 0x7f
push eax
push ecx
call fcn.0047f6b0
mov edx, dword [esi + 0x138]
mov ecx, dword [esp + 0x1c]
add esp, 0xc
mov eax, dword [edx + edi*4]
lea edx, [esp + 0x41c]
push ecx
push 0x4000
push edx
push 0x67f98c
push str.Footer1Right
push eax
call ebx
mov ecx, dword [ebp + 0x28]
lea eax, [esp + 0x41c]
push 0x7f
push eax
push ecx
call fcn.0047f6b0
mov edx, dword [esi + 0x138]
mov ecx, dword [esp + 0x1c]
add esp, 0xc
mov eax, dword [edx + edi*4]
lea edx, [esp + 0x41c]
push ecx
push 0x4000
push edx
push 0x67f98c
push str.Footer2Left
push eax
call ebx
mov ecx, dword [ebp + 0xc]
lea eax, [esp + 0x41c]
push 0x7f
push eax
push ecx
call fcn.0047f6b0
mov edx, dword [esi + 0x138]
mov ecx, dword [esp + 0x1c]
add esp, 0xc
mov eax, dword [edx + edi*4]
lea edx, [esp + 0x41c]
push ecx
push 0x4000
push edx
push 0x67f98c
push str.Footer2Center
push eax
call ebx
mov ecx, dword [ebp + 0x1c]
lea eax, [esp + 0x41c]
push 0x7f
push eax
push ecx
call fcn.0047f6b0
mov edx, dword [esi + 0x138]
mov ecx, dword [esp + 0x1c]
add esp, 0xc
mov eax, dword [edx + edi*4]
lea edx, [esp + 0x41c]
push ecx
push 0x4000
push edx
push 0x67f98c
push str.Footer2Right
push eax
call ebx
mov ecx, dword [ebp + 0x2c]
lea eax, [esp + 0x41c]
push 0x7f
push eax
push ecx
call fcn.0047f6b0
add esp, 0xc
lea ecx, [esi + 0x148]
push ebp
push edi
call fcn.0059b18f
mov eax, dword [esi + 0x13c]
inc edi
cmp edi, eax
jl 0x46b321
mov eax, dword [esi + 0x150]
test eax, eax
jne 0x46b924
push 0x30
call fcn.0059dece
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
mov byte [esp + 0x4424], 2
je 0x46b687
mov ecx, eax
call fcn.00498430
mov edi, eax
jmp 0x46b689
xor edi, edi
push 0xff
lea edx, [esp + 0x20]
push 0x67fcd0
push edx
push str.Header1Left
mov ecx, esi
mov byte [esp + 0x4434], 0
call fcn.00497850
mov ecx, dword [edi]
lea eax, [esp + 0x1c]
push 0x7f
push eax
push ecx
call fcn.0047f6b0
add esp, 0xc
lea edx, [esp + 0x1c]
mov ecx, esi
push 0xff
push 0x67fcd0
push edx
push str.Header1Center
call fcn.00497850
mov ecx, dword [edi + 0x10]
lea eax, [esp + 0x1c]
push 0x7f
push eax
push ecx
call fcn.0047f6b0
add esp, 0xc
lea edx, [esp + 0x1c]
mov ecx, esi
push 0xff
push 0x67fcd0
push edx
push str.Header1Right
call fcn.00497850
mov ecx, dword [edi + 0x20]
lea eax, [esp + 0x1c]
push 0x7f
push eax
push ecx
call fcn.0047f6b0
add esp, 0xc
lea edx, [esp + 0x1c]
mov ecx, esi
push 0xff
push 0x67fcd0
push edx
push str.Header2Left
call fcn.00497850
mov ecx, dword [edi + 4]
lea eax, [esp + 0x1c]
push 0x7f
push eax
push ecx
call fcn.0047f6b0
add esp, 0xc
lea edx, [esp + 0x1c]
mov ecx, esi
push 0xff
push 0x67fcd0
push edx
push str.Header2Center
call fcn.00497850
mov ecx, dword [edi + 0x14]
lea eax, [esp + 0x1c]
push 0x7f
push eax
push ecx
call fcn.0047f6b0
add esp, 0xc
lea edx, [esp + 0x1c]
mov ecx, esi
push 0xff
push 0x67fcd0
push edx
push str.Header2Right
call fcn.00497850
lea eax, [esp + 0x1c]
push 0x7f
push eax
mov ecx, dword [edi + 0x24]
push ecx
call fcn.0047f6b0
add esp, 0xc
lea edx, [esp + 0x1c]
mov ecx, esi
push 0xff
push 0x67fcd0
push edx
push str.Footer1Left
call fcn.00497850
mov ecx, dword [edi + 8]
lea eax, [esp + 0x1c]
push 0x7f
push eax
push ecx
call fcn.0047f6b0
add esp, 0xc
lea edx, [esp + 0x1c]
mov ecx, esi
push 0xff
push 0x67fcd0
push edx
push str.Footer1Center
call fcn.00497850
mov ecx, dword [edi + 0x18]
lea eax, [esp + 0x1c]
push 0x7f
push eax
push ecx
call fcn.0047f6b0
add esp, 0xc
lea edx, [esp + 0x1c]
mov ecx, esi
push 0xff
push 0x67fcd0
push edx
push str.Footer1Right
call fcn.00497850
mov ecx, dword [edi + 0x28]
lea eax, [esp + 0x1c]
push 0x7f
push eax
push ecx
call fcn.0047f6b0
add esp, 0xc
lea edx, [esp + 0x1c]
mov ecx, esi
push 0xff
push 0x67fcd0
push edx
push str.Footer2Left
call fcn.00497850
mov ecx, dword [edi + 0xc]
lea eax, [esp + 0x1c]
push 0x7f
push eax
push ecx
call fcn.0047f6b0
add esp, 0xc
lea edx, [esp + 0x1c]
mov ecx, esi
push 0xff
push 0x67fcd0
push edx
push str.Footer2Center
call fcn.00497850
mov ecx, dword [edi + 0x1c]
lea eax, [esp + 0x1c]
push 0x7f
push eax
push ecx
call fcn.0047f6b0
add esp, 0xc
lea edx, [esp + 0x1c]
mov ecx, esi
push 0xff
push 0x67fcd0
push edx
push str.Footer2Right
call fcn.00497850
mov ecx, dword [edi + 0x2c]
lea eax, [esp + 0x1c]
push 0x7f
push eax
push ecx
call fcn.0047f6b0
mov edx, dword [edi]
add esp, 0xc
cmp byte [edx], 0
jne 0x46b917
mov eax, dword [edi + 0x10]
cmp byte [eax], 0
jne 0x46b917
mov ecx, dword [edi + 0x20]
cmp byte [ecx], 0
jne 0x46b917
mov edx, dword [edi + 4]
cmp byte [edx], 0
jne 0x46b917
mov eax, dword [edi + 0x14]
cmp byte [eax], 0
jne 0x46b917
mov ecx, dword [edi + 0x24]
cmp byte [ecx], 0
jne 0x46b917
mov edx, dword [edi + 8]
cmp byte [edx], 0
jne 0x46b917
mov eax, dword [edi + 0x18]
cmp byte [eax], 0
jne 0x46b917
mov ecx, dword [edi + 0x28]
cmp byte [ecx], 0
jne 0x46b917
mov edx, dword [edi + 0xc]
cmp byte [edx], 0
jne 0x46b917
mov eax, dword [edi + 0x1c]
cmp byte [eax], 0
jne 0x46b917
mov ecx, dword [edi + 0x2c]
cmp byte [ecx], 0
je 0x46b924
push edi
push str.Version_2.1_Profile
mov ecx, esi
call fcn.0046bd30
mov al, byte [esp + 0x17]
test al, al
jne 0x46b9f5
push 0x30
call fcn.0059dece
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
mov byte [esp + 0x4424], 3
je 0x46b955
mov ecx, eax
call fcn.00498430
mov edi, eax
jmp 0x46b957
xor edi, edi
mov edx, dword [edi]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x67f98c
push edx
mov byte [esp + 0x442c], 0
call ebx
mov eax, dword [edi + 0x10]
push str._PAGEHDR_1__
push eax
call ebx
mov ecx, dword [edi + 0x20]
push 0x67f98c
push ecx
call ebx
mov edx, dword [edi + 4]
push 0x67f98c
push edx
call ebx
mov eax, dword [edi + 0x14]
push str._PAGEHDR_2__
push eax
call ebx
mov ecx, dword [edi + 0x24]
push 0x67f98c
push ecx
call ebx
mov edx, dword [edi + 8]
push 0x67f98c
push edx
call ebx
mov eax, dword [edi + 0x18]
push str._PAGEFTR_1__
push eax
call ebx
mov ecx, dword [edi + 0x28]
push 0x67f98c
push ecx
call ebx
mov edx, dword [edi + 0xc]
push 0x67f98c
push edx
call ebx
mov eax, dword [edi + 0x1c]
push str._PAGEFTR_2__
push eax
call ebx
mov ecx, dword [edi + 0x2c]
push 0x67f98c
push ecx
call ebx
push edi
push str.Original_Header_Footer
mov ecx, esi
call fcn.0046bd30
lea ecx, [esp + 0x10]
mov dword [esp + 0x4424], 0xffffffff
call fcn.0059d7fd
mov ecx, dword [esp + 0x441c]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x4418
ret