Function at 0x4053a2
Capabilities:
Create thread
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
mov dl, byte [0x4182fc]
push ebx
push esi
push edi
push 0xf
xor eax, eax
pop ecx
lea edi, [ebp - 0x67]
mov byte [ebp - 0x68], dl
push 7
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x27]
mov byte [ebp - 0x28], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
xor ebx, ebx
push 6
push edi
mov dword [ebp - 8], 4
mov dword [ebp - 4], ebx
call dword [0x419c64]
test eax, eax
jne 0x40541f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 4]
mov esi, eax
push edi
push esi
push str.RestoreDiskLite._1.__08X.__08X.__08X.
push 0x4182fc
push 1
call fcn.00407279
add esp, 0x18
push esi
jmp 0x405635
cmp dword [ebp - 4], ebx
je 0x40542b
push 0x13
jmp 0x405635
push 0x18c
mov esi, 0x418620
push ebx
push esi
call fcn.0040b6c0
mov eax, dword [ebp + 8]
add esp, 0xc
mov dword [0x418728], edi
mov edi, 0x100
mov dword [0x418720], eax
mov eax, dword [ebp + 0x10]
push edi
push esi
mov dword [0x418724], eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x5c
push esi
call fcn.0040b5f0
pop ecx
test eax, eax
pop ecx
je 0x40547d
push 0x5c
push esi
call fcn.0040b5f0
pop ecx
mov byte [eax + 1], bl
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push edi
push ebx
push esi
call fcn.0040b6c0
lea eax, [ebp - 0xa8]
push 0x40
push eax
push 0x586
call fcn.00406e92
lea eax, [ebp - 0x68]
push 0x40
push eax
push 0x8fe
call fcn.00406e92
lea eax, [ebp - 0x28]
push 0x4142a8
push eax
call fcn.0040b4f0
lea eax, [ebp - 0x28]
push ebx
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0xa8]
push esi
push eax
push dword [ebp + 8]
call fcn.0040afef
add esp, 0x44
test eax, eax
jne 0x405508
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea eax, [ebp - 0xa8]
push esi
push eax
push edi
push str.RestoreDiskLite._2.__08X.__s.__s.
push 0x4182fc
push 1
call fcn.00407279
add esp, 0x18
push edi
jmp 0x405635
mov edi, 0x418878
push edi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push edi
mov edi, 0x4182fc
push str.RestoreDiskLite._3.__s.
push edi
push 3
call fcn.00407279
add esp, 0x10
push 0x134
push 0x414144
push 0xffffffffffffffff
push ebx
push 0x57e
call fcn.00406e92
add esp, 0xc
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 7
je 0x405607
push 0xffffffffffffffff
push ebx
push 0x57d
call fcn.00406e92
add esp, 0xc
push eax
push dword [ebp + 8]
push 0xfffffffffffffffa
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongA]
push eax
call fcn.0040289b
add esp, 0xc
test eax, eax
je 0x405607
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.RestoreDiskLite._5.__08X.
push edi
push 3
call fcn.00407279
add esp, 0x10
push 0x419154
push ebx
push esi
push 0x4051bb
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
mov dword [0x41915c], eax
jne 0x4055e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 8], eax
call fcn.00402923
push 0x18c
push ebx
push esi
call fcn.0040b6c0
add esp, 0xc
push dword [ebp + 8]
push str.RestoreDiskLite._6.__08X.
jmp 0x405627
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push ebx
push str.RestoreDiskLite._7.__08X.
push edi
push 3
call fcn.00407279
add esp, 0x10
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 1
pop eax
jmp 0x40563d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x18c
push ebx
push esi
mov dword [ebp + 8], eax
call fcn.0040b6c0
add esp, 0xc
push dword [ebp + 8]
push str.RestoreDiskLite._4.__08X.
push edi
push 1
call fcn.00407279
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret