Function at 0x4099d0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xe4
mov eax, dword [0x47c5d0]
push ebx
push esi
mov dword [esp + 0xe8], eax
mov eax, dword [ebp + 0x10]
push edi
mov edi, ecx
mov dword [esp + 0x18], edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4099f7
mov ebx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
sub eax, edx
mov esi, eax
mov eax, dword [edi]
push eax
mov eax, dword [edi + 4]
push 0x1000
push eax
push 0
push ebx
push ecx
mov dword [esp + 0x28], esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
mov dword [esp + 0x1c], eax
jne 0x409a76
mov ecx, dword [ebp + 0x10]
mov edx, dword [edi + 4]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x409a30
mov edx, dword [edi + 4]
mov ecx, dword [ebp + 8]
mov byte [esi + edx], 0x7c
mov eax, dword [edi + 4]
mov byte [eax + esi + 1], 0
mov eax, dword [edi + 4]
mov edi, dword [edi]
push edi
push eax
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
neg eax
sbb eax, eax
neg eax
mov ecx, dword [esp + 0xec]
call fcn.0043a7a4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea edx, [eax + esi + 2]
cmp edx, 0x1000
ja 0x409a96
mov eax, dword [ebp + 0x10]
mov ecx, dword [edi + 4]
push eax
push ecx
call fcn.0043bbd0
add esp, 8
test eax, eax
je 0x409aad
xor al, al
mov ecx, dword [esp + 0xec]
call fcn.0043a7a4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ebx, dword [edi + 4]
push 0x7c
push ebx
call fcn.0043bb10
add esp, 8
test eax, eax
mov dword [esp + 0x14], eax
jne 0x409b13
mov eax, dword [esp + 0x10]
mov ecx, esi
mov esi, dword [ebp + 0x10]
mov edx, ecx
shr ecx, 2
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [ebp + 0xc]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x18]
mov byte [ebx + eax], 0x7c
mov byte [ebx + eax + 1], 0
mov eax, dword [ecx + 4]
push eax
mov eax, dword [ebp + 8]
push edx
push eax
call fcn.004098b0
mov ecx, dword [esp + 0xec]
call fcn.0043a7a4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [esp + 0x14]
sub eax, ebx
mov ecx, eax
mov edx, ecx
shr ecx, 2
mov esi, ebx
lea edi, [esp + 0x20]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov byte [esp + eax + 0x20], 0
push 0x47b284
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.SHLWAPI.dll_StrTrimA]
mov esi, dword [ebp + 0x10]
lea edi, [esp + 0x20]
mov cl, byte [edi]
mov dl, byte [esi]
mov al, cl
cmp cl, dl
jne 0x409b6f
test al, al
je 0x409b6b
mov dl, byte [edi + 1]
mov cl, byte [esi + 1]
mov al, dl
cmp dl, cl
jne 0x409b6f
add edi, 2
add esi, 2
test al, al
jne 0x409b47
xor eax, eax
jmp 0x409b74
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jg 0x409b9d
mov ebx, dword [esp + 0x14]
inc ebx
push 0x7c
push ebx
call fcn.0043bb10
add esp, 8
test eax, eax
mov dword [esp + 0x14], eax
jne 0x409b0f
mov esi, dword [esp + 0x10]
jmp 0x409ac3
mov edx, dword [esp + 0x18]
mov eax, dword [edx + 4]
add eax, dword [esp + 0x1c]
cmp eax, ebx
jb 0x409bbf
lea esp, [esp]
mov cl, byte [eax]
mov esi, dword [esp + 0x10]
mov byte [esi + eax + 1], cl
dec eax
cmp eax, ebx
jae 0x409bb0
mov ecx, dword [esp + 0x10]
mov esi, dword [ebp + 0x10]
mov eax, ecx
shr ecx, 2
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, eax
mov byte [ebx + ecx], 0x7c
mov ecx, dword [edx]
mov eax, dword [edx + 4]
mov edx, dword [ebp + 0xc]
push ecx
push eax
mov eax, dword [ebp + 8]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov ecx, dword [esp + 0xec]
neg eax
sbb eax, eax
neg eax
call fcn.0043a7a4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc