Function at 0x46f380
Capabilities:
Move file
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x521a07
mov eax, dword fs:[0]
push eax
sub esp, 0x374
mov eax, dword [0x589560]
xor eax, esp
mov dword [esp + 0x370], eax
push ebp
push esi
push edi
mov eax, dword [0x589560]
xor eax, esp
push eax
lea eax, [esp + 0x384]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x394]
mov edi, ecx
lea ecx, [esp + 0x258]
call fcn.0046a650
xor eax, eax
cmp dword [esp + 0x378], eax
je 0x46f3e1
mov dword [esp + 0x378], eax
mov ecx, 1
lea esi, [esp + 0x260]
mov dword [esp + 0x25c], eax
call fcn.0046b260
cmp byte [esp + 0x374], 0
lea eax, [esp + 0x264]
jne 0x46f411
mov eax, dword [esp + 0x260]
xor esi, esi
mov word [eax + 4], si
lea eax, [esp + 0x258]
push eax
mov ecx, edi
mov dword [esp + 0x390], esi
call fcn.0046f810
test al, al
je 0x46f479
push esi
push ebx
lea ecx, [esp + 0x260]
call fcn.0046ee80
test al, al
jne 0x46f479
cmp byte [esp + 0x374], al
mov dword [esp + method.t_str.virtual_0], vtable.t_str.0
jne 0x46f472
mov eax, dword [esp + 0x260]
lea ecx, [esp + 0x264]
cmp eax, ecx
je 0x46f472
push eax
call fcn.004fdda1
add esp, 4
xor al, al
jmp 0x46f63b
cmp byte [edi + 0x11c], 0
lea ecx, [edi + 0xc]
jne 0x46f488
mov ecx, dword [edi + 8]
cmp byte [ebp + 0x11c], 0
lea eax, [ebp + 0xc]
jne 0x46f497
mov eax, dword [ebp + 8]
push 0xb
add ecx, 4
push ecx
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x46f5c2
cmp byte [edi + 0x11c], al
je 0x46f4bc
add edi, 0xc
jmp 0x46f4bf
mov edi, dword [edi + 8]
lea ecx, [esp + 0x134]
call fcn.0046a650
lea eax, [edi + 4]
lea edx, [esp + 0x134]
call fcn.0046a7f0
cmp byte [ebp + 0x11c], 0
lea esi, [ebp + 0xc]
jne 0x46f4e9
mov esi, dword [ebp + 8]
lea ecx, [esp + 0x10]
call fcn.0046a650
lea eax, [esi + 4]
lea edx, [esp + 0x10]
call fcn.0046a7f0
mov byte [esp + 0x38c], 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, ebx
mov edi, eax
call fcn.00470820
mov esi, eax
call fcn.00471650
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, ebx
call fcn.00470820
lea edx, [esp + 0x134]
push edx
lea ecx, [esp + 0x14]
push ecx
push 0x562cb4
mov ecx, eax
call fcn.00471850
cmp byte [esp + 0x12c], 0
mov esi, vtable.t_str.0
mov dword [esp + 0x10], esi
jne 0x46f56c
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x1c]
cmp eax, edx
je 0x46f56c
push eax
call fcn.004fdda1
add esp, 4
cmp byte [esp + 0x250], 0
mov dword [esp + 0x134], esi
jne 0x46f598
mov eax, dword [esp + 0x13c]
lea ecx, [esp + 0x140]
cmp eax, ecx
je 0x46f598
push eax
call fcn.004fdda1
add esp, 4
cmp byte [esp + 0x374], 0
mov dword [esp + 0x258], esi
jne 0x46f472
mov eax, dword [esp + 0x260]
lea edx, [esp + 0x264]
cmp eax, edx
jmp 0x46f467
cmp byte [edi + 0x11c], 0
lea eax, [edi + 0xc]
jne 0x46f5d1
mov eax, dword [edi + 8]
push 0x80
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp byte [edi + 0x11c], 0
lea eax, [edi + 0xc]
jne 0x46f5ef
mov eax, dword [edi + 8]
push 0x10000000
add eax, 4
push 1
push eax
call fcn.00476a50
add esp, 0xc
mov eax, edi
call fcn.0046ffe0
cmp byte [esp + 0x374], 0
mov dword [esp + method.t_str.virtual_0], vtable.t_str.0
jne 0x46f639
mov eax, dword [esp + 0x260]
lea ecx, [esp + 0x264]
cmp eax, ecx
je 0x46f639
push eax
call fcn.004fdda1
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x384]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x370]
xor ecx, esp
call fcn.004fe05a
add esp, 0x380
ret 4