Function at 0x40ea70
Capabilities:
Move file
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x498867
mov eax, dword fs:[0]
push eax
sub esp, 0x37c
mov eax, dword [0x4c5280]
xor eax, esp
mov dword [esp + 0x378], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c5280]
xor eax, esp
push eax
lea eax, [esp + 0x390]
mov dword fs:[0], eax
mov eax, dword [esp + 0x3a4]
mov ebp, dword [esp + 0x3a0]
mov edi, ecx
lea ecx, [esp + 0x264]
mov dword [esp + 0x18], eax
call fcn.00410770
xor ebx, ebx
cmp dword [esp + 0x384], ebx
je 0x40eadd
mov dword [esp + 0x384], ebx
mov ecx, 1
lea esi, [esp + 0x26c]
mov dword [esp + 0x268], ebx
call fcn.00411640
lea eax, [esp + 0x270]
cmp byte [esp + 0x380], bl
jne 0x40eb0c
mov eax, dword [esp + 0x26c]
xor ecx, ecx
mov word [eax + 4], cx
mov dword [esp + 0x398], ebx
push edi
lea ebx, [esp + 0x268]
call fcn.0040edb0
mov ebx, dword [esp + 0x18]
test al, al
je 0x40eb77
push 0
push ebx
lea ecx, [esp + 0x26c]
call fcn.0040e8f0
test al, al
jne 0x40eb77
mov dword [esp + method.t_str.virtual_0], vtable.t_str.0
cmp byte [esp + 0x380], al
jne 0x40eb70
mov eax, dword [esp + 0x26c]
lea edx, [esp + 0x270]
cmp eax, edx
je 0x40eb70
push eax
call fcn.00475125
add esp, 4
xor al, al
jmp 0x40ed18
cmp byte [edi + 0x11c], 0
lea ecx, [edi + 0xc]
jne 0x40eb86
mov ecx, dword [edi + 8]
cmp byte [ebp + 0x11c], 0
lea eax, [ebp + 0xc]
jne 0x40eb95
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 0x40ecba
cmp byte [edi + 0x11c], al
je 0x40ebba
add edi, 0xc
jmp 0x40ebbd
mov edi, dword [edi + 8]
lea ecx, [esp + 0x1c]
call fcn.00410770
lea eax, [edi + 4]
lea edx, [esp + 0x1c]
call fcn.00410960
cmp byte [ebp + 0x11c], 0
lea esi, [ebp + 0xc]
jne 0x40ebe1
mov esi, dword [ebp + 8]
lea ecx, [esp + 0x140]
call fcn.00410770
lea eax, [esi + 4]
lea edx, [esp + 0x140]
call fcn.00410960
mov byte [esp + 0x398], 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, ebx
call fcn.0040f780
mov esi, eax
call fcn.004103f0
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
call fcn.0040f780
mov esi, eax
lea eax, [esp + 0x140]
push eax
lea eax, [esp + 0x20]
call fcn.00410630
cmp byte [esp + 0x25c], 0
mov esi, vtable.t_str.0
mov dword [esp + 0x140], esi
jne 0x40ec6d
mov eax, dword [esp + 0x148]
lea ecx, [esp + 0x14c]
cmp eax, ecx
je 0x40ec6d
push eax
call fcn.00475125
add esp, 4
cmp byte [esp + 0x138], 0
mov dword [esp + 0x1c], esi
jne 0x40ec90
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x28]
cmp eax, edx
je 0x40ec90
push eax
call fcn.00475125
add esp, 4
cmp byte [esp + 0x380], 0
mov dword [esp + 0x264], esi
jne 0x40eb70
mov eax, dword [esp + 0x26c]
lea ecx, [esp + 0x270]
cmp eax, ecx
jmp 0x40eb65
cmp byte [edi + 0x11c], 0
lea eax, [edi + 0xc]
jne 0x40ecc9
mov eax, dword [edi + 8]
push 0x80
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, edi
call fcn.0040f6d0
mov eax, edi
call fcn.0040f670
cmp byte [esp + 0x380], 0
mov dword [esp + method.t_str.virtual_0], vtable.t_str.0
jne 0x40ed16
mov eax, dword [esp + 0x26c]
lea edx, [esp + 0x270]
cmp eax, edx
je 0x40ed16
push eax
call fcn.00475125
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x390]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x378]
xor ecx, esp
call fcn.00474db0
add esp, 0x388
ret 8