Function at 0x41ac20
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x509ea8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x551758]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
call fcn.00404ec0
mov ecx, eax
test ecx, ecx
je 0x41ae46
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edx, [eax + 0x10]
mov dword [ebp - 0x10], edx
mov eax, dword [edx - 8]
mov edi, 1
mov ecx, edi
mov dword [ebp - 4], 1
sub ecx, dword [edx - 4]
sub eax, 0x400
or eax, ecx
jge 0x41ac95
push 0x400
lea ecx, [ebp - 0x10]
call fcn.00405570
mov edx, dword [ebp - 0x10]
cmp dword [edx - 8], 0x400
jl 0x41ae50
push dword [ebp + 8]
mov dword [edx - 0xc], 0x400
xor ecx, ecx
mov eax, dword [ebp - 0x10]
push 0x400
push edx
push 0x514f00
push str.flag
push str.arctrl
mov word [eax + 0x800], cx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x41acde
xor ecx, ecx
jmp 0x41acf7
push dword [eax - 8]
push eax
call fcn.004e33f8
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x41ae50
mov eax, dword [ebp - 0x10]
cmp ecx, dword [eax - 8]
jg 0x41ae50
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [ebp - 0x10]
or esi, 0xffffffff
mov word [eax + ecx*2], dx
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], edx
je 0x41ae1b
mov byte [ebp - 4], 2
call fcn.00404ec0
mov ecx, eax
test ecx, ecx
je 0x41ae5a
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], 3
jge 0x41ad5c
push 0x104
lea ecx, [ebp - 0x14]
call fcn.00405570
mov ecx, dword [ebp - 0x14]
cmp dword [ecx - 8], 0x104
jl 0x41ae64
mov dword [ecx - 0xc], 0x104
xor edx, edx
mov eax, dword [ebp - 0x14]
push 0x104
push ecx
mov word [eax + 0x208], dx
call fcn.0049f980
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x41ad92
xor ecx, ecx
jmp 0x41adab
push dword [eax - 8]
push eax
call fcn.004e33f8
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x41ae50
mov eax, dword [ebp - 0x14]
cmp ecx, dword [eax - 8]
jg 0x41ae50
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [ebp - 0x14]
mov word [eax + ecx*2], dx
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.004a6480
push 0x5154f0
push dword [ebp - 0x18]
call fcn.004e8894
mov edx, dword [ebp - 0x18]
add esp, 0x14
neg eax
sbb edi, edi
add edx, 0xfffffff0
neg edi
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41ae01
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x14]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41ae1b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x41ae33
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00404b90
push 0x80070057
call fcn.00404b90
push 0x80004005
call fcn.00404b90
push 0x80070057
call fcn.00404b90
int3