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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bf008
mov eax, dword fs:[0]
push eax
sub esp, 0x42c
mov eax, dword [0x4e9688]
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 0x4666bc
mov eax, dword [0x4ef36c]
mov edx, dword [eax + 0xc]
mov ecx, 0x4ef36c
call edx
add eax, 0x10
mov dword [ebp - 0x428], eax
lea esi, [ebp - 0x428]
mov dword [ebp - 4], 1
call fcn.00445840
cmp eax, 1
jne 0x466541
mov eax, esi
call fcn.004146d0
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 0x4664fb
mov ecx, 0x104
mov eax, edi
call fcn.00425010
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 0x466520
push ecx
push eax
call fcn.00492d63
add esp, 8
test eax, eax
jl 0x466537
mov ecx, dword [edi]
cmp eax, dword [ecx - 8]
jg 0x466537
mov dword [ecx - 0xc], eax
mov ecx, dword [edi]
xor edx, edx
mov word [ecx + eax*2], dx
jmp 0x466696
push 0x80070057
call fcn.004251c0
lea esi, [ebp - 0x424]
call fcn.00404320
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 0x466583
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 0x466696
push 0x208
lea edx, [ebp - 0x420]
push 0
push edx
call fcn.00497780
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0x104
lea ecx, [ebp - 0x420]
push ecx
push 0x4cd21c
push str.Language
push 0x4cca24
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea esi, [ebp - 0x424]
call fcn.00404320
mov byte [ebp - 4], 2
call fcn.004146d0
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 0x466610
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 0x466635
mov ecx, 0x104
mov eax, edi
call fcn.00425010
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 0x46667a
push ecx
push eax
call fcn.00492d63
add esp, 8
test eax, eax
jl 0x466537
mov ecx, dword [edi]
cmp eax, dword [ecx - 8]
jg 0x466537
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 0x4666bc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [0x4ef36c]
mov eax, dword [edx + 0xc]
mov ecx, 0x4ef36c
call eax
add eax, 0x10
mov dword [ebx], eax
mov dword [ebp - 4], 0
mov esi, ebx
mov dword [ebp - 0x42c], 1
call fcn.00411350
test eax, eax
je 0x466709
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 0x466724
push ecx
push eax
call fcn.00492d63
add esp, 8
test eax, eax
jl 0x466537
mov ecx, dword [ebx]
cmp eax, dword [ecx - 8]
jg 0x466537
push 0x4d1020
mov dword [ecx - 0xc], eax
mov ecx, dword [ebx]
push 0x4d1024
xor edx, edx
push ebx
mov word [ecx + eax*2], dx
call fcn.00423b20
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.00491281
mov esp, ebp
pop ebp
ret 8