Function at 0x10050f4
Capabilities:
Read .ini file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x1014b48]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push esi
push edi
mov esi, 0x1015714
push esi
push 0x10016b4
push 0x10016ac
mov edi, 0x10015d4
push edi
mov dword [ebp - 4], eax
call ebx
push esi
push 0
push 0x10015dc
push edi
call ebx
push esi
push 0x10016a8
push 0x10015c8
push edi
call ebx
push esi
push 0
push 0x100169c
mov edi, 0x1001454
push edi
call ebx
mov eax, dword [0x1017124]
sub eax, 0x865
je 0x1005174
dec eax
lea eax, [ebp - 0x20c]
je 0x100516d
push 0x1001690
jmp 0x100517f
push 0x1001684
jmp 0x100517f
push 0x100169c
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
lea eax, [ebp - 0x20c]
push eax
push 0x1001674
push edi
call ebx
push esi
push 0xa
lea eax, [ebp - 0x20c]
push eax
push dword [0x1017128]
call fcn.0100cfcd
add esp, 0xc
push eax
push 0x1001658
push edi
call ebx
push esi
push 0xa
lea eax, [ebp - 0x20c]
push eax
mov eax, dword [0x101712c]
and eax, 1
push eax
call fcn.0100cfcd
add esp, 0xc
push eax
push 0x10013ac
push edi
call ebx
push esi
push 0xa
lea eax, [ebp - 0x20c]
push eax
mov eax, dword [0x101712c]
shr eax, 1
and eax, 1
push eax
call fcn.0100cfcd
add esp, 0xc
push eax
push 0x100139c
push edi
call ebx
push esi
push 0xa
lea eax, [ebp - 0x20c]
push eax
mov eax, dword [0x101712c]
shr eax, 3
and eax, 1
push eax
call fcn.0100cfcd
add esp, 0xc
push eax
push 0x100137c
push edi
call ebx
push esi
push 0xa
lea eax, [ebp - 0x20c]
push eax
mov eax, dword [0x101712e]
and eax, 1
push eax
call fcn.0100cfcd
add esp, 0xc
push eax
push 0x1001648
push edi
call ebx
mov eax, dword [0x101712c]
test eax, 0x20000
je 0x100525d
xor eax, eax
inc eax
jmp 0x1005275
test eax, 0x40000
je 0x1005269
push 2
pop eax
jmp 0x1005275
and eax, 0x80000
neg eax
sbb eax, eax
and eax, 3
push dword [eax*4 + 0x1014304]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
lea eax, [ebp - 0x20c]
push eax
push 0x1001634
push edi
call ebx
mov al, byte [0x1017134]
test al, 1
mov byte [ebp - 0x20c], 0
je 0x10052e3
test al, 2
lea eax, [ebp - 0x20c]
je 0x10052ba
push 0x1001630
jmp 0x10052bf
push 0x100162c
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
test byte [0x1017134], 4
je 0x10052f5
push 0x1001628
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
jmp 0x10052f5
push 0x1001624
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
lea eax, [ebp - 0x20c]
push eax
push 0x1001618
push edi
call ebx
mov eax, 0x10141c0
mov dword [ebp - 0x210], eax
jmp 0x1005318
mov eax, dword [ebp - 0x210]
mov ecx, dword [eax + 8]
xor edx, edx
cmp ecx, edx
push edx
push dword [eax]
je 0x100532d
cmp dword [ecx], edx
jne 0x100532d
push dword [eax - 8]
jmp 0x1005330
push dword [eax - 4]
push dword [eax - 0xc]
push dword [eax - 0x10]
call fcn.01002dcd
add dword [ebp - 0x210], 0x1c
cmp dword [ebp - 0x210], 0x10142bc
jl 0x1005312
test byte [0x101712e], 1
je 0x1005385
push 0
push 0x104
push 0x10162b0
push 0x1001608
push edi
call fcn.01002dcd
push 0
push 0x104
push 0x1016c00
push 0x10015f4
push edi
call fcn.01002dcd
call fcn.0100bf18
push esi
push 0x208
lea eax, [ebp - 0x20c]
push eax
push 0x1001443
push 0x10015e8
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x10053d4
push 0x1016bb0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x10053d4
push 0
lea eax, [ebp - 0x20c]
push eax
call fcn.01004f7a
test eax, eax
je 0x100542d
cmp byte [0x1016bb0], 0
je 0x10053fb
push esi
push 0x1016bb0
push 0x10015e8
push edi
call ebx
mov eax, 0x1016bb0
push eax
push eax
call fcn.01003ba5
test eax, eax
je 0x100542d
push esi
push 0x208
lea eax, [ebp - 0x20c]
push eax
push 0x1001443
push 0x10014ac
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x1005431
lea eax, [ebp - 0x20c]
push eax
call fcn.0100505d
test eax, eax
jne 0x1005431
xor eax, eax
jmp 0x1005444
push esi
push 0x1016b60
push 0x10014ac
push edi
call ebx
call fcn.01003dd9
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0100c759
leave
ret 4