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

Disassembly:
push 0xffffffffffffffff
push 0x50eb40
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov eax, dword [0x53c1a4]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [0x546fac]
mov edx, dword [eax + 0xc]
xor edi, edi
mov ecx, 0x546fac
mov dword [esp + 0x24], edi
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x34], edi
mov eax, dword [0x546fac]
mov edx, dword [eax + 0xc]
mov ecx, 0x546fac
call edx
add eax, 0x10
mov dword [esp + 0x20], eax
mov byte [esp + 0x34], 1
cmp esi, edi
jne 0x4d7e0c
xor eax, eax
jmp 0x4d7e20
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4d7e11
sub eax, edx
sar eax, 1
mov ebx, eax
push esi
lea eax, [esp + 0x18]
call fcn.004076e0
mov ebx, dword [esp + 0x3c]
lea eax, [esp + 0x20]
push eax
push ebx
call fcn.004d90a0
push eax
call fcn.004d8e00
test eax, eax
jle 0x4d7e54
lea eax, [esp + 0x20]
lea edi, [esp + 0x14]
call fcn.00405050
jmp 0x4d7e65
mov eax, dword [ebx]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.00418e70
mov ebp, dword [esp + 0x14]
push ebp
push ebx
call fcn.004d8140
test eax, eax
jne 0x4d80c7
push eax
push ebp
call fcn.004efd72
add esp, 8
test eax, eax
jne 0x4d80cf
lea eax, [ebp - 0x10]
call fcn.00404fe0
add eax, 0x10
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34], 2
call fcn.00415820
mov edx, dword [0x546fac]
mov eax, dword [edx + 0xc]
mov ecx, 0x546fac
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 0x4d7ee9
mov ecx, 0x105
lea eax, [esp + 0x18]
call fcn.00407670
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
push esi
push 0
push 0x5172c0
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov edi, eax
mov eax, dword [esi - 8]
push eax
push esi
call fcn.004ec7bd
add esp, 8
test eax, eax
jl 0x4d8133
cmp eax, dword [esi - 8]
jg 0x4d8133
xor edx, edx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], dx
test edi, edi
jne 0x4d7f41
push ebp
push 0x5172c4
lea edi, [esp + 0x20]
call fcn.004190d0
mov esi, dword [esp + 0x20]
add esp, 8
jmp 0x4d7f48
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
push ebp
call fcn.004ec7dc
add esp, 8
test eax, eax
je 0x4d7fef
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.MoveFileEx_Rename_file_fail__error:_d
mov ecx, 0x548980
call fcn.004dfa90
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x34]
push ecx
mov ebx, 0x5172fc
call fcn.00418040
add esp, 0x10
mov byte [esp + 0x34], 4
mov eax, dword [eax]
mov edx, dword [esp + 0x3c]
push eax
push edx
call fcn.004d8140
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 0x4d7fc0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test edi, edi
je 0x4d7fd8
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x40]
push edx
mov ebx, 0x517300
jmp 0x4d8064
lea ecx, [esp + 0x18]
call fcn.00406e40
lea ecx, [esp + 0x1c]
call fcn.00406e40
jmp 0x4d80cf
push esi
push str.MoveFileEx_Rename_file_succeed__path:_ws
mov ecx, 0x548980
call fcn.004dfa90
add esp, 8
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push ebp
push ebx
call fcn.004d8140
test eax, eax
jne 0x4d8081
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x2c]
push ecx
mov ebx, 0x517330
call fcn.00418040
add esp, 8
mov byte [esp + 0x34], 5
mov eax, dword [eax]
mov edx, dword [esp + 0x3c]
push eax
push edx
call fcn.004d8140
lea ecx, [esp + 0x28]
mov edi, eax
mov byte [esp + 0x34], 3
call fcn.00406e40
test edi, edi
je 0x4d7fd8
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x40]
push ecx
mov ebx, 0x517334
call fcn.00418040
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.00406e40
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 0x4d80a2
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 0x4d80c7
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 0x4d80f4
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 0x4d8119
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.00402a90
int3