Function at 0x407050
Capabilities:
Read .ini file

Disassembly:
mov eax, dword [0x416618]
sub esp, 0x24
test eax, eax
push ebx
push ebp
push esi
push edi
jne 0x407084
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov edx, dword [0x415e80]
push eax
push ecx
push 0x578
push edx
call dword [sym.imp.USER32.dll_LoadStringA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
push 0x412e8c
push 0
push 0x412e98
push 0x412ea0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov esi, dword [sym.imp.USER32.dll_SendDlgItemMessageA]
push 0
mov ebx, eax
mov eax, dword [0x4165fc]
push 0
push 0x147
push 0x270f
push eax
mov dword [esp + 0x24], ebx
call esi
mov edi, eax
test edi, edi
jl 0x40712f
mov ecx, dword [esp + 0x38]
mov edx, dword [0x4165fc]
push ecx
push edi
push 0x148
push 0x270f
push edx
call esi
mov eax, dword [0x4165fc]
push 0
push edi
push 0x150
push 0x270f
push eax
call esi
cmp eax, ebx
je 0x4072c2
push eax
lea ecx, [esp + 0x18]
push 0x412ea8
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [esp + 0x14]
push 0x412eac
push edx
push 0x412eb8
push 0x412ec0
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
mov eax, dword [esp + 0x3c]
mov ebp, dword [esp + 0x38]
mov ecx, dword [0x4165fc]
push eax
push ebp
push 0x270f
push ecx
call dword [sym.imp.USER32.dll_GetDlgItemTextA]
test eax, eax
je 0x40724a
mov edx, dword [0x4165fc]
push 0
push 0
push 0x146
push 0x270f
push edx
mov dword [esp + 0x4c], 0xffffffff
call esi
mov edi, eax
xor ebx, ebx
test edi, edi
jle 0x4071a8
mov ecx, dword [0x4165fc]
lea eax, [esp + 0x14]
push eax
push ebx
push 0x148
push 0x270f
push ecx
call esi
lea edx, [esp + 0x14]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x4071ac
inc ebx
cmp ebx, edi
jl 0x40717a
mov ebx, dword [esp + 0x38]
cmp ebx, 0xffffffff
jne 0x40722f
mov ecx, dword [0x4165fc]
lea eax, [edi - 1]
push 0
push eax
push 0x150
push 0x270f
push ecx
call esi
mov ebx, eax
cmp ebx, 0xa
jge 0x4071d8
mov ebx, 0xa
jmp 0x4071d9
inc ebx
push ebx
lea edx, [esp + 0x18]
push 0x412ec8
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [esp + 0x14]
push 0x412ecc
push ebp
push eax
push 0x412ed8
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov ecx, dword [0x4165fc]
push ebp
push edi
push 0x143
push 0x270f
push ecx
call esi
mov edx, dword [0x4165fc]
push ebx
push edi
push 0x151
push 0x270f
push edx
call esi
jmp 0x40724e
mov eax, dword [0x4165fc]
push 0
push ebx
push 0x150
push 0x270f
push eax
mov edi, ebx
call esi
mov ebx, eax
jmp 0x40724e
xor ebx, ebx
xor edi, edi
mov ecx, dword [0x4165fc]
push 0
push edi
push 0x14e
push 0x270f
push ecx
call esi
mov edx, dword [0x4165fc]
push 0
push edi
push 0x15c
push 0x270f
push edx
call esi
mov eax, dword [0x4165fc]
push ebp
push edi
push 0x148
push 0x270f
push eax
call esi
cmp ebx, dword [esp + 0x10]
je 0x4072c2
push ebx
lea ecx, [esp + 0x18]
push 0x412ee4
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [esp + 0x14]
push 0x412ee8
push edx
push 0x412ef4
push 0x412efc
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret