Function at 0x405600
Capabilities:
Check if file exists
Copy file
Get common file path
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x43a032
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xb90
mov eax, dword [0x449260]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0xb9c], eax
lea eax, [esp + 0x50]
mov edi, ecx
push str._temp
push eax
mov dword [esp + 0x1c], edi
call fcn.00417d96
mov esi, dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
add esp, 8
lea ecx, [esp + 0x50]
push ecx
call esi
lea edx, [esp + 0x50]
push str.add_list.txt
push edx
call fcn.00417d6c
add esp, 8
lea ecx, [esp + 0x1c]
call fcn.00432091
xor ebp, ebp
push ebp
push ebp
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x28]
mov dword [esp + 0xbb4], ebp
call fcn.004320a7
test eax, eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
je 0x4058fb
push 0x104
lea ecx, [esp + 0x25c]
push ecx
lea ecx, [esp + 0x24]
call fcn.00432298
test eax, eax
jne 0x4056bb
mov dword [edi + 0x528], 1
jmp 0x405bc1
lea edx, [esp + 0x258]
push edx
call fcn.00418f43
add esp, 4
mov dword [esp + 0x18], eax
push 0x104
lea eax, [esp + 0x25c]
push eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x18], ebp
call fcn.00432298
test eax, eax
je 0x40588d
mov ebp, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
lea ecx, [ecx]
lea ecx, [esp + 0x258]
push ecx
call fcn.00416f06
add esp, 4
lea edx, [esp + 0x794]
push edx
push 0x104
mov word [esp + eax*2 + 0x25e], 0
call ebp
lea eax, [esp + 0x794]
push eax
call esi
lea ecx, [esp + 0x258]
push ecx
lea edx, [esp + 0x798]
push edx
call fcn.00417d6c
add esp, 8
lea eax, [esp + 0x794]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea ecx, [esp + 0x794]
push ecx
call fcn.00416f06
add esp, 4
test eax, eax
je 0x405785
lea edx, [esp + 0x794]
push edx
call fcn.00402df0
add esp, 4
test al, al
je 0x4058aa
lea eax, [esp + 0x58c]
push 0x43b970
push eax
call fcn.00417d96
add esp, 8
lea ecx, [esp + 0x58c]
push ecx
call esi
lea edx, [esp + 0x258]
push edx
lea eax, [esp + 0x590]
push eax
call fcn.00417d6c
lea ecx, [esp + 0x58]
push str._temp
push ecx
call fcn.00417d96
add esp, 0x10
lea edx, [esp + 0x50]
push edx
call esi
lea eax, [esp + 0x258]
push eax
call edi
push eax
lea ecx, [esp + 0x54]
push ecx
call fcn.00417d6c
add esp, 8
lea edx, [esp + 0x58c]
push edx
call ebx
test al, 1
je 0x40580a
and eax, 0xfffffffe
push eax
lea eax, [esp + 0x590]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [esp + 0x50]
push ecx
call ebx
test al, 1
je 0x405824
and eax, 0xfffffffe
push eax
lea edx, [esp + 0x54]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [esp + 0x258]
push 0x43b9a8
push eax
call fcn.00418e37
add esp, 8
test eax, eax
jne 0x40584d
mov ecx, dword [esp + 0x14]
mov byte [ecx + 0x525], 1
call fcn.00405250
push 0
lea ecx, [esp + 0x590]
push ecx
lea edx, [esp + 0x58]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x4058bd
mov ecx, dword [esp + 0x10]
inc ecx
push 0x104
lea eax, [esp + 0x25c]
mov dword [esp + 0x14], ecx
push eax
lea ecx, [esp + 0x24]
call fcn.00432298
test eax, eax
jne 0x405700
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x18], eax
je 0x4058f2
mov ecx, dword [esp + 0x14]
mov dword [ecx + 0x528], 4
jmp 0x405bc1
mov ecx, dword [esp + 0x14]
mov dword [ecx + 0x528], 2
jmp 0x405bc1
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x590]
push ecx
mov dword [edx + 0x528], 3
lea edx, [esp + 0x9a4]
push 0x43bda4
push edx
call fcn.00418b7d
add esp, 0x10
jmp 0x405bc1
lea ecx, [esp + 0x1c]
call fcn.0043242c
lea ecx, [esp + 0x460]
call fcn.0040a950
lea ecx, [esp + 0x38]
mov byte [esp + 0xba8], 1
call fcn.0040fe44
lea edx, [esp + 0x50]
push str._temp
push edx
mov byte [esp + 0xbb0], 2
call fcn.00417d96
add esp, 8
lea eax, [esp + 0x50]
push eax
call esi
lea ecx, [esp + 0x50]
push 0x43bda0
push ecx
call fcn.00417d6c
lea edx, [esp + 0x58]
push str..dfl
push edx
call fcn.00417d6c
add esp, 0x10
push 0
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x40]
call fcn.0040fed9
test eax, eax
je 0x405af5
call fcn.00430dd0
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea edi, [eax + 0x10]
mov dword [esp + 0x18], edi
mov ebp, dword [sym.imp.SHLWAPI.dll_PathRenameExtensionW]
mov byte [esp + 0xba8], 3
lea ecx, [esp + 0x38]
call fcn.0040fc21
mov dword [esp + 0x30], eax
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x3c]
call fcn.004100d8
mov ecx, dword [esp + 0x10]
push ecx
lea ecx, [esp + 0x464]
mov byte [esp + 0xbac], 4
call fcn.0040ac50
test al, al
je 0x405bdc
lea edx, [esp + 0x34]
push edx
lea ecx, [esp + 0x3c]
call fcn.0041017b
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0xbac], 5
call fcn.00404230
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
mov byte [esp + 0xba8], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405a15
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push 0x5c
push 0x5f
lea ecx, [esp + 0x20]
call fcn.00403eb0
lea eax, [esp + 0x258]
push 0x43b970
push eax
call fcn.00417d96
add esp, 8
lea ecx, [esp + 0x258]
push ecx
call esi
mov edi, dword [esp + 0x18]
lea edx, [esp + 0x258]
push edi
push edx
call fcn.00417d6c
add esp, 8
push str..hed
lea eax, [esp + 0x25c]
push eax
call ebp
lea ecx, [esp + 0x258]
push ecx
call ebx
test al, 1
je 0x405a85
and eax, 0xfffffffe
push eax
lea edx, [esp + 0x25c]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [esp + 0x258]
push eax
lea ecx, [esp + 0x464]
call fcn.0040a9c0
or edx, 0xffffffff
test eax, eax
mov byte [esp + 0xba8], 3
jl 0x405c3f
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405ac7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x30]
test eax, eax
jne 0x405993
lea eax, [edi - 0x10]
mov byte [esp + 0xba8], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405af5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0x460]
call fcn.00409a80
lea ecx, [esp + 0x38]
call fcn.0040fb51
lea eax, [esp + 0x50]
push str._temp
push eax
call fcn.00417d96
add esp, 8
lea ecx, [esp + 0x50]
push ecx
call esi
lea edx, [esp + 0x50]
push str.eco.ver
push edx
call fcn.00417d6c
add esp, 8
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push str.eco.ver
call ebx
test al, 1
je 0x405b5a
and eax, 0xfffffffe
push eax
push str.eco.ver
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [esp + 0x50]
push ecx
call ebx
test al, 1
je 0x405b74
and eax, 0xfffffffe
push eax
lea edx, [esp + 0x54]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
push str.eco.ver
lea eax, [esp + 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
mov byte [esp + 0xba8], 1
jne 0x405c4f
mov ecx, dword [esp + 0x14]
mov dword [ecx + 0x528], 7
lea ecx, [esp + 0x38]
call fcn.0040fe6a
lea ecx, [esp + 0x460]
mov byte [esp + 0xba8], 0
call fcn.0040a9b0
lea ecx, [esp + 0x1c]
mov dword [esp + 0xba8], 0xffffffff
call fcn.00432468
xor al, al
jmp 0x405c82
mov eax, dword [esp + 0x14]
mov dword [eax + 0x528], 5
mov byte [esp + 0xba8], 3
or edx, 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405c10
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [edi - 0x10]
mov byte [esp + 0xba8], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405c32
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov byte [esp + 0xba8], 1
jmp 0x405ba4
mov eax, dword [esp + 0x14]
mov dword [eax + 0x528], 6
jmp 0x405bf5
lea ecx, [esp + 0x38]
call fcn.0040fe6a
lea ecx, [esp + 0x460]
mov byte [esp + 0xba8], 0
call fcn.0040a9b0
lea ecx, [esp + 0x1c]
mov dword [esp + 0xba8], 0xffffffff
call fcn.00432468
mov al, 1
mov ecx, dword [esp + 0xba0]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0xb90]
pop ebx
call fcn.00417c0f
add esp, 0xb9c
ret