Function at 0x40b470
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x421bf0
call fcn.004175d4
sub esp, 0x150
push ebx
push esi
push edi
mov dword [ebp - 0x28], ecx
call fcn.00401046
mov esi, eax
xor ebx, ebx
cmp byte [esi + 0x2d0d], bl
lea eax, [esi + 0x2d0d]
mov dword [ebp - 0x10], eax
je 0x40b737
cmp dword [0x42ea60], ebx
jne 0x40b4fb
push 0x1f
xor eax, eax
pop ecx
lea edi, [ebp - 0x15b]
mov byte [ebp - 0x15c], bl
push 0x42db88
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x15c]
push 0x80
push eax
push 0x42bab0
push str.UseDotNetUI
push dword [0x4235b8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [ebp - 0x15c], 0x59
je 0x40b506
cmp byte [ebp - 0x15c], 0x79
je 0x40b506
mov eax, dword [ebp + 8]
mov dword [eax], 1
jmp 0x40b50b
mov eax, dword [ebp + 8]
mov dword [eax], ebx
cmp byte [esi + 0x2e11], bl
je 0x40b605
push dword [0x42e1a4]
mov ecx, dword [ebp - 0x28]
call fcn.0040be96
mov ecx, eax
mov eax, dword [ebp + 0xc]
lea edi, [ebp - 0x3b]
mov byte [ebp - 0x3c], bl
mov dword [eax], ecx
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosb byte es:[edi], al
push ecx
lea eax, [ebp - 0x3c]
push 0x427ae0
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp + 0xb]
lea ecx, [ebp - 0x8c]
push 1
pop esi
push esi
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.0040c0e9
lea eax, [ebp - 0x8c]
mov dword [ebp - 4], ebx
push eax
lea eax, [ebp - 0xb4]
push eax
call fcn.0040b76d
pop ecx
pop ecx
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 2
call fcn.00407ccf
cmp dword [ebp - 0xa8], ebx
ja 0x40b5a6
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb4]
call fcn.00407ccf
mov eax, esi
jmp 0x40b739
mov eax, dword [ebp - 0xac]
mov dword [ebp + 0xc], 0x423620
cmp eax, ebx
je 0x40b5ba
mov dword [ebp + 0xc], eax
cmp dword [ebp + 0xc], ebx
je 0x40b5ef
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax + eax + 2]
mov eax, esi
add eax, 3
and al, 0xfc
call fcn.004176d0
mov edi, esp
push ebx
push ebx
push esi
push edi
push 0xffffffffffffffff
push dword [ebp + 0xc]
mov byte [edi], bl
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebx, edi
push ebx
push dword [ebp - 0x10]
call fcn.00412282
pop ecx
pop ecx
xor ecx, ecx
test eax, eax
setl cl
mov esi, ecx
jmp 0x40b590
mov al, byte [ebp + 0xb]
lea ecx, [ebp - 0x24]
mov byte [ebp - 0x24], al
mov al, byte [ebp + 0xb]
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov byte [ebp - 0x23], al
mov byte [ebp - 0x1c], bl
call fcn.0040d2a2
lea eax, [ebp + 0xb]
push 1
push eax
lea ecx, [ebp - 0x64]
push dword [ebp + 0x10]
mov dword [ebp - 4], 3
call fcn.0040c0e9
xor esi, esi
xor edi, edi
cmp dword [ebp - 0x58], ebx
mov byte [ebp - 4], 4
jbe 0x40b6ab
push edi
lea ecx, [ebp - 0x64]
call fcn.0040e1e4
cmp word [eax], 0x2c
mov ecx, dword [ebp - 0x58]
je 0x40b660
lea eax, [ecx - 1]
cmp eax, edi
jne 0x40b6a6
mov eax, edi
sub eax, esi
dec ecx
cmp ecx, edi
jne 0x40b66a
inc eax
push eax
lea eax, [ebp - 0x8c]
push esi
push eax
lea ecx, [ebp - 0x64]
call fcn.0040c16b
push eax
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 5
call fcn.0040c2e0
mov ecx, eax
xor eax, eax
mov byte [ebp - 4], 4
mov dword [ecx], ebx
mov dword [ecx + 4], eax
lea ecx, [ebp - 0x8c]
call fcn.00407ccf
mov ecx, dword [ebp - 0x58]
lea esi, [edi + 1]
inc edi
cmp edi, ecx
jb 0x40b647
push 1
lea eax, [ebp + 0xf]
pop esi
lea ecx, [ebp - 0xdc]
push esi
push eax
push dword [ebp - 0x10]
call fcn.0040c0e9
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 6
push ecx
lea ecx, [ebp - 0x30]
push ecx
push eax
call fcn.0040bc2a
add esp, 0xc
lea ecx, [ebp - 0xdc]
mov byte [ebp - 4], 4
call fcn.00407ccf
cmp dword [ebp - 0x30], esi
jb 0x40b750
mov ecx, dword [ebp - 0x20]
mov eax, dword [ecx]
cmp eax, ecx
mov dword [ebp - 0x14], eax
je 0x40b71f
cmp dword [eax + 0x34], esi
jae 0x40b70f
add eax, 0xc
push str.1033
push eax
call fcn.0040e211
pop ecx
test al, al
pop ecx
je 0x40b750
lea ecx, [ebp - 0x14]
call fcn.0040cc4e
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x20]
jne 0x40b6f6
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 3
call fcn.00407ccf
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.0040c34b
xor eax, eax
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0x168]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 0xc
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 3
call fcn.00407ccf
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.0040c34b
jmp 0x40b59f