Function at 0x405080
Capabilities:
Read .ini file

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push 0x14
push 0
call edi
push 0x190
push 0x40
mov dword [0x406710], eax
call edi
push 0xffff
push 0x40
mov dword [0x4066c8], eax
call edi
mov ecx, dword [0x4066a4]
mov edx, dword [0x4011a8]
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
push ecx
push 0xffff
push eax
push edx
mov dword [0x40685c], eax
call ebp
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
test eax, eax
jbe 0x405121
xor esi, esi
mov eax, dword [0x406710]
push 0x401ab4
push esi
push 0x401aac
push eax
call ebx
mov ecx, dword [0x406710]
mov edx, dword [0x40685c]
push 0xffff
push ecx
push edx
call fcn.00404d60
add esp, 0x1c
mov dword [0x406638], eax
test eax, eax
je 0x405121
mov ecx, dword [0x4066c8]
inc esi
cmp esi, 0x63
mov dword [ecx + esi*4 - 4], eax
jl 0x4050da
push 0x190
push 0x40
call edi
push 0xffff
push 0x40
mov dword [0x40686c], eax
call edi
mov edx, dword [0x4066a4]
mov dword [0x4066fc], eax
push edx
push 0xffff
push eax
mov eax, dword [0x4011ac]
push eax
call ebp
test eax, eax
je 0x40519f
xor esi, esi
mov ecx, dword [0x406710]
push 0x401ab4
push esi
push 0x401aac
push ecx
call ebx
mov edx, dword [0x406710]
mov eax, dword [0x4066fc]
push 0xffff
push edx
push eax
call fcn.00404d60
add esp, 0x1c
mov dword [0x406638], eax
test eax, eax
je 0x40519f
mov ecx, dword [0x40686c]
inc esi
cmp esi, 0x63
mov dword [ecx + esi*4 - 4], eax
jl 0x405158
mov edx, dword [0x4066a4]
mov eax, dword [0x40119c]
mov ecx, dword [0x401198]
push edx
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov bl, al
test bl, bl
mov byte [esp + 0x10], bl
je 0x40522a
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x18]
and esi, 0xff
push 0
mov edx, esi
and edx, 1
push edx
push 0xf1
push 0x3f5
push edi
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push eax
call ebp
not bl
and ebx, 1
push 0
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
push 0xf1
push 0x3f6
push edi
call ebx
push eax
call ebp
shr esi, 1
and esi, 2
push 0
push esi
push 0xf1
push 0x3f7
push edi
call ebx
jmp 0x405273
mov edi, dword [esp + 0x18]
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push 1
push 0xf1
push 0x3f5
push edi
call esi
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push eax
call ebp
push 0
push 0
push 0xf1
push 0x3f6
push edi
call esi
push eax
call ebp
push 0
push 0
push 0xf1
push 0x3f7
push edi
call esi
push eax
call ebp
mov eax, dword [0x4066a4]
mov ecx, dword [0x406770]
mov edx, dword [0x4011a0]
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push eax
mov eax, dword [0x401198]
push 0x104
push ecx
push 0
push edx
push eax
call ebx
test eax, eax
je 0x4052ac
mov ecx, dword [0x406770]
push ecx
jmp 0x4052b3
mov edx, dword [0x40684c]
push edx
mov esi, dword [sym.imp.USER32.dll_SetDlgItemTextA]
push 0x403
push edi
call esi
mov eax, dword [0x4066a4]
mov ecx, dword [0x406720]
mov edx, dword [0x4011a4]
push eax
mov eax, dword [0x401198]
push 0x104
push ecx
push 0
push edx
push eax
call ebx
test eax, eax
je 0x4052f1
mov ecx, dword [0x406720]
push ecx
jmp 0x4052f8
mov edx, dword [0x4067d0]
push edx
push 0x402
push edi
call esi
push 0
push 0x3f7
push 0x111
push edi
call ebp
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret