Function at 0x1005292
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x208
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push esi
push edi
mov esi, 0x1012434
push esi
push 0x100198c
push 0x1001984
mov edi, 0x10018ac
push edi
call ebp
push esi
push 0
push 0x10018b4
push edi
call ebp
push esi
push 0x1001980
push 0x10018a0
push edi
call ebp
push esi
push 0
mov ebx, 0x1001974
push ebx
mov edi, 0x1001454
push edi
call ebp
mov eax, dword [0x1013e44]
sub eax, 0x865
je 0x100530b
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
dec eax
lea eax, [esp + 0x10]
je 0x1005304
push 0x1001968
jmp 0x1005316
push 0x100195c
jmp 0x1005316
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp + 0x14]
push eax
call ebx
push esi
lea eax, [esp + 0x14]
push eax
push 0x100194c
push edi
call ebp
push esi
push 0xa
lea eax, [esp + 0x18]
push eax
push dword [0x1013e48]
call fcn.0100ba30
add esp, 0xc
push eax
push 0x1001930
push edi
call ebp
push esi
push 0xa
lea eax, [esp + 0x18]
push eax
mov eax, dword [0x1013e4c]
and eax, 1
push eax
call fcn.0100ba30
add esp, 0xc
push eax
push 0x10013ac
push edi
call ebp
push esi
push 0xa
lea eax, [esp + 0x18]
push eax
mov eax, dword [0x1013e4c]
shr eax, 1
and eax, 1
push eax
call fcn.0100ba30
add esp, 0xc
push eax
push 0x100139c
push edi
call ebp
push esi
push 0xa
lea eax, [esp + 0x18]
push eax
mov eax, dword [0x1013e4c]
shr eax, 3
and eax, 1
push eax
call fcn.0100ba30
add esp, 0xc
push eax
push 0x100137c
push edi
call ebp
push esi
push 0xa
lea eax, [esp + 0x18]
push eax
mov eax, dword [0x1013e4e]
and eax, 1
push eax
call fcn.0100ba30
add esp, 0xc
push eax
push 0x1001920
push edi
call ebp
mov eax, dword [0x1013e4c]
test eax, 0x20000
je 0x10053e4
xor eax, eax
inc eax
jmp 0x10053fc
test eax, 0x40000
je 0x10053f0
push 2
pop eax
jmp 0x10053fc
and eax, 0x80000
neg eax
sbb eax, eax
and eax, 3
push dword [eax*4 + 0x10112d4]
lea eax, [esp + 0x14]
push eax
call ebx
push esi
lea eax, [esp + 0x14]
push eax
push 0x100190c
push edi
call ebp
mov al, byte [0x1013e54]
and byte [esp + 0x10], 0
test al, 1
je 0x1005458
test al, 2
lea eax, [esp + 0x10]
je 0x1005435
push 0x1001908
jmp 0x100543a
push 0x1001904
push eax
call ebx
test byte [0x1013e54], 4
je 0x1005464
push 0x1001900
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
jmp 0x1005464
push 0x10018fc
lea eax, [esp + 0x14]
push eax
call ebx
push esi
lea eax, [esp + 0x14]
push eax
push 0x10018f0
push edi
call ebp
mov ebx, 0x1011190
mov eax, dword [ebx + 8]
xor ecx, ecx
cmp eax, ecx
push ecx
push dword [ebx]
je 0x100548c
cmp dword [eax], ecx
jne 0x100548c
push dword [ebx - 8]
jmp 0x100548f
push dword [ebx - 4]
push dword [ebx - 0xc]
push dword [ebx - 0x10]
call fcn.01002afe
add ebx, 0x1c
cmp ebx, 0x101128c
jl 0x1005477
test byte [0x1013e4e], 1
je 0x10054d9
push 0
mov ebx, 0x104
push ebx
push 0x1012fd0
push 0x10018e0
push edi
call fcn.01002afe
push 0
push ebx
push 0x1013920
push 0x10018cc
push edi
call fcn.01002afe
call fcn.0100ad54
push esi
push 0x208
lea eax, [esp + 0x18]
push eax
push 0x1001443
push 0x10018c0
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
mov ebx, 0x10138d0
je 0x1005523
push ebx
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x1005523
push 0
lea eax, [esp + 0x14]
push eax
call fcn.01005132
test eax, eax
je 0x1005570
cmp byte [0x10138d0], 0
je 0x1005541
push esi
push ebx
push 0x10018c0
push edi
call ebp
push ebx
push ebx
call fcn.0100366f
test eax, eax
je 0x1005570
push esi
push 0x208
lea eax, [esp + 0x18]
push eax
push 0x1001443
mov ebx, 0x10014a8
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x1005574
lea eax, [esp + 0x10]
push eax
call fcn.01005203
test eax, eax
jne 0x1005574
xor eax, eax
jmp 0x1005583
push esi
push 0x1013880
push ebx
push edi
call ebp
call fcn.0100386e
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 4