Function at 0x180002560
Capabilities:
Move file

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x140]
sub rsp, 0x240
mov qword [rbp + 0x10], 0xfffffffffffffffe
mov qword [rsp + 0x280], rbx
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x130], rax
mov rsi, rdx
mov rdi, rcx
xor r14b, r14b
mov edx, 0xa00000
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x1800029e0
mov dword [rsp + 0x30], 0xa00000
xor edx, edx
mov r8d, 0xa00000
mov rcx, rax
call fcn.180005dd0
mov rcx, qword [rdi]
test rcx, rcx
je 0x1800025e3
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x1800025f2
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je 0x180002601
call qword [sym.imp.WININET.dll_InternetCloseHandle]
xor r15d, r15d
mov qword [rdi], r15
mov qword [rdi + 8], r15
mov qword [rdi + 0x10], r15
lea r9, [0x180022190]
mov rdx, rsi
mov rcx, rdi
call fcn.180001a50
lea r8, [rsp + 0x30]
mov rdx, rbx
mov rcx, rdi
call fcn.180001b40
cmp eax, 0xc8
jne 0x1800029d7
mov edi, dword [rsp + 0x30]
cmp edi, 0x100
jb 0x1800029d7
mov edx, edi
mov rcx, rbx
call fcn.180001250
test al, al
je 0x1800029d7
lea rsi, vtable.ListStore_struct_ZipMemChain____ptr64_.0
mov qword [rsp + 0x50], rsi
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov qword [rbp - 0x80], r15
mov qword [rbp - 0x78], r15
lea edx, [rdi - 0x80]
lea rcx, [rbx + 0x80]
lea r8, [rsp + 0x50]
call fcn.180001700
mov rcx, rbx
test al, al
jne 0x1800026a6
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor r14b, r14b
jmp 0x1800029b3
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [rsp + 0x40], r15d
mov qword [rsp + 0x38], r15
mov rcx, qword [0x180021d80]
mov rax, qword [rcx]
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x38]
mov edx, 7
call qword [rax]
lea rcx, [rbp - 0x70]
call fcn.180002c00
nop
lea rcx, [rbp - 0x30]
call fcn.180002c00
nop
mov qword [rsp + 0x48], r15
mov dword [rsp + 0x30], r15d
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x38]
call fcn.180001520
test al, al
je 0x1800027b6
lea r8, [rbp - 0x70]
mov edx, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x48]
call fcn.180001700
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov edx, dword [rbp - 0x38]
test edx, edx
setne al
test al, al
je 0x1800027b9
lea r8, [rbp - 0x30]
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x70]
call fcn.1800020c0
test al, al
je 0x1800027b6
xor edx, edx
mov r8d, 0x104
lea rcx, [rbp + 0x20]
call fcn.180005dd0
mov r8, qword [rsp + 0x38]
lea rdx, str._s.tmp
lea rcx, [rbp + 0x20]
call fcn.1800011f0
lea rdx, [rbp - 0x30]
lea rcx, [rbp + 0x20]
call fcn.1800018f0
test al, al
je 0x1800027b6
mov r8d, 1
mov rdx, qword [rsp + 0x38]
lea rcx, [rbp + 0x20]
call qword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x1800027a6
xor r14b, r14b
jmp 0x180002979
mov rcx, qword [0x180021d80]
mov rax, qword [rcx]
call qword [rax + 0x38]
mov r14b, 1
mov edx, dword [rbp - 0x38]
mov rbx, r15
mov r8d, dword [rbp - 0x78]
test r8d, r8d
je 0x1800027f0
cmp ebx, r8d
jae 0x1800027e2
mov ecx, ebx
mov rax, qword [rbp - 0x80]
mov rcx, qword [rax + rcx*8]
test rcx, rcx
je 0x1800027e2
call fcn.180002a10
mov r8d, dword [rbp - 0x78]
inc rbx
mov eax, r8d
cmp rbx, rax
jb 0x1800027c5
mov edx, dword [rbp - 0x38]
mov rbx, r15
test edx, edx
je 0x180002842
cmp ebx, edx
jae 0x180002838
mov ecx, ebx
mov rax, qword [rbp - 0x40]
mov rdi, qword [rax + rcx*8]
test rdi, rdi
je 0x180002838
mov rcx, qword [rdi + 0x50]
test rcx, rcx
je 0x180002819
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rdi + 0x58]
test rcx, rcx
je 0x180002828
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov edx, 0x60
mov rcx, rdi
call fcn.1800032c0
mov edx, dword [rbp - 0x38]
inc rbx
mov eax, edx
cmp rbx, rax
jb 0x1800027f7
mov rbx, r15
mov edx, dword [rbp + 8]
test edx, edx
je 0x18000289b
nop dword [rax]
cmp ebx, edx
jae 0x180002891
mov ecx, ebx
mov rax, qword [rbp]
mov rdi, qword [rax + rcx*8]
test rdi, rdi
je 0x180002891
mov rcx, qword [rdi + 0x50]
test rcx, rcx
je 0x180002872
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rdi + 0x58]
test rcx, rcx
je 0x180002881
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov edx, 0x60
mov rcx, rdi
call fcn.1800032c0
mov edx, dword [rbp + 8]
inc rbx
mov eax, edx
cmp rbx, rax
jb 0x180002850
mov dword [rbp - 0x38], r15d
cmp dword [rbp - 0x34], 0x14
jb 0x1800028e5
mov rbx, qword [rbp - 0x40]
mov ecx, 0x50
call fcn.180008b50
mov qword [rbp - 0x40], rax
test rax, rax
je 0x1800028e5
test rbx, rbx
je 0x1800028dc
mov r8d, dword [rbp - 0x38]
shl r8, 3
mov rdx, rbx
mov rcx, rax
call fcn.180005f80
mov rcx, rbx
call fcn.180008b48
mov eax, dword [rbp - 0x38]
add eax, 0xa
mov dword [rbp - 0x34], eax
mov dword [rbp - 0x78], r15d
cmp dword [rbp - 0x74], 0x14
jb 0x18000292f
mov rbx, qword [rbp - 0x80]
mov ecx, 0x50
call fcn.180008b50
mov qword [rbp - 0x80], rax
test rax, rax
je 0x18000292f
test rbx, rbx
je 0x180002926
mov r8d, dword [rbp - 0x78]
shl r8, 3
mov rdx, rbx
mov rcx, rax
call fcn.180005f80
mov rcx, rbx
call fcn.180008b48
mov eax, dword [rbp - 0x78]
add eax, 0xa
mov dword [rbp - 0x74], eax
mov dword [rbp + 8], r15d
cmp dword [rbp + 0xc], 0x14
jb 0x180002979
mov rbx, qword [rbp]
mov ecx, 0x50
call fcn.180008b50
mov qword [rbp], rax
test rax, rax
je 0x180002979
test rbx, rbx
je 0x180002970
mov r8d, dword [rbp + 8]
shl r8, 3
mov rdx, rbx
mov rcx, rax
call fcn.180005f80
mov rcx, rbx
call fcn.180008b48
mov eax, dword [rbp + 8]
add eax, 0xa
mov dword [rbp + 0xc], eax
mov qword [rbp - 0x30], rsi
lea rcx, [rbp - 0x28]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov rcx, qword [rbp]
test rcx, rcx
je 0x180002996
call fcn.180008b48
nop
mov qword [rbp - 0x70], rsi
lea rcx, [rbp - 0x68]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov rcx, qword [rbp - 0x40]
test rcx, rcx
je 0x1800029b3
call fcn.180008b48
nop
mov qword [rsp + 0x50], rsi
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x1800029d1
call fcn.180008b48
movzx eax, r14b
jmp 0x1800029e2
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor al, al
mov rcx, qword [rbp + 0x130]
xor rcx, rsp
call fcn.180003260
mov rbx, qword [rsp + 0x280]
add rsp, 0x240
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret