Function at 0x4020a0
Capabilities:
Copy file
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x41fc18
mov eax, dword fs:[0]
push eax
sub esp, 0x1b0
mov eax, dword [0x427040]
xor eax, esp
mov dword [esp + 0x1ac], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x427040]
xor eax, esp
push eax
lea eax, [esp + 0x1c4]
mov dword fs:[0], eax
mov eax, dword [esp + 0x1d4]
mov ebp, dword [esp + 0x1d8]
mov dword [ecx], eax
sub eax, 1
mov dword [esp + 0x14], ecx
jne 0x4025a4
mov ebx, 0xf
xor edi, edi
mov eax, ebp
mov dword [esp + 0xa0], ebx
mov dword [esp + 0x9c], edi
mov byte [esp + 0x8c], 0
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x402120
sub eax, edx
push eax
push ebp
lea ecx, [esp + 0x90]
call fcn.00401af0
push ebx
push str.PartAssist.exe
lea eax, [esp + 0x90]
mov dword [esp + 0x1d4], edi
call fcn.00404e50
mov eax, dword [esp + 0x8c]
mov esi, 0x10
cmp dword [esp + 0xa0], esi
jae 0x40216e
lea eax, [esp + 0x8c]
push eax
call fcn.0040a530
mov ecx, eax
mov dword [esp + 0x80], edi
mov dword [esp + 0x84], ebx
mov byte [esp + 0x70], 0
lea edi, [ecx + 1]
lea esp, [esp]
mov dl, byte [ecx]
add ecx, 1
test dl, dl
jne 0x402190
sub ecx, edi
push ecx
push eax
lea ecx, [esp + 0x74]
call fcn.00401af0
mov byte [esp + 0x1cc], 1
cmp dword [esp + 0x84], esi
mov ebx, dword [esp + 0x70]
jae 0x4021bf
lea ebx, [esp + 0x70]
mov esi, dword [esp + 0x14]
push 0x80
add esi, 0x54
lea edi, [esi + 0x104]
push 0
push edi
call fcn.00413e90
push ebx
push 0x422d94
mov ecx, 0x80
call fcn.00401ee0
add esp, 0x14
xor ebx, ebx
mov eax, ebp
mov dword [esp + 0x68], 0xf
mov dword [esp + 0x64], ebx
mov byte [esp + 0x54], bl
lea ecx, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x402203
sub eax, ecx
push eax
push ebp
lea ecx, [esp + 0x58]
call fcn.00401af0
push 8
push str.cfg.ini
lea eax, [esp + 0x58]
mov byte [esp + 0x1d4], 2
call fcn.00404e50
mov eax, dword [esi]
sub eax, 2
je 0x40251f
sub eax, 1
je 0x40239f
sub eax, 1
jne 0x402538
push 0xff
mov byte [esp + 0xc4], al
lea eax, [esp + 0xc5]
push ebx
push eax
call fcn.00413e90
add esp, 0xc
push 0x100
lea ecx, [esp + 0xc4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea edx, [esp + 0xc0]
push edx
lea ecx, [esp + 0xa8]
call fcn.004018e0
push 0x14
push str.TempPartAssist.exe
lea eax, [esp + 0xac]
mov byte [esp + 0x1d4], 5
call fcn.00404e50
mov eax, dword [esp + 0xa8]
mov edi, 0x10
cmp dword [esp + 0xbc], edi
jae 0x4022c9
lea eax, [esp + 0xa8]
push eax
call fcn.0040a530
push eax
lea ecx, [esp + 0x1c]
call fcn.004018e0
mov byte [esp + 0x1cc], 6
cmp dword [esp + 0x30], edi
mov eax, dword [esp + 0x1c]
jae 0x4022ef
lea eax, [esp + 0x1c]
push eax
mov eax, esi
call fcn.0040a030
lea eax, [esp + 0xc0]
push eax
lea ecx, [esp + 0x38]
call fcn.004018e0
push 0xd
push str.Tempcfg.ini
lea eax, [esp + 0x3c]
mov byte [esp + 0x1d4], 7
call fcn.00404e50
cmp dword [esp + 0x4c], edi
mov eax, dword [esp + 0x38]
jae 0x40232e
lea eax, [esp + 0x38]
mov esi, dword [esp + 0x14]
push eax
call fcn.00404270
cmp dword [esp + 0x4c], edi
jb 0x40234b
mov ecx, dword [esp + 0x38]
push ecx
call fcn.004127aa
add esp, 4
cmp dword [esp + 0x30], edi
mov esi, 0xf
mov dword [esp + 0x4c], esi
mov dword [esp + 0x48], ebx
mov byte [esp + 0x38], 0
jb 0x402370
mov edx, dword [esp + 0x1c]
push edx
call fcn.004127aa
add esp, 4
cmp dword [esp + 0xbc], edi
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], 0
jb 0x40253d
mov eax, dword [esp + 0xa8]
push eax
call fcn.004127aa
add esp, 4
jmp 0x40253d
push 0xff
lea ecx, [esp + 0xc5]
push ebx
push ecx
mov byte [esp + 0xcc], 0
call fcn.00413e90
add esp, 0xc
push 0x100
lea edx, [esp + 0xc4]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push ebp
lea ecx, [esp + 0x38]
call fcn.004018e0
push 0xf
push str.PartAssist.exe
lea eax, [esp + 0x3c]
mov byte [esp + 0x1d4], 3
call fcn.00404e50
lea eax, [esp + 0xc0]
push eax
lea ecx, [esp + 0x1c]
call fcn.004018e0
push 0x14
push str.TempPartAssist.exe
lea eax, [esp + 0x20]
mov byte [esp + 0x1d4], 4
call fcn.00404e50
mov ecx, dword [esp + 0x1c]
mov edi, 0x10
cmp dword [esp + 0x30], edi
jae 0x40242e
lea ecx, [esp + 0x1c]
cmp dword [esp + 0x4c], edi
mov eax, dword [esp + 0x38]
jae 0x40243c
lea eax, [esp + 0x38]
mov esi, dword [sym.imp.KERNEL32.dll_CopyFileA]
push ebx
push ecx
push eax
call esi
mov eax, ebp
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x402450
sub eax, edx
push eax
push ebp
lea ecx, [esp + 0x3c]
call fcn.00401af0
push 8
push str.cfg.ini
lea eax, [esp + 0x3c]
call fcn.00404e50
lea eax, [esp + 0xc0]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x402480
sub eax, edx
push eax
lea ecx, [esp + 0xc4]
push ecx
lea ecx, [esp + 0x20]
call fcn.00401af0
push 0xd
push str.Tempcfg.ini
lea eax, [esp + 0x20]
call fcn.00404e50
cmp dword [esp + 0x30], edi
mov ecx, dword [esp + 0x1c]
jae 0x4024bb
lea ecx, [esp + 0x1c]
cmp dword [esp + 0x4c], edi
mov eax, dword [esp + 0x38]
jae 0x4024c9
lea eax, [esp + 0x38]
push ebx
push ecx
push eax
call esi
cmp dword [esp + 0x68], edi
mov eax, dword [esp + 0x54]
jae 0x4024dc
lea eax, [esp + 0x54]
mov esi, dword [esp + 0x14]
push eax
call fcn.00404270
cmp dword [esp + 0x30], edi
jb 0x4024f9
mov edx, dword [esp + 0x1c]
push edx
call fcn.004127aa
add esp, 4
cmp dword [esp + 0x4c], edi
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], 0
jb 0x402538
mov eax, dword [esp + 0x38]
push eax
call fcn.004127aa
add esp, 4
jmp 0x40253d
cmp dword [esp + 0x68], 0x10
mov eax, dword [esp + 0x54]
jae 0x40252e
lea eax, [esp + 0x54]
mov esi, dword [esp + 0x14]
push eax
call fcn.00404270
mov edi, 0x10
cmp dword [esp + 0x68], edi
jb 0x402550
mov ecx, dword [esp + 0x54]
push ecx
call fcn.004127aa
add esp, 4
cmp dword [esp + 0x84], edi
mov esi, 0xf
mov dword [esp + 0x68], esi
mov dword [esp + 0x64], ebx
mov byte [esp + 0x54], 0
jb 0x402578
mov edx, dword [esp + 0x70]
push edx
call fcn.004127aa
add esp, 4
cmp dword [esp + 0xa0], edi
mov dword [esp + 0x84], esi
mov dword [esp + 0x80], ebx
mov byte [esp + 0x70], 0
jb 0x4025a4
mov eax, dword [esp + 0x8c]
push eax
call fcn.004127aa
add esp, 4
mov ecx, dword [esp + 0x1c4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1ac]
xor ecx, esp
call fcn.0041288d
add esp, 0x1bc
ret 8