Function at 0x101104c0
Capabilities:
Get file attributes
Read .ini file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x102519c8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push esi
push 0x208
push 0
push eax
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x210], ebx
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20c]
push str.env.ini
push ebx
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
call fcn.10003180
mov esi, dword [eax + 0x154]
test esi, esi
je 0x10110523
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0xe
call fcn.10003680
add esp, 4
test eax, eax
je 0x1011053c
lea ecx, [ebp - 0x20c]
push ecx
call eax
jmp 0x10110549
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
test esi, esi
je 0x10110556
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp ebx, 0xffffffff
je 0x10110701
test bl, 0x10
jne 0x10110701
push edi
lea eax, [ebp - 0x20c]
push eax
push 0
push str.EnableAddressSearch
push str.Setting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edi, eax
test edi, edi
je 0x101106ec
cmp dword [ebp + 0xc], 0
lea eax, [ebp - 0x20c]
push eax
je 0x10110652
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push 0x1020e388
push str.EnableAddressSearch
push str.Setting
call esi
test eax, eax
jne 0x101105fc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x101105fc
lea eax, [ebp - 0x20c]
push eax
call fcn.100dc6a0
add esp, 4
lea eax, [ebp - 0x20c]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x20c]
push eax
push 0x1020e388
push str.EnableAddressSearch
push str.Setting
call esi
lea eax, [ebp - 0x20c]
push eax
call fcn.100d9640
add esp, 4
lea eax, [ebp - 0x20c]
push str.keyMapInfo.bin
push dword [ebp - 0x210]
push eax
mov eax, dword [sym.imp.SHLWAPI.dll_PathCombineW]
call eax
test eax, eax
je 0x101106ec
lea eax, [ebp - 0x20c]
push 1
push eax
call fcn.100d9c10
add esp, 8
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101f99c6
mov esp, ebp
pop ebp
ret 8
lea ecx, [ebp - 0x214]
call fcn.10002490
mov esi, dword [ebp - 0x218]
lea eax, [ebp - 0x214]
push eax
lea ecx, [esi + 0xc]
call fcn.1002b780
mov edx, dword [ebp - 0x214]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10110690
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str.keyMapInfo.bin
push dword [ebp - 0x210]
lea eax, [ebp - 0x20c]
push eax
mov eax, dword [sym.imp.SHLWAPI.dll_PathCombineW]
call eax
test eax, eax
je 0x101106ec
lea eax, [ebp - 0x20c]
push eax
call fcn.1000aa00
add esp, 4
test eax, eax
je 0x101106ec
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x210]
call fcn.10002490
lea eax, [ebp - 0x210]
push eax
lea ecx, [esi + 0xc]
call fcn.1002b780
lea ecx, [ebp - 0x210]
call fcn.10007e10
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101f99c6
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.101f99c6
mov esp, ebp
pop ebp
ret 8