Function at 0x406380
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x49f518
mov eax, dword fs:[0]
push eax
sub esp, 0x42c
mov eax, dword [0x4c13e0]
xor eax, esp
mov dword [esp + 0x424], eax
push ebp
push esi
push edi
mov eax, dword [0x4c13e0]
xor eax, esp
push eax
lea eax, [esp + 0x43c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x44c]
xor ebp, ebp
mov dword [esp + 0x444], ebp
lea edi, [eax + 0x13c]
mov dword [esp + 0x1c], ebp
mov edx, dword [edi]
mov eax, dword [edx - 0xc]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x18], ecx
cmp eax, ebp
jne 0x406605
mov eax, dword [0x4c77a4]
mov edx, dword [eax + 0xc]
mov ecx, 0x4c77a4
call edx
add eax, 0x10
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x444], 1
call fcn.0042b800
cmp eax, 1
jne 0x406490
lea eax, [esp + 0x10]
call fcn.00403160
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 0x406446
mov ecx, 0x104
mov eax, edi
call fcn.00403780
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]
cmp eax, ebp
jne 0x406461
xor eax, eax
jmp 0x40646f
push ecx
push eax
call fcn.004774c2
add esp, 8
cmp eax, ebp
jl 0x406486
mov ecx, dword [edi]
cmp eax, dword [ecx - 8]
jg 0x406486
mov dword [ecx - 0xc], eax
mov ecx, dword [edi]
xor edx, edx
mov word [ecx + eax*2], dx
jmp 0x4065dd
push 0x80070057
call fcn.004037d0
lea esi, [esp + 0x14]
call fcn.00403a60
mov eax, dword [eax]
push str.config.ini
push eax
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4064cc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4065dd
push 0x208
lea edx, [esp + 0x230]
push ebp
push edx
call fcn.0047c020
add esp, 0xc
lea eax, [esp + 0x24]
push eax
push 0x104
lea ecx, [esp + 0x234]
push ecx
push 0x4a745c
push str.Language
push 0x4a730c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea esi, [esp + 0x14]
call fcn.00403a60
mov byte [esp + 0x444], 2
call fcn.00403160
mov byte [esp + 0x444], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40655a
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 0x40657f
mov ecx, 0x104
mov eax, edi
call fcn.00403780
mov esi, dword [edi]
mov ebp, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str.i18n
push esi
call ebp
lea ecx, [esp + 0x22c]
push ecx
push esi
call ebp
push str.safemon
push esi
call ebp
push str.udisk.locale
push esi
call ebp
mov eax, dword [edi]
mov ecx, dword [eax - 8]
test eax, eax
je 0x4065c5
push ecx
push eax
call fcn.004774c2
add esp, 8
test eax, eax
jl 0x406486
mov ecx, dword [edi]
cmp eax, dword [ecx - 8]
jg 0x406486
mov dword [ecx - 0xc], eax
mov edx, dword [edi]
xor ecx, ecx
mov word [edx + eax*2], cx
xor ebp, ebp
mov byte [esp + 0x444], 0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x406605
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [0x4c77a4]
mov eax, dword [edx + 0xc]
mov ecx, 0x4c77a4
call eax
add eax, 0x10
mov dword [ebx], eax
mov dword [esp + 0x444], ebp
mov esi, ebx
mov dword [esp + 0x1c], 1
call fcn.00406c30
cmp eax, ebp
je 0x40664e
mov edi, dword [edi]
push edi
push 0x400
push eax
mov eax, dword [esp + 0x24]
push eax
push eax
push str.Locale
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, dword [ebx]
mov ecx, dword [eax - 8]
cmp eax, ebp
jne 0x40665b
xor eax, eax
jmp 0x40666d
push ecx
push eax
call fcn.004774c2
add esp, 8
cmp eax, ebp
jl 0x406486
mov ecx, dword [ebx]
cmp eax, dword [ecx - 8]
jg 0x406486
mov dword [ecx - 0xc], eax
mov ecx, dword [ebx]
xor edx, edx
push ebx
mov word [ecx + eax*2], dx
call fcn.00408070
mov eax, ebx
mov ecx, dword [esp + 0x43c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x424]
xor ecx, esp
call fcn.00476dfd
add esp, 0x438
ret 4