Function at 0x41c1ee
Capabilities:
Read .ini file
Read file via mapping

Disassembly:
push 0x390
mov eax, 0x565f4a
call fcn.0053cea9
xor edi, edi
inc edi
mov dword [ebp - 4], edi
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
push eax
call fcn.00402431
lea ebx, [eax + 0x10]
pop ecx
mov dword [ebp - 0x394], ebx
mov byte [ebp - 4], 2
mov eax, dword [ebp + 0xc]
mov eax, dword [eax - 0xc]
test eax, eax
jne 0x41c307
call fcn.00437a9e
push eax
lea ecx, [ebp - 0x380]
call fcn.00402723
mov byte [ebp - 4], 3
push dword [ebp + 8]
lea eax, [ebp - 0x380]
push str.GlobalEs_EventInfo__s
push eax
call fcn.0040a0e9
xor eax, eax
push 0xc4
push eax
mov word [ebp - 0xdc], ax
lea eax, [ebp - 0xda]
push eax
call fcn.00538530
mov esi, dword [ebp - 0x380]
add esp, 0x18
push esi
push 0
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov dword [ebp - 0x390], eax
test eax, eax
jne 0x41c29a
lea ecx, [esi - 0x10]
call fcn.0040274b
jmp 0x41c503
mov esi, 0xc6
push esi
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x38c], eax
test eax, eax
je 0x41c2e9
push esi
push eax
lea eax, [ebp - 0xdc]
push eax
call fcn.00537bd0
add esp, 0xc
lea eax, [ebp - 0x56]
push eax
lea ecx, [ebp - 0x394]
call fcn.004026b9
push dword [ebp - 0x38c]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ebx, dword [ebp - 0x394]
push dword [ebp - 0x390]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x380]
add ecx, 0xfffffff0
call fcn.0040274b
push ebx
call fcn.00417d2f
pop ecx
test al, al
je 0x41c503
lea esi, [ebp - 0x37c]
call fcn.0040a14c
push 0x12c
lea eax, [ebp - 0x20c]
push 0
push eax
mov byte [ebp - 4], 4
call fcn.00538530
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x178]
push 0x21
push eax
call fcn.0053b636
push 0xffffffffffffffff
push dword [ebp + 8]
lea eax, [ebp - 0x208]
push 8
push eax
call fcn.0053b636
add esp, 0x2c
lea eax, [ebp - 0x20c]
push eax
mov ecx, esi
mov dword [ebp - 0x20c], edi
call fcn.0040a3bc
test al, al
je 0x41c4f4
push 0xf1b4
call fcn.00437a2c
mov esi, eax
pop ecx
mov dword [ebp - 0x38c], esi
call fcn.00437a9e
push eax
lea ecx, [ebp - 0x390]
call fcn.00402723
mov byte [ebp - 4], 5
and dword [ebp - 0x380], 0
mov dword [ebp - 0x384], 0xc9
mov dword [ebp - 0x388], esi
push dword [ebp - 0x384]
lea eax, [ebp - 0x390]
push 0x599af4
push eax
call fcn.0040a0e9
add esp, 0xc
or ebx, 0xffffffff
cmp dword [ebp - 0x384], 0xc9
jne 0x41c3e8
mov ebx, 0x2bd
lea edi, [ebp - 0x398]
call fcn.00412019
mov esi, eax
lea eax, [ebp - 0x394]
push eax
lea eax, [ebp - 0x39c]
push str.DCEX.
push eax
mov byte [ebp - 4], 6
call fcn.0040eabc
mov esi, dword [esi]
mov edi, dword [ebp - 0x390]
mov eax, dword [eax]
add esp, 0xc
push esi
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [ebp - 0x39c]
test eax, eax
setg bl
add ecx, 0xfffffff0
call fcn.0040274b
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x398]
add ecx, 0xfffffff0
call fcn.0040274b
test bl, bl
je 0x41c497
mov esi, 0x7cc
push esi
push 0
push dword [ebp - 0x388]
call fcn.00538530
mov ecx, dword [ebp - 0x388]
mov eax, dword [ebp - 0x384]
push 0xffffffffffffffff
push 0x599954
add eax, 0xffffff38
push 0x20
push ecx
mov word [ecx + 0x40], ax
call fcn.0053b636
add esp, 0x1c
inc dword [ebp - 0x380]
add dword [ebp - 0x388], esi
inc dword [ebp - 0x384]
cmp dword [ebp - 0x384], 0xe6
jle 0x41c3ba
cmp byte [ebp + 0x10], 0
je 0x41c4ba
and dword [ebp - 0x380], 0
push 0
push dword [ebp - 0x380]
lea esi, [ebp - 0x37c]
push dword [ebp - 0x38c]
call fcn.0040ab2a
mov ecx, esi
call fcn.0040a36f
push dword [ebp - 0x38c]
call fcn.00437a37
pop ecx
lea ecx, [edi - 0x10]
call fcn.0040274b
mov ebx, dword [ebp - 0x394]
lea ecx, [ebp - 0x37c]
mov byte [ebp - 4], 2
call fcn.0040a343
lea ecx, [ebx - 0x10]
call fcn.0040274b
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.0040274b
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.0040274b
call fcn.0053cf2c
ret 0xc