Function at 0x1001e6a0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100656c0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x1008c180]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.10007340
mov ecx, eax
test ecx, ecx
je 0x1001e8f5
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], 0
push eax
call fcn.1000d420
mov ecx, eax
call fcn.1000ac10
mov edx, dword [ebp - 0x10]
mov edi, 1
mov esi, dword [eax]
mov ecx, edi
mov byte [ebp - 4], 1
mov eax, dword [edx - 8]
sub ecx, dword [edx - 4]
sub eax, 0x400
or eax, ecx
jge 0x1001e728
push 0x400
lea ecx, [ebp - 0x10]
call fcn.10007c90
mov edx, dword [ebp - 0x10]
cmp dword [edx - 8], 0x400
jl 0x1001e8ff
push esi
push 0x400
push edx
mov dword [edx - 0xc], 0x400
xor ecx, ecx
mov eax, dword [ebp - 0x10]
push 0x10069374
push str.flag
push str.arctrl
mov word [eax + 0x800], cx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov edx, dword [ebp - 0x1c]
or esi, 0xffffffff
mov byte [ebp - 4], 0
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1001e785
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x10]
push dword [eax - 8]
push eax
call fcn.1004ee7f
mov edx, eax
add esp, 8
test edx, edx
js 0x1001e8ff
mov ecx, dword [ebp - 0x10]
cmp edx, dword [ecx - 8]
jg 0x1001e8ff
mov dword [ecx - 0xc], edx
xor ecx, ecx
mov eax, dword [ebp - 0x10]
mov word [eax + edx*2], cx
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], ecx
jne 0x1001e7c5
mov ebx, edi
jmp 0x1001e8c2
call fcn.10007340
mov ecx, eax
test ecx, ecx
je 0x1001e909
mov eax, dword [ecx]
call dword [eax + 0xc]
lea ecx, [eax + 0x10]
mov dword [ebp - 0x14], ecx
mov eax, dword [ecx - 8]
sub edi, dword [ecx - 4]
sub eax, 0x104
or eax, edi
mov byte [ebp - 4], 2
jge 0x1001e802
push 0x104
lea ecx, [ebp - 0x14]
call fcn.10007c90
mov ecx, dword [ebp - 0x14]
cmp dword [ecx - 8], 0x104
jl 0x1001e913
mov dword [ecx - 0xc], 0x104
xor edx, edx
mov eax, dword [ebp - 0x14]
push 0x104
push ecx
mov word [eax + 0x208], dx
call fcn.10038b00
mov eax, dword [ebp - 0x14]
push dword [eax - 8]
push eax
call fcn.1004ee7f
mov edx, eax
add esp, 8
test edx, edx
js 0x1001e8ff
mov ecx, dword [ebp - 0x14]
cmp edx, dword [ecx - 8]
jg 0x1001e8ff
mov dword [ecx - 0xc], edx
xor ecx, ecx
mov eax, dword [ebp - 0x14]
mov word [eax + edx*2], cx
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.100215f0
push 0x1006ca18
push dword [ebp - 0x18]
call fcn.1004dcff
mov edx, dword [ebp - 0x18]
xor ebx, ebx
add esp, 0x14
mov byte [ebp - 4], 2
test eax, eax
mov eax, esi
setne bl
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1001e8a4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x14]
mov eax, esi
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1001e8c2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x1001e8e1
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.100070c0
push 0x80070057
call fcn.100070c0
push 0x80004005
call fcn.100070c0
push 0x80070057
call fcn.100070c0
int3