Function at 0x476e04
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 5
add esp, 0xfffff004
push eax
dec eax
jne 0x476e0d
mov eax, dword [ebp - 4]
add esp, 0xfffff8e8
push ebx
push esi
push edi
mov edi, str.DLL
cmp dword [ebp + 8], 0
je 0x47707c
mov eax, dword [ebp + 8]
cmp byte [eax], 0
je 0x47707c
xor edx, edx
mov esi, edx
mov ebx, edx
cmp ebx, 5
jge 0x476ef5
push ebx
lea eax, [edi + 0x6da]
push eax
lea edx, [ebp - 0x571c]
push edx
call fcn.004a6c2c
mov ecx, esi
add esp, 0xc
shl ecx, 6
lea eax, [ebp - 0x518]
add ecx, esi
push 0x4d53a4
shl ecx, 2
push 0x104
add ecx, eax
lea edx, [edi + 0x14]
push ecx
lea ecx, [ebp - 0x571c]
push edx
push ecx
lea eax, [edi + 0x6e9]
push eax
call sub.KERNEL32.DLL_GetPrivateProfileStringA
mov edx, esi
lea ecx, [ebp - 0x5518]
shl edx, 0xc
push 0x4d53a4
add edx, ecx
push 0x1000
push edx
lea eax, [edi + 0x14]
push eax
lea edx, [ebp - 0x571c]
push edx
lea ecx, [edi + 0x3ba]
push ecx
call sub.KERNEL32.DLL_GetPrivateProfileStringA
mov edx, esi
mov eax, dword [ebp + 8]
shl edx, 6
lea ecx, [ebp - 0x518]
add edx, esi
push eax
shl edx, 2
add edx, ecx
push edx
call fcn.004a38bc
add esp, 8
test eax, eax
je 0x476eeb
inc esi
inc ebx
cmp ebx, 5
jl 0x476e4d
xor ebx, ebx
lea eax, [ebp - 0x5518]
mov dword [ebp - 4], eax
cmp esi, ebx
jle 0x476fd4
lea edx, [ebx + 1]
push edx
lea ecx, [edi + 0x6da]
push ecx
lea eax, [ebp - 0x571c]
push eax
call fcn.004a6c2c
mov edx, ebx
add esp, 0xc
shl edx, 6
lea ecx, [ebp - 0x518]
add edx, ebx
push 0x4d53a4
shl edx, 2
lea eax, [ebp - 0x571c]
add edx, ecx
push edx
lea edx, [edi + 0x6e9]
push eax
push edx
call sub.KERNEL32.DLL_WritePrivateProfileStringA
mov ecx, dword [ebp - 4]
xor eax, eax
mov al, byte [ecx]
cmp eax, 0x22
jne 0x476f9e
mov edx, ebx
shl edx, 0xc
lea ecx, [ebp - 0x5518]
add edx, ecx
push edx
lea eax, [edi + 0x3c4]
push eax
lea edx, [ebp - 0x561c]
push edx
call fcn.004a6c2c
add esp, 0xc
lea ecx, [ebp - 0x561c]
lea eax, [ebp - 0x571c]
lea edx, [edi + 0x3ba]
push 0x4d53a4
push ecx
push eax
push edx
call sub.KERNEL32.DLL_WritePrivateProfileStringA
jmp 0x476fc4
push 0x4d53a4
mov ecx, ebx
shl ecx, 0xc
lea eax, [ebp - 0x5518]
add ecx, eax
push ecx
lea edx, [ebp - 0x571c]
push edx
lea ecx, [edi + 0x3ba]
push ecx
call sub.KERNEL32.DLL_WritePrivateProfileStringA
inc ebx
add dword [ebp - 4], 0x1000
cmp esi, ebx
jg 0x476f08
push 0
lea eax, [edi + 0x6da]
push eax
lea edx, [ebp - 0x571c]
push edx
call fcn.004a6c2c
add esp, 0xc
lea eax, [ebp - 0x571c]
lea edx, [edi + 0x6e9]
push 0x4d53a4
mov ecx, dword [ebp + 8]
push ecx
push eax
push edx
call sub.KERNEL32.DLL_WritePrivateProfileStringA
cmp dword [ebp + 0xc], 0
je 0x477055
mov ecx, dword [ebp + 0xc]
xor eax, eax
mov al, byte [ecx]
cmp eax, 0x22
jne 0x477055
mov edx, dword [ebp + 0xc]
push edx
lea ecx, [edi + 0x3c4]
push ecx
lea eax, [ebp - 0x561c]
push eax
call fcn.004a6c2c
add esp, 0xc
lea edx, [ebp - 0x561c]
lea ecx, [ebp - 0x571c]
lea eax, [edi + 0x3ba]
push 0x4d53a4
push edx
push ecx
push eax
call sub.KERNEL32.DLL_WritePrivateProfileStringA
jmp 0x47707c
push 0x4d53a4
cmp dword [ebp + 0xc], 0
jne 0x477065
lea edx, [edi + 0x14]
jmp 0x477068
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x571c]
push eax
lea ecx, [edi + 0x3ba]
push ecx
call sub.KERNEL32.DLL_WritePrivateProfileStringA
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret