Function at 0x405070
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x114
mov eax, dword [0x415070]
mov ecx, dword [esp + 0x11c]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LocalAlloc]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
mov dword [esp + 0x118], eax
mov eax, dword [esp + 0x120]
push esi
push edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
mov esi, 0x400
lea ecx, [ecx]
push esi
push 0x40
call ebx
mov edx, dword [esp + 0x14]
push edx
push esi
mov edi, eax
push edi
push str.Options
call ebp
lea ecx, [esi - 2]
cmp eax, ecx
jb 0x4050f6
push edi
add esi, esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp esi, 0x8000
jle 0x4050b0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x110]
call fcn.0040851d
add esp, 0x114
ret
test edi, edi
jne 0x405113
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x110]
call fcn.0040851d
add esp, 0x114
ret
mov esi, edi
mov al, byte [esi]
test al, al
je 0x405141
cmp al, 0x3b
je 0x405128
push esi
call fcn.00404250
add esp, 4
mov eax, esi
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405130
sub eax, edx
lea esi, [esi + eax + 1]
test esi, esi
jne 0x405115
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [0x417094]
test eax, eax
mov edi, 1
jne 0x4052c4
mov eax, dword [0x41709c]
test eax, eax
jne 0x4052c4
mov eax, dword [0x417098]
test eax, eax
jne 0x4052c4
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x415c28
push 0x104
lea eax, [esp + 0x24]
push eax
push 0x411dd6
xor edx, edx
push str.Display
mov word [esp + 0x24], dx
push str.Display
mov byte [esp + 0x2a], dl
call esi
test eax, eax
je 0x405250
lea ecx, [esp + 0x1c]
push 0x14
push ecx
call fcn.00402f10
add esp, 8
test eax, eax
jne 0x405245
lea edx, [esp + 0x1c]
push 0x15
push edx
call fcn.00402f10
add esp, 8
test eax, eax
jne 0x405245
lea eax, [esp + 0x1c]
push 0x16
push eax
call fcn.00402f10
add esp, 8
test eax, eax
je 0x4051f7
mov byte [esp + 0x10], 0x62
mov dword [0x41709c], edi
jmp 0x405250
lea ecx, [esp + 0x1c]
push 0x17
push ecx
call fcn.00402f10
add esp, 8
test eax, eax
je 0x405217
mov byte [esp + 0x10], 0x72
mov dword [0x41709c], edi
jmp 0x405250
lea edx, [esp + 0x1c]
push 0x18
push edx
call fcn.00402f10
add esp, 8
test eax, eax
je 0x405237
mov byte [esp + 0x10], 0x66
mov dword [0x417098], edi
jmp 0x405250
push 0x1a
push 0
call fcn.00402d30
add esp, 8
jmp 0x405250
mov byte [esp + 0x10], 0x6e
mov dword [0x417094], edi
push 0x415c28
push 0x104
lea eax, [esp + 0x24]
push eax
push 0x411dd6
push str.CompletionNotice
push str.Display
call esi
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
je 0x405296
mov al, byte [esp + 0x1c]
cmp al, 0x79
je 0x40528a
cmp al, 0x59
je 0x40528a
cmp al, 0x31
jne 0x405296
push 0x412798
lea ecx, [esp + 0x14]
push ecx
call esi
mov al, byte [esp + 0x10]
test al, al
je 0x4052c4
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x1c], 0x712f20
call esi
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x14]
push ecx
push edx
call fcn.00403350
add esp, 8
mov ecx, dword [esp + 0x120]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
call fcn.0040851d
add esp, 0x114
ret