Function at 0x414640
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x5a0
mov al, byte [0x486c05]
push ebx
push ebp
mov ebx, ecx
push esi
push edi
test al, 1
mov dword [esp + 0x1c], ebx
jne 0x41467b
mov dl, al
mov ecx, 0x486c20
or dl, 1
mov byte [0x486c05], dl
call fcn.00415da0
push 0x413f20
call fcn.0042ad4d
add esp, 4
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xad]
mov byte [esp + 0xac], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x1b1]
mov byte [esp + 0x1b0], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov ecx, 0x1f
mov dword [esp + 0x21], eax
lea edi, [esp + 0x2d]
mov dword [esp + 0x25], eax
mov esi, dword [esp + 0x5b4]
mov byte [esp + 0x29], al
mov byte [esp + 0x2c], al
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor ebp, ebp
push esi
mov ecx, ebx
mov dword [esp + 0x14], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x18], 0x400
mov byte [esp + 0x24], 0
stosb byte es:[edi], al
call fcn.00414cb0
cmp eax, 6
jne 0x41470b
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x5a0
ret 8
lea ecx, [esp + 0x18]
push ecx
push esi
mov ecx, ebx
call fcn.00414b00
mov esi, eax
cmp esi, ebp
jg 0x414730
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x5a0
ret 8
mov eax, dword [esp + 0x18]
cmp byte [eax], 0x30
jne 0x414931
cmp byte [eax + 1], 0x30
jne 0x414931
sub esi, 2
lea ebx, [eax + 2]
lea eax, [esi + esi]
mov dword [esp + 0x10], eax
inc eax
push eax
call fcn.00447ad7
mov edx, dword [esp + 0x14]
mov ebp, eax
xor eax, eax
mov edi, ebp
lea ecx, [edx + 1]
add esp, 4
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0x10]
mov ecx, 0x486c20
push eax
push ebp
push esi
push ebx
call fcn.00416450
mov ebx, eax
test ebx, ebx
jne 0x4148fd
mov ebx, dword [esp + 0x5b8]
test ebx, ebx
je 0x4148ef
mov edi, dword [esp + 0x5b4]
push 0x5c
push edi
call fcn.0042b090
mov esi, eax
push 0x2e
push edi
inc esi
call fcn.0042b090
add esp, 0x10
inc eax
test esi, esi
je 0x41483e
test eax, eax
je 0x41483e
mov ecx, eax
lea edi, [esp + 0xac]
sub ecx, esi
dec ecx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0xac]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0xac]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x47d280
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
jmp 0x41485d
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0xac]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xac]
push ecx
call fcn.0043d504
mov edx, dword [esp + 0x18]
add esp, 4
lea eax, [esp + 0x1b0]
lea ecx, [esp + 0xac]
push ebx
push edx
push eax
push 0x483d7c
push ecx
push 0x47d1e8
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jbe 0x41492a
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x14]
lea eax, [esp + 0x20]
push edx
push eax
push ecx
push ebp
push 1
mov ecx, 0x486c20
call fcn.004167e0
mov edx, dword [esp + 0x14]
mov ebx, eax
lea eax, [esp + 0x20]
push edx
lea ecx, [esp + 0x30]
push eax
push ecx
mov ecx, 0x486c20
call fcn.004166e0
mov edx, dword [esp + 0x14]
lea edi, [esp + 0x2c]
lea esi, [esp + 0x1b0]
xor eax, eax
lea ecx, [edx + edx]
repe cmpsb byte [esi], byte es:[edi]
jne 0x4148fd
mov ebx, dword [esp + 0x1c]
push ebp
mov ecx, ebx
call fcn.00414b90
mov ebx, eax
mov eax, dword [esp + 0x18]
test eax, eax
je 0x41490e
push eax
call fcn.00447b00
add esp, 4
test ebp, ebp
je 0x41491b
push ebp
call fcn.00447b00
add esp, 4
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x5a0
ret 8
mov ebx, 1
jmp 0x4148fd
mov dword [esp + 0x10], esi
inc esi
push esi
call fcn.00447ad7
mov ecx, dword [esp + 0x14]
add esp, 4
inc ecx
mov ebp, eax
mov edx, ecx
xor eax, eax
mov edi, ebp
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0x18]
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x4148f3