Function at 0x5b1520
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x444
mov eax, dword [0x64e0a0]
xor eax, esp
mov dword [esp + 0x440], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x10], edi
mov esi, edx
test edx, edx
je 0x5b158d
mov eax, dword [edx]
test eax, eax
je 0x5b156c
cmp eax, 1
je 0x5b1652
mov eax, dword [esi + 4]
add eax, 8
add esi, eax
mov eax, dword [esi]
test eax, eax
jne 0x5b1555
test edx, edx
je 0x5b158d
mov eax, dword [edx]
test eax, eax
je 0x5b158d
cmp eax, 1
je 0x5b16ae
mov eax, dword [edx + 4]
add eax, 8
add edx, eax
mov eax, dword [edx]
test eax, eax
jne 0x5b1576
test ecx, ecx
je 0x5b15ae
mov eax, dword [ecx]
test eax, eax
je 0x5b15ae
cmp eax, 1
je 0x5b16ae
mov eax, dword [ecx + 4]
add eax, 8
add ecx, eax
mov eax, dword [ecx]
test eax, eax
jne 0x5b1597
lea eax, [esp + 0x23c]
mov dword [esp + 0x230], eax
lea eax, [esp + 0x24]
mov dword [esp + 0x18], eax
mov al, byte [0x65c1e4]
mov byte [esp + 0x14], al
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x230]
push eax
push esi
mov ecx, ebx
mov dword [esp + 0x23c], 0x104
mov dword [esp + 0x240], 0
mov dword [esp + 0x24], 0x104
mov dword [esp + 0x28], 0
call fcn.005b0e80
mov ecx, dword [esp + 0x18]
mov edi, eax
lea eax, [esp + 0x20]
push eax
push esi
call fcn.005b0e80
add esp, 0x10
mov esi, eax
test edi, edi
jne 0x5b1736
test esi, esi
jne 0x5b1720
mov ecx, dword [esp + 0x230]
test ecx, ecx
je 0x5b16c6
push dword [ebp + 0x10]
mov edx, dword [esp + 0x1c]
call fcn.005b2500
add esp, 4
mov esi, eax
jmp 0x5b16d1
mov esi, ecx
test ecx, ecx
je 0x5b156c
mov eax, dword [ecx]
test eax, eax
je 0x5b156c
cmp eax, 1
je 0x5b167e
mov eax, dword [esi + 4]
add eax, 8
add esi, eax
mov eax, dword [esi]
test eax, eax
jne 0x5b1666
jmp 0x5b156c
test ebx, ebx
je 0x5b16a6
push dword [ebp + 0x10]
mov edx, edi
mov ecx, ebx
call fcn.005b2500
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x440]
xor ecx, esp
call fcn.00541b41
mov esp, ebp
pop ebp
ret
push 0xd
call dword [sym.imp.KERNEL32.dll_SetLastError]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x440]
xor ecx, esp
call fcn.00541b41
mov esp, ebp
pop ebp
ret
push 0xd
call dword [sym.imp.KERNEL32.dll_SetLastError]
or esi, 0xffffffff
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x24]
cmp eax, ecx
je 0x5b16ea
test eax, eax
je 0x5b16ea
push eax
call fcn.00541b50
add esp, 4
mov eax, dword [esp + 0x230]
lea ecx, [esp + 0x23c]
cmp eax, ecx
je 0x5b1709
test eax, eax
je 0x5b1709
push eax
call fcn.00541b50
add esp, 4
mov ecx, dword [esp + 0x44c]
pop edi
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.00541b41
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x230]
push eax
push 0
mov ecx, ebx
call fcn.005b0e80
add esp, 8
mov edi, eax
test esi, esi
jne 0x5b174e
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
push esi
call fcn.005b0e80
add esp, 8
mov esi, eax
cmp edi, 1
jne 0x5b16ce
cmp esi, edi
jne 0x5b16ce
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x230]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x5b177d
xor esi, esi
jmp 0x5b16d1
push dword [ebp + 0x10]
mov edx, esi
mov ecx, edi
call fcn.005b3f10
add esp, 4
mov esi, eax
jmp 0x5b16d1