Function at 0x406c30
Capabilities:
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8b8
mov eax, dword [0x4710b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebx + 0x504]
push esi
push edi
push 0
call fcn.004124f9
mov ecx, dword [ebx + 0xfe8]
sub ecx, dword [ebx + 0xfe4]
mov eax, 0x7e07e07f
imul ecx
mov ecx, dword [ebx + 0x504]
sar edx, 9
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
call fcn.004124e0
mov ecx, dword [ebx + 0x50c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x2c]
push 0x4692d4
call eax
lea ecx, [ebp - 0x290]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edx, dword [ebx + 0xff4]
mov eax, dword [ebx + 0xff8]
lea ecx, [ebx + 0xff4]
mov dword [ebp - 0x8b0], ecx
cmp edx, eax
je 0x406cf9
mov dword [ebp - 0x8ac], edx
mov edx, eax
cmp eax, eax
je 0x406cf0
mov edi, dword [ebp - 0x8ac]
add dword [ebp - 0x8ac], 0x410
mov esi, edx
add edx, 0x410
mov ecx, 0x104
rep movsd dword es:[edi], dword [esi]
cmp edx, eax
jne 0x406cc7
mov ecx, dword [ebp - 0x8b0]
mov edx, dword [ebp - 0x8ac]
mov dword [ecx + 4], edx
mov edx, dword [ebx + 0xfe8]
sub edx, dword [ebx + 0xfe4]
mov eax, 0x7e07e07f
imul edx
sar edx, 9
mov eax, edx
xor esi, esi
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x8b4], esi
je 0x406e7f
mov dword [ebp - 0x8ac], esi
mov esi, dword [ebx + 0xfe4]
add esi, dword [ebp - 0x8ac]
mov ecx, 0x104
lea edi, [ebp - 0x8a8]
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x8a8]
push ecx
lea edx, [ebp - 0x290]
push edx
push str._s_s
lea edx, [ebp - 0x498]
call fcn.004096f0
push 0x80
lea eax, [ebp - 0x88]
push 0
push eax
call fcn.004426d0
add esp, 0x18
push str.._update.local
push 0x80
lea ecx, [ebp - 0x88]
push ecx
push 0x46872c
push 0x469300
lea edx, [ebp - 0x8a8]
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x88]
push eax
lea ecx, [ebp - 0x6a0]
push ecx
call fcn.0043e52c
add esp, 8
test eax, eax
je 0x406e31
mov edi, dword [ebp - 0x8b0]
mov ecx, dword [edi + 4]
lea edx, [ebp - 0x8a8]
cmp edx, ecx
jae 0x406e02
mov eax, dword [edi]
cmp eax, edx
ja 0x406e02
sub edx, eax
mov eax, 0x7e07e07f
imul edx
sar edx, 9
mov esi, edx
shr esi, 0x1f
add esi, edx
cmp ecx, dword [edi + 8]
jne 0x406df1
mov ecx, edi
call fcn.00408d90
mov eax, dword [edi + 4]
imul esi, esi, 0x410
add esi, dword [edi]
test eax, eax
je 0x406e2a
jmp 0x406e1b
cmp ecx, dword [edi + 8]
jne 0x406e0e
mov ecx, edi
call fcn.00408d90
mov eax, dword [edi + 4]
test eax, eax
je 0x406e2a
lea esi, [ebp - 0x8a8]
mov ecx, 0x104
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x8b0]
add dword [edi + 4], 0x410
mov esi, dword [ebp - 0x8b4]
mov ecx, dword [ebx + 0x504]
inc esi
push esi
call fcn.004124f9
mov ecx, dword [ebx + 0xfe8]
sub ecx, dword [ebx + 0xfe4]
add dword [ebp - 0x8ac], 0x410
mov eax, 0x7e07e07f
imul ecx
sar edx, 9
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x8b4], esi
cmp esi, eax
jb 0x406d2a
mov ecx, dword [ebp - 0x8b0]
mov edx, dword [ecx + 4]
sub edx, dword [ecx]
mov ecx, dword [ebp - 4]
mov eax, 0x7e07e07f
imul edx
sar edx, 9
mov eax, edx
shr eax, 0x1f
pop edi
xor ecx, ebp
add eax, edx
pop esi
call fcn.0043db8a
mov esp, ebp
pop ebp
ret