Function at 0x4b0770
Capabilities:
Check if file exists
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x564f7a
mov eax, dword fs:[0]
push eax
sub esp, 0x540
mov eax, dword [0x5b38f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 4], 1
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 8
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x4b0afe
sub esp, 0x18
xor eax, eax
mov ecx, esp
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [ebp + 0x20]
push eax
call fcn.0040757d
mov ecx, edi
call fcn.004b1920
test eax, eax
jne 0x4b07f7
xor esi, esi
jmp 0x4b0d74
mov eax, 0x5c
mov dword [ebp - 0xe0], 0
mov word [ebp - 0xe4], ax
mov dword [ebp - 0xdc], 0
push 0x595fb0
lea eax, [ebp + 8]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.004452c3
add esp, 0xc
mov byte [ebp - 4], 3
cmp dword [eax + 0x14], 8
jb 0x4b083c
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x53c]
call fcn.004af370
mov byte [ebp - 4], 2
mov esi, eax
cmp dword [ebp - 0x44], 8
jb 0x4b085f
push dword [ebp - 0x58]
call fcn.0052558c
add esp, 4
test esi, esi
je 0x4b0a4d
mov ecx, dword [ebp - 0xdc]
lea ecx, [ecx]
xor edx, edx
test ecx, ecx
je 0x4b08ae
mov eax, dword [ebp - 0x53c]
shr eax, 4
and eax, 1
je 0x4b08ae
cmp word [ebp - 0x510], 0x2e
jne 0x4b08ae
mov ax, word [ebp - 0x50e]
test ax, ax
je 0x4b08a9
cmp ax, 0x2e
jne 0x4b08ae
cmp word [ebp - 0x50c], dx
jne 0x4b08ae
mov edx, 1
test edx, edx
jne 0x4b0a21
lea eax, [ebp - 0x54c]
push eax
lea ecx, [ebp - 0x53c]
call fcn.004af220
mov esi, eax
push 0x581774
lea eax, [ebp + 0x20]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.004452c3
mov byte [ebp - 4], 5
push dword [esi]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0044532e
add esp, 0x18
cmp dword [ebp - 0x5c], 8
jb 0x4b0904
push dword [ebp - 0x70]
call fcn.0052558c
add esp, 4
xor eax, eax
mov dword [ebp - 0x5c], 7
mov dword [ebp - 0x60], 0
mov word [ebp - 0x70], ax
mov byte [ebp - 4], 8
or ecx, 0xffffffff
mov edx, dword [ebp - 0x54c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4b093c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
sub esp, 0x18
xor eax, eax
mov ecx, esp
mov dword [ebp - 0x548], esp
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [ebp - 0x40]
push eax
call fcn.0040757d
lea eax, [ebp - 0x544]
mov byte [ebp - 4], 9
push eax
lea ecx, [ebp - 0x53c]
call fcn.004af220
mov esi, eax
push 0x581774
lea eax, [ebp + 8]
mov byte [ebp - 4], 0xa
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.004452c3
sub esp, 0xc
mov byte [ebp - 4], 0xb
mov ecx, esp
push dword [esi]
push eax
push ecx
call fcn.0044532e
add esp, 0xc
mov ecx, edi
mov byte [ebp - 4], 0xd
call fcn.004b0770
test eax, eax
sete bl
cmp dword [ebp - 0x44], 8
jb 0x4b09ca
push dword [ebp - 0x58]
call fcn.0052558c
add esp, 4
mov byte [ebp - 4], 8
xor eax, eax
mov edx, dword [ebp - 0x544]
or ecx, 0xffffffff
add edx, 0xfffffff0
mov word [ebp - 0x58], ax
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], 0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4b0a02
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test bl, bl
jne 0x4b0a79
mov byte [ebp - 4], 2
cmp dword [ebp - 0x2c], 8
jb 0x4b0a1b
push dword [ebp - 0x40]
call fcn.0052558c
add esp, 4
mov ecx, dword [ebp - 0xdc]
mov eax, dword [ebp - 0xe0]
test eax, eax
je 0x4b0a4d
test ecx, ecx
je 0x4b0a4d
lea ecx, [ebp - 0x53c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov ecx, eax
mov dword [ebp - 0xdc], ecx
test ecx, ecx
jne 0x4b0870
cmp dword [ebp + 0x1c], 8
lea edx, [ebp + 8]
cmovae edx, dword [ebp + 8]
sub esp, 0x18
mov esi, esp
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
cmp word [edx], ax
jne 0x4b0ab0
xor ecx, ecx
jmp 0x4b0ac4
cmp dword [ebp - 0x2c], 8
jb 0x4b0a8a
push dword [ebp - 0x40]
call fcn.0052558c
add esp, 4
xor eax, eax
mov dword [ebp - 0x2c], 7
lea ecx, [ebp - 0x53c]
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
call fcn.004af1f0
xor esi, esi
jmp 0x4b0d74
mov ecx, edx
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4b0ab5
sub ecx, ebx
sar ecx, 1
push ecx
push edx
mov ecx, esi
call fcn.00408659
mov ecx, edi
call fcn.004b0dd0
mov eax, dword [ebp - 0xe0]
mov dword [ebp - 0xdc], 0
test eax, eax
je 0x4b0af4
cmp eax, 0xffffffff
je 0x4b0af4
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, 1
jmp 0x4b0d74
cmp dword [ebp + 0x34], 8
lea eax, [ebp + 0x20]
cmovae eax, dword [ebp + 0x20]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x4b0c12
sub esp, 0x18
xor eax, eax
mov ecx, esp
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [ebp + 0x20]
push eax
call fcn.0040757d
lea eax, [ebp - 0x28]
push eax
call fcn.004b0030
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
lea eax, [ebp + 0x20]
cmovae ecx, dword [ebp - 0x28]
cmp dword [ebp + 0x34], 8
push ecx
cmovae eax, dword [ebp + 0x20]
push eax
call ebx
test eax, eax
je 0x4b0c74
lea eax, [ebp - 0x28]
push eax
lea ecx, [edi + 0x2c]
call fcn.0044460a
cmp dword [edi], 0
je 0x4b0bfd
xor eax, eax
mov dword [ebp - 0x8c], 7
mov dword [ebp - 0x90], 0
mov word [ebp - 0xa0], ax
mov dword [ebp - 0x74], 7
mov dword [ebp - 0x78], eax
mov word [ebp - 0x88], ax
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0xf
push eax
lea ecx, [ebp - 0xa0]
mov dword [ebp - 0xa4], 1
call fcn.0040757d
push 0xffffffffffffffff
push 0
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x88]
call fcn.0040757d
lea eax, [ebp - 0xa4]
push eax
lea ecx, [edi + 0x20]
call fcn.004b2210
lea ecx, [ebp - 0xa4]
call fcn.004b0720
mov byte [ebp - 4], 1
cmp dword [ebp - 0x14], 8
jb 0x4b0c12
push dword [ebp - 0x28]
call fcn.0052558c
add esp, 4
sub esp, 0x18
xor eax, eax
mov esi, esp
sub esp, 0x18
mov ecx, esp
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [ebp + 0x20]
push eax
call fcn.0040757d
mov ecx, esi
call fcn.004af880
add esp, 0x18
mov ecx, edi
call fcn.004b1920
test eax, eax
jne 0x4b0ca9
lea ecx, [edi + 8]
lea eax, [ebp + 0x20]
cmp ecx, eax
je 0x4b0c64
push 0xffffffffffffffff
push 0
push eax
call fcn.0040757d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 4], eax
xor esi, esi
jmp 0x4b0d74
lea ecx, [edi + 8]
lea eax, [ebp + 0x20]
cmp ecx, eax
je 0x4b0c88
push 0xffffffffffffffff
push 0
push eax
call fcn.0040757d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x14], 8
mov dword [edi + 4], eax
jb 0x4b0c6d
push dword [ebp - 0x28]
call fcn.0052558c
add esp, 4
xor esi, esi
jmp 0x4b0d74
cmp dword [ebp + 0x34], 8
lea ecx, [ebp + 0x20]
lea eax, [ebp + 8]
cmovae ecx, dword [ebp + 0x20]
cmp dword [ebp + 0x1c], 8
push ecx
cmovae eax, dword [ebp + 8]
push eax
call ebx
mov esi, eax
test esi, esi
jne 0x4b0cea
lea ecx, [edi + 8]
lea eax, [ebp + 0x20]
cmp ecx, eax
je 0x4b0cdc
push 0xffffffffffffffff
push esi
push eax
call fcn.0040757d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 4], eax
jmp 0x4b0d74
cmp dword [edi], 0
je 0x4b0d74
xor eax, eax
mov dword [ebp - 0xc0], 7
mov dword [ebp - 0xc4], 0
mov word [ebp - 0xd4], ax
mov dword [ebp - 0xa8], 7
mov dword [ebp - 0xac], eax
mov word [ebp - 0xbc], ax
push 0xffffffffffffffff
push eax
lea eax, [ebp + 0x20]
mov byte [ebp - 4], 0x10
push eax
lea ecx, [ebp - 0xd4]
mov dword [ebp - 0xd8], 1
call fcn.0040757d
push 0xffffffffffffffff
push 0
lea eax, [ebp + 0x20]
push eax
lea ecx, [ebp - 0xbc]
call fcn.0040757d
lea eax, [ebp - 0xd8]
push eax
lea ecx, [edi + 0x20]
call fcn.004b2210
lea ecx, [ebp - 0xd8]
call fcn.004b0720
cmp dword [ebp + 0x1c], 8
jb 0x4b0d85
push dword [ebp + 8]
call fcn.0052558c
add esp, 4
xor eax, eax
mov dword [ebp + 0x1c], 7
cmp dword [ebp + 0x34], 8
mov dword [ebp + 0x18], 0
mov word [ebp + 8], ax
jb 0x4b0daa
push dword [ebp + 0x20]
call fcn.0052558c
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052b1ec
mov esp, ebp
pop ebp
ret 0x30