Function at 0x405910
Capabilities:
Copy file
Delete file
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x43d29c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x35c
mov eax, dword [0x45c464]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], eax
xor ebx, ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0x374], ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], eax
push 0x467890
lea ecx, [esp + 0x14]
mov byte [esp + 0x378], 3
mov byte [esp + 0x12c], bl
mov byte [esp + 0x28], bl
call fcn.004357a3
push str.Temp_
lea ecx, [esp + 0x14]
call fcn.0043591c
mov ebp, dword [esp + 0x380]
lea ecx, [esp + 0x10]
push ebp
call fcn.0043591c
push 0x467890
lea ecx, [esp + 0x1c]
call fcn.004357a3
mov edi, dword [esp + 0x37c]
mov esi, 0x45e508
mov eax, edi
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4059cd
cmp cl, bl
je 0x4059c9
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4059cd
add eax, 2
add esi, 2
cmp cl, bl
jne 0x4059a9
xor eax, eax
jmp 0x4059d2
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x4059ec
push 0x104
lea ecx, [esp + 0x1c]
call fcn.00435970
lea edx, [esp + 0x24]
mov edi, eax
jmp 0x4059f0
lea edx, [esp + 0x24]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x24]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
call fcn.00435688
call fcn.00406140
add esp, 4
lea eax, [esp + 0x24]
lea ecx, [esp + 0x14]
push eax
call fcn.004357a3
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x24]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x104
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
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
call fcn.00435970
mov esi, eax
push esi
push ebx
push 0x44bdf4
push esi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [esp + 0x22c]
lea ecx, [esp + 0x24]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
or edi, 0xffffffff
cmp eax, edi
je 0x405b11
mov edx, dword [esp + 0x37c]
push edx
push ebp
push 0x467278
call fcn.00406480
lea eax, [esp + 0x30]
push esi
push eax
call fcn.0042049b
add esp, 0x14
test eax, eax
jne 0x405b26
push 0x46778c
push ebp
call fcn.00406230
add esp, 8
cmp eax, ebx
je 0x405b04
push eax
lea ecx, [esp + 0x12c]
push str.File_dBack
push ecx
call fcn.0042018d
add esp, 0xc
lea edx, [esp + 0x128]
push 0x46778c
push esi
push edx
push str.FileUpdate
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x24]
push ebx
push eax
push ecx
jmp 0x405b1c
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x24]
push ebx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x405b6c
lea ecx, [esp + 0x1c]
mov byte [esp + 0x374], 2
call fcn.0043561a
lea ecx, [esp + 0x14]
mov byte [esp + 0x374], 1
call fcn.0043561a
lea ecx, [esp + 0x18]
mov byte [esp + 0x374], bl
call fcn.0043561a
lea ecx, [esp + 0x10]
mov dword [esp + 0x374], edi
call fcn.0043561a
xor eax, eax
jmp 0x405bc0
lea ecx, [esp + 0x24]
push ecx
call fcn.00406b20
add esp, 4
lea ecx, [esp + 0x1c]
mov byte [esp + 0x374], 2
call fcn.0043561a
lea ecx, [esp + 0x14]
mov byte [esp + 0x374], 1
call fcn.0043561a
lea ecx, [esp + 0x18]
mov byte [esp + 0x374], bl
call fcn.0043561a
lea ecx, [esp + 0x10]
mov dword [esp + 0x374], edi
call fcn.0043561a
mov eax, 1
mov ecx, dword [esp + 0x36c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x368
ret