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

Disassembly:
push 0xffffffffffffffff
push 0x50e2b0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov eax, dword [0x53a1a4]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [0x544fac]
mov edx, dword [eax + 0xc]
xor edi, edi
mov ecx, 0x544fac
mov dword [esp + 0x24], edi
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x34], edi
mov eax, dword [0x544fac]
mov edx, dword [eax + 0xc]
mov ecx, 0x544fac
call edx
add eax, 0x10
mov dword [esp + 0x20], eax
mov byte [esp + 0x34], 1
cmp esi, edi
jne 0x4d762c
xor eax, eax
jmp 0x4d7640
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4d7631
sub eax, edx
sar eax, 1
mov ebx, eax
push esi
lea eax, [esp + 0x18]
call fcn.00407680
mov ebx, dword [esp + 0x3c]
lea eax, [esp + 0x20]
push eax
push ebx
call fcn.004d88c0
push eax
call fcn.004d8620
test eax, eax
jle 0x4d7674
lea eax, [esp + 0x20]
lea edi, [esp + 0x14]
call fcn.00404f20
jmp 0x4d7685
mov eax, dword [ebx]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.00418990
mov ebp, dword [esp + 0x14]
push ebp
push ebx
call fcn.004d7960
test eax, eax
jne 0x4d78e7
push eax
push ebp
call fcn.004ef642
add esp, 8
test eax, eax
jne 0x4d78ef
lea eax, [ebp - 0x10]
call fcn.00404eb0
add eax, 0x10
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34], 2
call fcn.004152c0
mov edx, dword [0x544fac]
mov eax, dword [edx + 0xc]
mov ecx, 0x544fac
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 0x4d7709
mov ecx, 0x105
lea eax, [esp + 0x18]
call fcn.00407610
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
push esi
push 0
push 0x5162c0
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov edi, eax
mov eax, dword [esi - 8]
push eax
push esi
call fcn.004ec08d
add esp, 8
test eax, eax
jl 0x4d7953
cmp eax, dword [esi - 8]
jg 0x4d7953
xor edx, edx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], dx
test edi, edi
jne 0x4d7761
push ebp
push 0x5162c4
lea edi, [esp + 0x20]
call fcn.00418bf0
mov esi, dword [esp + 0x20]
add esp, 8
jmp 0x4d7768
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
push ebp
call fcn.004ec0ac
add esp, 8
test eax, eax
je 0x4d780f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.MoveFileEx_Rename_file_fail__error:_d
mov ecx, 0x546980
call fcn.004df340
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x34]
push ecx
mov ebx, 0x5162fc
call fcn.00417ae0
add esp, 0x10
mov byte [esp + 0x34], 4
mov eax, dword [eax]
mov edx, dword [esp + 0x3c]
push eax
push edx
call fcn.004d7960
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 0x4d77e0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test edi, edi
je 0x4d77f8
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x40]
push edx
mov ebx, 0x516300
jmp 0x4d7884
lea ecx, [esp + 0x18]
call fcn.00406cf0
lea ecx, [esp + 0x1c]
call fcn.00406cf0
jmp 0x4d78ef
push esi
push str.MoveFileEx_Rename_file_succeed__path:_ws
mov ecx, 0x546980
call fcn.004df340
add esp, 8
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push ebp
push ebx
call fcn.004d7960
test eax, eax
jne 0x4d78a1
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x2c]
push ecx
mov ebx, 0x516330
call fcn.00417ae0
add esp, 8
mov byte [esp + 0x34], 5
mov eax, dword [eax]
mov edx, dword [esp + 0x3c]
push eax
push edx
call fcn.004d7960
lea ecx, [esp + 0x28]
mov edi, eax
mov byte [esp + 0x34], 3
call fcn.00406cf0
test edi, edi
je 0x4d77f8
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x40]
push ecx
mov ebx, 0x516334
call fcn.00417ae0
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.00406cf0
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 0x4d78c2
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 0x4d78e7
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 0x4d7914
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 0x4d7939
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.004029f0
int3