Function at 0x4198a0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x503238
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x548394]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
call fcn.004049b0
mov ecx, eax
test ecx, ecx
je 0x419af5
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edx, [eax + 0x10]
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], 1
mov edi, 1
mov eax, dword [edx - 8]
mov ecx, edi
sub ecx, dword [edx - 4]
sub eax, 0x400
or eax, ecx
jge 0x419922
push 0x400
lea ecx, [ebp - 0x14]
call fcn.00409050
mov edx, dword [ebp - 0x14]
cmp dword [edx - 8], 0x400
jl 0x419aff
push esi
push 0x400
push edx
mov dword [edx - 0xc], 0x400
xor ecx, ecx
mov eax, dword [ebp - 0x14]
push 0x531e34
push str.flag
push str.arctrl
mov word [eax + 0x800], cx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x419969
xor ecx, ecx
jmp 0x419982
push dword [eax - 8]
push eax
call fcn.004e1ea5
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x419aff
mov eax, dword [ebp - 0x14]
cmp ecx, dword [eax - 8]
jg 0x419aff
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [ebp - 0x14]
or esi, 0xffffffff
mov word [eax + ecx*2], dx
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], edx
jne 0x4199a9
mov ebx, edi
jmp 0x419ab8
mov dword [ebp - 0x18], edx
mov byte [ebp - 4], 3
call fcn.004049b0
mov ecx, eax
test ecx, ecx
je 0x419b09
mov eax, dword [ecx]
call dword [eax + 0xc]
lea ecx, [eax + 0x10]
mov dword [ebp - 0x18], ecx
mov byte [ebp - 4], 4
mov eax, dword [ecx - 8]
sub edi, dword [ecx - 4]
sub eax, 0x104
or eax, edi
jge 0x4199ed
push 0x104
lea ecx, [ebp - 0x18]
call fcn.00409050
mov ecx, dword [ebp - 0x18]
cmp dword [ecx - 8], 0x104
jl 0x419b13
mov dword [ecx - 0xc], 0x104
xor edx, edx
mov eax, dword [ebp - 0x18]
push 0x104
push ecx
mov word [eax + 0x208], dx
call fcn.00498010
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x419a23
xor ecx, ecx
jmp 0x419a3c
push dword [eax - 8]
push eax
call fcn.004e1ea5
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x419aff
mov eax, dword [ebp - 0x18]
cmp ecx, dword [eax - 8]
jg 0x419aff
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [ebp - 0x18]
mov word [eax + ecx*2], dx
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x1c], edx
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0049ef50
push 0x532b7c
push dword [ebp - 0x1c]
call fcn.004e2050
mov edx, dword [ebp - 0x1c]
xor ebx, ebx
add esp, 0x14
test eax, eax
setne bl
add edx, 0xfffffff0
mov byte [ebp - 4], 6
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x419a9a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
mov byte [ebp - 4], 7
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x419ab8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov dword [ebp - 4], 8
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x419ad7
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 ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004965ac
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00404780
push 0x80070057
call fcn.00404780
push 0x80004005
call fcn.00404780
push 0x80070057
call fcn.00404780
int3