Function at 0x14a1ff90
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x14a36198]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x1c]
push ebx
mov ebx, dword [ebp + 0x20]
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x30], eax
xor eax, eax
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x38], eax
test edi, edi
je 0x14a202af
mov esi, dword [sym.imp.KERNEL32.dll_LocalAlloc]
push 0x100
push 0x40
call esi
push 0x80
push 0x40
mov dword [ebp - 0x40], eax
call esi
mov esi, dword [ebp - 0x40]
mov dword [ebp - 0x44], eax
test esi, esi
je 0x14a202ac
test eax, eax
je 0x14a202ac
test ebx, ebx
jne 0x14a1ffff
mov dword [ebp - 0x3c], ebx
jmp 0x14a20033
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x14a20017
mov dword [ebp - 0x3c], 0
jmp 0x14a20033
add eax, eax
mov dword [ebp - 0x2c], eax
call fcn.14a22e40
mov edx, dword [ebp - 0x2c]
mov eax, esp
push 3
push edx
push ebx
push eax
call fcn.14a0106e
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x14a20066
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x14a2004d
xor eax, eax
jmp 0x14a20066
lea ebx, [eax + eax]
mov eax, ebx
call fcn.14a22e40
mov ecx, dword [ebp - 0x28]
mov eax, esp
push 3
push ebx
push ecx
push eax
call fcn.14a0106e
mov ebx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x44]
push ebx
push 0x80
push edx
push eax
call fcn.14a18710
mov ecx, dword [ebp + 0x18]
push 0xa
push 0x1e
lea eax, [ebp - 0x24]
push eax
push ecx
call dword [sym.imp.MSVCR90.dll__ltoa_s]
mov eax, dword [ebp - 0x44]
add esp, 0x20
push ebx
push 0x100
mov ebx, esi
push ebx
push 0x14a26959
lea edx, [ebp - 0x24]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jbe 0x14a20293
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x14a200b7
sub eax, edx
add eax, ebx
cmp dword [edi], 0
mov dword [ebp - 0x2c], eax
je 0x14a2029a
test esi, esi
je 0x14a2029a
cmp esi, dword [ebp - 0x2c]
ja 0x14a2029a
mov eax, dword [edi + 4]
dec eax
cmp eax, 8
ja case.default.0x14a200ec
jmp dword [eax*4 + 0x14a202c4]
mov eax, dword [edi + 0xc]
add eax, dword [ebp - 0x30]
mov ecx, dword [edi + 8]
lea edx, [ebp - 0x50]
push edx
push eax
push esi
mov dword [ebp - 0x50], ecx
call fcn.14a213c0
mov esi, eax
jmp 0x14a2027f
mov ebx, dword [edi + 0xc]
add ebx, dword [ebp - 0x30]
je case.default.0x14a200ec
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x28]
push ecx
push esi
mov dword [ebp - 0x54], 1
call fcn.14a213c0
mov esi, eax
mov eax, dword [ebx]
add esp, 0xc
test eax, eax
je 0x14a2014d
push eax
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
mov dword [ebx], 0
mov eax, dword [ebp - 0x28]
test eax, eax
jle case.default.0x14a200ec
inc eax
push 4
push eax
call dword [sym.imp.MSVCR90.dll_calloc]
add esp, 8
mov dword [ebx], eax
test eax, eax
je case.default.0x14a200ec
lea edx, [ebp - 0x28]
push edx
add eax, 4
push eax
push esi
call fcn.14a213c0
mov ecx, dword [ebp - 0x28]
mov esi, eax
mov eax, dword [ebx]
mov dword [eax], ecx
jmp 0x14a2027f
push 0x2c
push esi
call dword [sym.imp.MSVCR90.dll__mbschr]
mov edi, dword [edi + 0xc]
add edi, dword [ebp - 0x30]
add esp, 8
mov ecx, edi
mov ebx, eax
call fcn.14a01310
test ebx, ebx
je 0x14a201c2
cmp byte [ebx], 0x2c
jne 0x14a201c2
mov edx, dword [ebp - 0x3c]
push edx
push edi
push esi
mov byte [ebx], 0
call fcn.14a1f8c0
jmp 0x14a20279
push 1
push 0x3b
push esi
call fcn.14a20fa0
mov edx, dword [ebp - 0x3c]
mov ebx, dword [ebp - 0x2c]
push edx
push edi
push esi
call fcn.14a1f8c0
jmp 0x14a20279
mov eax, dword [edi + 8]
mov dword [ebp - 0x48], eax
mov eax, dword [edi + 0xc]
add eax, dword [ebp - 0x30]
push 0x2c
push esi
mov dword [ebp - 0x34], eax
call dword [sym.imp.MSVCR90.dll__mbschr]
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x14a2020a
cmp byte [ebx], 0x2c
jne 0x14a2020a
mov byte [ebx], 0
jmp 0x14a2020d
mov ebx, dword [ebp - 0x2c]
mov al, byte [esi]
test al, al
je 0x14a2021f
cmp al, 0x20
jne 0x14a2021f
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x14a20213
mov edx, dword [ebp - 0x34]
lea ecx, [ebp - 0x48]
push ecx
push edx
push esi
call fcn.14a21450
jmp 0x14a2027c
mov eax, dword [edi + 8]
mov edi, dword [edi + 0xc]
add edi, dword [ebp - 0x30]
push 0x2c
push esi
mov dword [ebp - 0x4c], eax
call dword [sym.imp.MSVCR90.dll__mbschr]
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x14a20257
cmp byte [ebx], 0x2c
jne 0x14a20257
mov byte [ebx], 0
jmp 0x14a2025a
mov ebx, dword [ebp - 0x2c]
mov al, byte [esi]
test al, al
je 0x14a2026c
cmp al, 0x20
jne 0x14a2026c
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x14a20260
mov edx, dword [edi]
lea ecx, [ebp - 0x4c]
push ecx
push edx
push esi
call fcn.14a21450
mov edi, dword [ebp - 0x34]
lea esi, [ebx + 1]
add esp, 0xc
add edi, 0x10
cmp dword [edi], 0
mov dword [ebp - 0x34], edi
jne 0x14a200ce
jmp 0x14a2029a
mov dword [ebp - 0x38], 0x80004005
mov eax, dword [ebp - 0x40]
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
push eax
call esi
mov ecx, dword [ebp - 0x44]
push ecx
call esi
mov eax, dword [ebp - 0x38]
lea esp, [ebp - 0x60]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.14a22c16
mov esp, ebp
pop ebp
ret