Function at 0x46a330
Capabilities:
Delete file
Get common file path
Move file

Disassembly:
push 0xffffffffffffffff
push 0x49df80
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c02a0]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [0x4c45ac]
mov edx, dword [eax + 0xc]
xor edi, edi
mov ecx, 0x4c45ac
mov dword [esp + 0x24], edi
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x34], edi
mov eax, dword [0x4c45ac]
mov edx, dword [eax + 0xc]
mov ecx, 0x4c45ac
call edx
add eax, 0x10
mov dword [esp + 0x20], eax
mov byte [esp + 0x34], 1
cmp esi, edi
jne 0x46a39c
xor eax, eax
jmp 0x46a3b0
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x46a3a1
sub eax, edx
sar eax, 1
mov ebx, eax
push esi
lea eax, [esp + 0x18]
call fcn.004076a0
mov ebx, dword [esp + 0x3c]
lea eax, [esp + 0x20]
push eax
push ebx
call fcn.0046b6e0
push eax
call fcn.0046b440
test eax, eax
jle 0x46a3e4
lea eax, [esp + 0x20]
lea edi, [esp + 0x14]
call fcn.00404fc0
jmp 0x46a3f5
mov eax, dword [ebx]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.00412690
mov ebp, dword [esp + 0x14]
push ebp
push ebx
call fcn.0046a6d0
test eax, eax
jne 0x46a657
push eax
push ebp
call fcn.0048107a
add esp, 8
test eax, eax
jne 0x46a65f
lea eax, [ebp - 0x10]
call fcn.00404f50
add eax, 0x10
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34], 2
call fcn.0046a870
mov edx, dword [0x4c45ac]
mov eax, dword [edx + 0xc]
mov ecx, 0x4c45ac
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x18], esi
mov byte [esp + 0x34], 3
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x105
or eax, ecx
jge 0x46a479
mov ecx, 0x105
lea eax, [esp + 0x18]
call fcn.00407630
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
push esi
push 0
push 0x4a50ec
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov edi, eax
mov eax, dword [esi - 8]
push eax
push esi
call fcn.0047e15f
add esp, 8
test eax, eax
jl 0x46a6c3
cmp eax, dword [esi - 8]
jg 0x46a6c3
xor edx, edx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], dx
test edi, edi
jne 0x46a4d1
push ebp
push 0x4a50f0
lea edi, [esp + 0x20]
call fcn.004128d0
mov esi, dword [esp + 0x20]
add esp, 8
jmp 0x46a4d8
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
push ebp
call fcn.0047e17e
add esp, 8
test eax, eax
je 0x46a57f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.MoveFileEx_Rename_file_fail__error:_d
mov ecx, 0x4c5908
call fcn.00472890
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x34]
push ecx
mov ebx, 0x4a5128
call fcn.00412200
add esp, 0x10
mov byte [esp + 0x34], 4
mov eax, dword [eax]
mov edx, dword [esp + 0x3c]
push eax
push edx
call fcn.0046a6d0
mov edi, eax
mov byte [esp + 0x34], 3
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46a550
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test edi, edi
je 0x46a568
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x40]
push edx
mov ebx, 0x4a512c
jmp 0x46a5f4
lea ecx, [esp + 0x18]
call fcn.00406e10
lea ecx, [esp + 0x1c]
call fcn.00406e10
jmp 0x46a65f
push esi
push str.MoveFileEx_Rename_file_succeed__path:_ws
mov ecx, 0x4c5908
call fcn.00472890
add esp, 8
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push ebp
push ebx
call fcn.0046a6d0
test eax, eax
jne 0x46a611
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x2c]
push ecx
mov ebx, 0x4a515c
call fcn.00412200
add esp, 8
mov byte [esp + 0x34], 5
mov eax, dword [eax]
mov edx, dword [esp + 0x3c]
push eax
push edx
call fcn.0046a6d0
lea ecx, [esp + 0x28]
mov edi, eax
mov byte [esp + 0x34], 3
call fcn.00406e10
test edi, edi
je 0x46a568
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x40]
push ecx
mov ebx, 0x4a5160
call fcn.00412200
mov eax, dword [eax]
add esp, 8
push 5
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea ecx, [esp + 0x3c]
call fcn.00406e10
add esi, 0xfffffff0
mov byte [esp + 0x34], 2
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x46a632
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov byte [esp + 0x34], 1
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46a657
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x24], 1
mov byte [esp + 0x34], 0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46a684
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add ebp, 0xfffffff0
mov dword [esp + 0x34], 0xffffffff
lea ecx, [ebp + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46a6a9
mov ecx, dword [ebp]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebp
call edx
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 4
push 0x80070057
call fcn.00402890
int3