Function at 0x467140
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bfbd8
mov eax, dword fs:[0]
push eax
sub esp, 0x42c
mov eax, dword [0x4ea688]
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 eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
xor ecx, ecx
mov dword [ebp - 4], ecx
mov edi, edx
add edi, 0x13c
mov dword [ebp - 0x42c], ecx
mov edx, dword [edi]
mov dword [ebp - 0x434], eax
mov eax, dword [edx - 0xc]
mov dword [ebp - 0x430], ebx
cmp eax, ecx
jne 0x4673bc
mov eax, dword [0x4f03cc]
mov edx, dword [eax + 0xc]
mov ecx, 0x4f03cc
call edx
add eax, 0x10
mov dword [ebp - 0x428], eax
lea esi, [ebp - 0x428]
mov dword [ebp - 4], 1
call fcn.00446580
cmp eax, 1
jne 0x467241
mov eax, esi
call fcn.00414fb0
mov eax, dword [edi]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, 0x104
or eax, ecx
jge 0x4671fb
mov ecx, 0x104
mov eax, edi
call fcn.00425920
mov eax, dword [edi]
push str.safemonudisk.locale
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov eax, dword [edi]
mov ecx, dword [eax - 8]
test eax, eax
je 0x467220
push ecx
push eax
call fcn.004938a4
add esp, 8
test eax, eax
jl 0x467237
mov ecx, dword [edi]
cmp eax, dword [ecx - 8]
jg 0x467237
mov dword [ecx - 0xc], eax
mov ecx, dword [edi]
xor edx, edx
mov word [ecx + eax*2], dx
jmp 0x467396
push 0x80070057
call fcn.00425ad0
lea esi, [ebp - 0x424]
call fcn.004043a0
mov eax, dword [eax]
push str.config.ini
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov eax, dword [ebp - 0x424]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x467283
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x467396
push 0x208
lea edx, [ebp - 0x420]
push 0
push edx
call fcn.004982c0
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0x104
lea ecx, [ebp - 0x420]
push ecx
push 0x4ce6a4
push str.Language
push 0x4cde9c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea esi, [ebp - 0x424]
call fcn.004043a0
mov byte [ebp - 4], 2
call fcn.00414fb0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x424]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x467310
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [edi]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, 0x104
or eax, ecx
jge 0x467335
mov ecx, 0x104
mov eax, edi
call fcn.00425920
mov esi, dword [edi]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str.i18n
push esi
call ebx
lea ecx, [ebp - 0x420]
push ecx
push esi
call ebx
push str.safemon
push esi
call ebx
push str.udisk.locale
push esi
call ebx
mov eax, dword [edi]
mov ecx, dword [eax - 8]
test eax, eax
je 0x46737a
push ecx
push eax
call fcn.004938a4
add esp, 8
test eax, eax
jl 0x467237
mov ecx, dword [edi]
cmp eax, dword [ecx - 8]
jg 0x467237
mov ebx, dword [ebp - 0x430]
mov dword [ecx - 0xc], eax
mov edx, dword [edi]
xor ecx, ecx
mov word [edx + eax*2], cx
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x428]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4673bc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [0x4f03cc]
mov eax, dword [edx + 0xc]
mov ecx, 0x4f03cc
call eax
add eax, 0x10
mov dword [ebx], eax
mov dword [ebp - 4], 0
mov esi, ebx
mov dword [ebp - 0x42c], 1
call fcn.00411c20
test eax, eax
je 0x467409
mov edi, dword [edi]
push edi
push 0x400
push eax
mov eax, dword [ebp - 0x434]
push eax
push eax
push str.Locale
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, dword [ebx]
mov ecx, dword [eax - 8]
test eax, eax
je 0x467424
push ecx
push eax
call fcn.004938a4
add esp, 8
test eax, eax
jl 0x467237
mov ecx, dword [ebx]
cmp eax, dword [ecx - 8]
jg 0x467237
push 0x4d2478
mov dword [ecx - 0xc], eax
mov ecx, dword [ebx]
push 0x4d247c
xor edx, edx
push ebx
mov word [ecx + eax*2], dx
call fcn.00424430
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.00491db1
mov esp, ebp
pop ebp
ret 8