Function at 0x4a5e09
Capabilities:
Print debug messages
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fa286
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x8d4
mov dword [ebp - 0x8d8], ecx
mov dword [ebp - 0x38], 0
lea ecx, [ebp - 0x84c]
call fcn.00401900
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x848]
call fcn.00401900
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x30]
call fcn.00401900
mov byte [ebp - 4], 2
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x40], 0
jmp 0x4a5e81
mov eax, dword [ebp - 0x40]
add eax, 1
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0x1e
jge 0x4a5efe
mov ecx, dword [ebp - 0x40]
imul ecx, ecx, 0x24
cmp dword [ecx + 0x53a2a8], 0
je 0x4a5ef9
push 1
mov edx, dword [ebp - 0x40]
imul edx, edx, 0x24
add edx, 0x53a2ac
push edx
mov eax, dword [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0x8d8]
call fcn.004abb8f
xor ecx, ecx
mov cx, word [0x539af6]
test ecx, ecx
je 0x4a5ef0
mov edx, dword [ebp - 0x40]
imul edx, edx, 0x24
add edx, 0x53a2ac
push edx
push str._RCP_InsertIcon__s
lea eax, [ebp - 0x8cc]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [ebp - 0x8cc]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edx, dword [ebp - 0x34]
add edx, 1
mov dword [ebp - 0x34], edx
jmp 0x4a5e78
cmp dword [ebp - 0x34], 0
jne 0x4a62ad
mov eax, dword [ebp - 0x8d8]
add eax, 0x21c
push eax
push 0x800
lea ecx, [ebp - 0x840]
push ecx
push 0x531b28
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
lea edx, [ebp - 0x840]
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x38]
movsx ecx, byte [eax]
test ecx, ecx
je 0x4a5f5f
mov edx, dword [ebp - 0x3c]
add edx, 1
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x38]
push eax
call fcn.004cf430
add esp, 4
mov ecx, dword [ebp - 0x38]
lea edx, [ecx + eax + 1]
mov dword [ebp - 0x38], edx
jmp 0x4a5f34
cmp dword [0x539998], 0
je 0x4a60dd
cmp dword [ebp - 0x3c], 0
je 0x4a6026
cmp dword [ebp - 0x3c], 1
jle 0x4a6026
mov dword [ebp - 0x844], 0
jmp 0x4a5f9b
mov eax, dword [ebp - 0x844]
add eax, 1
mov dword [ebp - 0x844], eax
mov eax, dword [ebp - 0x3c]
cdq
sub eax, edx
sar eax, 1
cmp dword [ebp - 0x844], eax
jge 0x4a6021
mov ecx, dword [ebp - 0x844]
add ecx, 1
push ecx
push 0x531b30
lea edx, [ebp - 0x30]
push edx
call fcn.004e1baf
add esp, 0xc
mov eax, dword [ebp - 0x8d8]
add eax, 0x21c
push eax
push 0x1e
lea ecx, [ebp - 0x2c]
push ecx
push 0x531b34
lea ecx, [ebp - 0x30]
call fcn.00401920
push eax
push 0x531b3c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x531b44
lea edx, [ebp - 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x4a601c
push 1
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x844]
push ecx
mov ecx, dword [ebp - 0x8d8]
call fcn.004abb8f
jmp 0x4a5f8c
jmp 0x4a60d8
mov edx, dword [ebp - 0x8d8]
add edx, 0x21c
push ecx
mov ecx, esp
mov dword [ebp - 0x8d0], esp
push edx
call fcn.004e819a
mov dword [ebp - 0x8dc], eax
mov ecx, dword [ebp - 0x8d8]
call fcn.004a99c2
push 1
push 0x531b4c
lea eax, [ebp - 0x30]
push eax
call fcn.004e1baf
add esp, 0xc
mov ecx, dword [ebp - 0x8d8]
add ecx, 0x21c
push ecx
push 0x1e
lea edx, [ebp - 0x2c]
push edx
push 0x531b50
lea ecx, [ebp - 0x30]
call fcn.00401920
push eax
push 0x531b58
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x531b60
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x4a60d8
mov dword [0x53a2a8], 0
lea ecx, [ebp - 0x2c]
push ecx
push 0x53a2ac
call fcn.004cf9b0
add esp, 8
push 1
push 0x53a2ac
mov edx, dword [0x53a2a8]
push edx
mov ecx, dword [ebp - 0x8d8]
call fcn.004abb8f
jmp 0x4a62ad
cmp dword [ebp - 0x3c], 0
je 0x4a619d
mov eax, dword [ebp - 0x3c]
cmp eax, dword [0x524028]
jg 0x4a619d
mov dword [ebp - 0x844], 0
jmp 0x4a6111
mov ecx, dword [ebp - 0x844]
add ecx, 1
mov dword [ebp - 0x844], ecx
mov eax, dword [ebp - 0x3c]
cdq
sub eax, edx
sar eax, 1
cmp dword [ebp - 0x844], eax
jge 0x4a6198
mov edx, dword [ebp - 0x844]
add edx, 1
push edx
push 0x531b68
lea eax, [ebp - 0x30]
push eax
call fcn.004e1baf
add esp, 0xc
mov ecx, dword [ebp - 0x8d8]
add ecx, 0x21c
push ecx
push 0x1e
lea edx, [ebp - 0x2c]
push edx
push 0x531b6c
lea ecx, [ebp - 0x30]
call fcn.00401920
push eax
push 0x531b74
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x531b7c
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x4a6193
push 1
lea ecx, [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x844]
push edx
mov ecx, dword [ebp - 0x8d8]
call fcn.004abb8f
jmp 0x4a6102
jmp 0x4a62ad
mov eax, dword [ebp - 0x8d8]
add eax, 0x21c
push ecx
mov ecx, esp
mov dword [ebp - 0x8d4], esp
push eax
call fcn.004e819a
mov dword [ebp - 0x8e0], eax
mov ecx, dword [ebp - 0x8d8]
call fcn.004a99c2
mov dword [ebp - 0x844], 0
jmp 0x4a61e3
mov ecx, dword [ebp - 0x844]
add ecx, 1
mov dword [ebp - 0x844], ecx
cmp dword [ebp - 0x844], 5
jge 0x4a62ad
mov edx, dword [ebp - 0x844]
add edx, 1
push edx
push 0x531b84
lea eax, [ebp - 0x30]
push eax
call fcn.004e1baf
add esp, 0xc
mov ecx, dword [ebp - 0x8d8]
add ecx, 0x21c
push ecx
push 0x1e
lea edx, [ebp - 0x2c]
push edx
push 0x531b88
lea ecx, [ebp - 0x30]
call fcn.00401920
push eax
push 0x531b90
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x531b98
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x4a62a8
mov ecx, dword [ebp - 0x844]
imul ecx, ecx, 0x24
mov edx, dword [ebp - 0x844]
mov dword [ecx + 0x53a2a8], edx
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x844]
imul ecx, ecx, 0x24
add ecx, 0x53a2ac
push ecx
call fcn.004cf9b0
add esp, 8
push 1
mov edx, dword [ebp - 0x844]
imul edx, edx, 0x24
add edx, 0x53a2ac
push edx
mov eax, dword [ebp - 0x844]
imul eax, eax, 0x24
mov ecx, dword [eax + 0x53a2a8]
push ecx
mov ecx, dword [ebp - 0x8d8]
call fcn.004abb8f
jmp 0x4a61d4
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x30]
call fcn.004e812c
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x848]
call fcn.004e812c
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x84c]
call fcn.004e812c
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret