Function at 0x450d62
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0xa0b4
call fcn.00491570
cmp dword [ebp + 0xc], 0
jne 0x450d80
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp + 0xc], eax
push dword [ebp + 0x10]
lea eax, [ebp - 4]
push eax
call fcn.00411a7d
mov eax, dword [0x4a9450]
pop ecx
pop ecx
mov dword [ebp - 0x10], eax
push dword [ebp + 0x10]
lea ecx, [ebp - 0x10]
call fcn.00406e7b
test eax, eax
je 0x450dc2
mov eax, dword [0x4c0e00]
mov eax, dword [eax]
push dword [eax]
push dword [ebp - 0x10]
push dword [ebp - 4]
push dword [0x4c0dfc]
call fcn.0043ca77
add esp, 0x10
push esi
push edi
lea ecx, [ebp - 0x10]
call fcn.00401085
push dword [ebp + 0x10]
mov esi, dword [ebp + 8]
push dword [ebp + 0xc]
push esi
call fcn.00450f82
add esp, 0xc
mov edi, eax
call fcn.00450a5b
test eax, eax
jne 0x450df0
mov esi, edi
jmp 0x450f74
push ebx
push str.25D447B2_EA72_4999_BE79_DB8DF18BDE0B
lea ecx, [ebp - 0xc]
call fcn.004064a9
mov eax, dword [0x4c0e00]
mov eax, dword [eax]
push dword [eax]
lea eax, [ebp - 8]
push eax
call fcn.0043bbd3
mov eax, dword [0x4c0e00]
mov eax, dword [eax]
push dword [eax]
push dword [ebp - 8]
call fcn.0043ba77
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
add esp, 0x10
test eax, eax
je 0x450e7a
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
jl 0x450e41
mov dword [ebp + 8], eax
add eax, 0xfffffff4
push eax
call ebx
jmp 0x450e53
mov ecx, dword [0x4a9450]
push eax
mov dword [ebp + 8], ecx
lea ecx, [ebp + 8]
call fcn.00406638
lea eax, [ebp + 8]
push eax
call fcn.00450b28
pop ecx
push dword [ebp - 8]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x4c0dfc]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea ecx, [ebp + 8]
call fcn.00401085
mov eax, dword [0x4c0e00]
and word [ebp - 0xa0b4], 0
mov eax, dword [eax]
push dword [eax]
lea eax, [ebp - 0xa0b4]
push 0x5050
push eax
push dword [ebp - 0xc]
push dword [ebp - 4]
push dword [0x4c0dfc]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov edi, eax
lea eax, [ebp - 0xa0b4]
test eax, eax
je 0x450ec2
lea eax, [ebp - 0xa0b4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [ebp - 0xa0b4]
push ecx
push eax
mov ecx, esi
call fcn.00406586
test edi, edi
jbe 0x450eef
push dword [ebp - 0xc]
mov eax, dword [esi]
push eax
call fcn.00490952
pop ecx
test eax, eax
pop ecx
je 0x450eef
push esi
call fcn.00450b1a
pop ecx
jmp 0x450f60
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call fcn.00450f82
add esp, 0xc
test eax, eax
jne 0x450f06
xor esi, esi
jmp 0x450f63
call fcn.00450a74
test eax, eax
je 0x450f60
mov esi, dword [esi]
cmp dword [esi - 0xc], 0
jl 0x450f22
mov dword [ebp + 0x10], esi
add esi, 0xfffffff4
push esi
call ebx
jmp 0x450f33
mov eax, dword [0x4a9450]
push esi
lea ecx, [ebp + 0x10]
mov dword [ebp + 0x10], eax
call fcn.00406638
lea eax, [ebp + 0x10]
push eax
call fcn.00450b28
mov eax, dword [0x4c0e00]
pop ecx
mov eax, dword [eax]
push dword [eax]
push dword [ebp + 0x10]
push dword [ebp - 4]
push dword [0x4c0dfc]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea ecx, [ebp + 0x10]
call fcn.00401085
push 1
pop esi
lea ecx, [ebp - 8]
call fcn.00401085
lea ecx, [ebp - 0xc]
call fcn.00401085
pop ebx
lea ecx, [ebp - 4]
call fcn.00401085
mov eax, esi
pop edi
pop esi
leave
ret