Function at 0x4046a0
Capabilities:
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x432493
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x8c
push esi
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [esi + eax + 1]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
shl ecx, 1
push ecx
call fcn.0041ddab
add esp, 4
mov dword [ebp - 0x38], eax
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x1c]
shl eax, 1
push eax
push 0
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.0041fdd0
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push edx
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [esi + eax + 1]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
shl edx, 1
push edx
call fcn.0041ddab
add esp, 4
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x1c]
shl ecx, 1
push ecx
push 0
mov edx, dword [ebp - 0x18]
push edx
call fcn.0041fdd0
add esp, 0xc
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov eax, dword [edx + 8]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea edx, [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x18]
push eax
lea ecx, [ebp - 0x98]
call fcn.00401560
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x44], ecx
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x44]
push edx
mov eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp - 0x80]
call fcn.00401560
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x4c], ecx
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x4c]
push edx
call fcn.00404a90
add esp, 0xc
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x80]
call fcn.004016c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x98]
call fcn.004016c0
cmp dword [ebp - 0x20], 0
je 0x404996
push 0x80
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x404892
mov dword [ebp - 0x28], 1
jmp 0x40489b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
lea edx, [ebp - 0x50]
push edx
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.0040a300
add esp, 0x14
mov dword [ebp - 0x24], eax
lea edx, [ebp - 0x58]
push edx
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x68], esp
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov edx, dword [eax]
push edx
call fcn.00401560
call fcn.00404610
add esp, 0x24
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x40496a
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
cmp dword [edx + 0xc], 2
jne 0x404909
mov eax, dword [ebp - 0x10]
mov dword [eax + 8], 4
jmp 0x404935
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
cmp dword [edx + 0xc], 8
jne 0x404920
mov eax, dword [ebp - 0x10]
mov dword [eax + 8], 0xa
jmp 0x404935
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
cmp dword [edx + 0xc], 6
jne 0x404935
mov eax, dword [ebp - 0x10]
mov dword [eax + 8], 8
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x34]
mov dword [ecx + 4], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x10]
mov eax, dword [ecx + 0x14]
mov dword [edx + 0xc], eax
mov ecx, dword [ebp - 0x10]
mov dword [ecx], 1
push 0
mov edx, dword [ebp - 0x58]
push edx
mov eax, dword [ebp - 0x10]
push eax
call fcn.00404ff0
add esp, 0xc
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.00401850
add esp, 4
mov dword [ebp - 0x20], 0
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x5c], edx
mov eax, dword [ebp - 0x5c]
push eax
call fcn.0041ddb4
add esp, 4
mov dword [ebp - 0x24], 0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
call fcn.00401850
add esp, 4
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x60], ecx
mov edx, dword [ebp - 0x60]
push edx
call fcn.0041ddb4
add esp, 4
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x64], eax
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.0041ddb4
add esp, 4
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret