Function at 0x140015060
Capabilities:
Copy file
Delete file
Get file size

Disassembly:
mov r11, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x310
mov qword [rsp + 0xc8], 0xfffffffffffffffe
mov qword [r11 + 0x20], rbx
mov rax, qword [0x1401f3660]
xor rax, rsp
mov qword [rsp + 0x300], rax
mov r13, r8
mov r12, rdx
mov rsi, rcx
xor r14b, r14b
xor eax, eax
mov qword [r11 - 0x2c8], rax
mov qword [r11 - 0x2c0], rax
mov qword [r11 - 0x2b8], rax
mov qword [r11 - 0x230], 0xf
mov qword [r11 - 0x238], rax
mov byte [rsp + 0x100], al
mov qword [r11 - 0x258], 0xf
mov qword [r11 - 0x260], rax
mov byte [rsp + 0xd8], al
cmp qword [rdx + 0x20], 0x10
jb 0x1400150fd
lea rbp, [rdx + 8]
mov rcx, qword [rbp]
jmp 0x140015104
lea rbp, [rdx + 8]
mov rcx, rbp
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000080
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, dword [rsi + 0x3e0]
jle 0x140015254
cmp qword [r12 + 0x20], 0x10
jb 0x14001515c
mov rbp, qword [rbp]
mov qword [rsp + 0x28], rbp
lea r15, str.OfcDDAProtocolUploadSampleOSCE::ConstructFullUploadSampleFile
mov qword [rsp + 0x20], r15
lea r9, str._s___too_large_sample_file:___s_
mov r8d, 0x119
lea rdx, str..OfcDDAProtocolUploadSample.cpp
mov ecx, 0x44
call fcn.1400382e0
nop
cmp qword [rsp + 0xf0], 0x10
jb 0x1400151a4
mov rcx, qword [rsp + 0xd8]
call fcn.140041700
mov qword [rsp + reloc.WS2_32.dll_ntohs0], 0xf
xor r14d, r14d
mov qword [rsp + 0xe8], r14
mov byte [rsp + 0xd8], r14b
cmp qword [rsp + 0x118], 0x10
jb 0x1400151db
mov rcx, qword [rsp + 0x100]
call fcn.140041700
mov qword [rsp + 0x118], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x110], r14
mov byte [rsp + 0x100], 0
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x14001524d
mov rbx, qword [rsp + 0x88]
cmp rcx, rbx
je 0x140015248
lea rdi, [rcx + 0x20]
cmp qword [rdi], 0x10
jb 0x140015224
mov rcx, qword [rdi - 0x18]
call fcn.140041700
mov qword [rdi], reloc.WS2_32.dll_ntohs
mov qword [rdi - 8], r14
mov byte [rdi - 0x18], 0
add rdi, 0x28
lea rax, [rdi - 0x20]
cmp rax, rbx
jne 0x140015215
mov rcx, qword [rsp + 0x80]
call fcn.140041700
xor al, al
jmp 0x140015e60
lea r15, str.OfcDDAProtocolUploadSampleOSCE::ConstructFullUploadSampleFile
cmp qword [rsi + 0x2b8], 0
je 0x140015bc5
cmp qword [rsi + 0x360], 0x10
jb 0x14001527c
mov rcx, qword [rsi + 0x348]
jmp 0x140015283
lea rcx, [rsi + 0x348]
call fcn.140047e30
movsxd rcx, eax
mov qword [rsp + 0xc0], rcx
xor r14d, r14d
mov dword [rsp + 0x50], r14d
xor eax, eax
mov dword [rsp + 0x54], eax
mov dword [rsp + 0x58], eax
mov dword [rsp + 0x5c], eax
mov dword [rsp + 0x60], eax
mov dword [rsp + 0x64], eax
mov dword [rsp + 0x68], eax
mov dword [rsp + 0x6c], eax
mov dword [rsp + 0x70], eax
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0x50]
call fcn.1400476d0
lea r8, str..meta
lea rdx, [rsi + 0x390]
lea rcx, [rsp + 0x98]
call fcn.1400110d0
nop
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rax
lea rcx, [rsp + 0xd0]
call fcn.1400023d0
nop
cmp qword [rsp + 0xb8], 0x10
jb 0x14001531b
mov rcx, qword [rsp + 0xa0]
call fcn.140041700
lea rdx, [rsp + 0xd0]
lea rcx, [rsp + 0x78]
call fcn.1400170f0
lea r14, [rsi + 0x438]
lea r8, [rsp + 0xd0]
mov rdx, r14
lea rcx, [rsp + 0x1c0]
call fcn.1400111b0
nop
lea rcx, [rsp + 0x1c8]
cmp qword [rsp + 0x1e0], 0x10
cmovae rcx, qword [rsp + 0x1c8]
lea rdx, [0x1401cf4dc]
call fcn.1400440d0
mov rdi, rax
test rax, rax
je 0x14001543b
cmp qword [rsi + 0x4d0], 0x10
jb 0x140015392
mov r8, qword [rsi + 0x4b8]
jmp 0x140015399
lea r8, [rsi + 0x4b8]
lea rdx, str.ClientUUID_s
mov rcx, rax
call fcn.140043d50
lea rdx, [0x1401cf4f0]
mov rcx, rdi
call fcn.140043d50
lea r8, [0x14023b7e0]
cmp qword [reloc.WS2_32.dll_ntohs], 0x10
cmovae r8, qword [0x14023b7e0]
lea rdx, str.SourceID_s
mov rcx, rdi
call fcn.140043d50
lea rdx, [0x1401cf4f0]
mov rcx, rdi
call fcn.140043d50
cmp qword [rsi + 0x3b0], 0x10
jb 0x1400153ff
mov r8, qword [rsi + 0x398]
jmp 0x140015406
lea r8, [rsi + 0x398]
lea rdx, str.SampleFileSHA1_s
mov rcx, rdi
call fcn.140043d50
lea rdx, [0x1401cf4f0]
mov rcx, rdi
call fcn.140043d50
lea rdx, str.SampleFileExist1
mov rcx, rdi
call fcn.140043d50
mov rcx, rdi
call fcn.140043cb0
lea r8, str..log
lea rdx, [rsi + 0x390]
lea rcx, [rsp + 0x98]
call fcn.1400110d0
nop
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rax
lea rcx, [rsp + 0xd0]
call fcn.1400023d0
nop
cmp qword [rsp + 0xb8], 0x10
jb 0x140015487
mov rcx, qword [rsp + 0xa0]
call fcn.140041700
lea rdx, [rsp + 0xd0]
lea rcx, [rsp + 0x78]
call fcn.1400170f0
lea r8, [rsp + 0xd0]
mov rdx, r14
lea rcx, [rsp + 0x198]
call fcn.1400111b0
nop
lea rcx, [rsp + 0x1a0]
cmp qword [rsp + 0x1b8], 0x10
cmovae rcx, qword [rsp + 0x1a0]
lea rdx, [0x1401cf4dc]
call fcn.1400440d0
mov rdi, rax
test rax, rax
je 0x14001555a
mov ecx, dword [rsp + 0x64]
add ecx, 0x76c
mov r8d, dword [rsp + 0x60]
add r8d, 1
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x54]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ecx
mov r9d, dword [rsp + 0x5c]
lea rdx, str.Date_02d__02d__4d__02d:_02d:_02d
mov rcx, rdi
call fcn.140043d50
lea rdx, [0x1401cf4f0]
mov rcx, rdi
call fcn.140043d50
cmp qword [r13 + 0x20], 0x10
jb 0x14001553f
mov r8, qword [r13 + 8]
jmp 0x140015543
lea r8, [r13 + 8]
lea rdx, str.FileName_s
mov rcx, rdi
call fcn.140043d50
mov rcx, rdi
call fcn.140043cb0
lea r8, str..dat
lea rdx, [rsi + 0x390]
lea rcx, [rsp + 0x98]
call fcn.1400110d0
nop
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rax
lea rcx, [rsp + 0xd0]
call fcn.1400023d0
nop
cmp qword [rsp + 0xb8], 0x10
jb 0x1400155a6
mov rcx, qword [rsp + 0xa0]
call fcn.140041700
lea rdx, [rsp + 0xd0]
lea rcx, [rsp + 0x78]
call fcn.1400170f0
lea r8, [rsp + 0xd0]
mov rdx, r14
lea rcx, [rsp + 0x120]
call fcn.1400111b0
nop
lea rdx, [rsp + 0x128]
cmp qword [rsp + 0x140], 0x10
cmovae rdx, qword [rsp + 0x128]
cmp qword [r12 + 0x20], 0x10
jb 0x1400155f7
mov rbp, qword [rbp]
xor r8d, r8d
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CopyFileA]
lea rcx, [rsp + 0x128]
cmp qword [rsp + 0x140], 0x10
cmovae rcx, qword [rsp + 0x128]
call fcn.140014f90
mov qword [rsp + 0x168], reloc.WS2_32.dll_ntohs
xor r12d, r12d
mov qword [rsp + 0x160], r12
mov byte [rsp + 0x150], r12b
mov qword [rsp + 0x190], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x188], r12
mov byte [rsp + 0x178], r12b
cmp qword [rsi + 0x2c0], r12
je 0x14001599d
lea r8, str.zip.zip
lea rdx, [rsi + 0x390]
lea rcx, [rsp + 0x98]
call fcn.1400110d0
nop
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rax
lea rcx, [rsp + 0x170]
call fcn.1400023d0
nop
cmp qword [rsp + 0xb8], 0x10
jb 0x1400156b6
mov rcx, qword [rsp + 0xa0]
call fcn.140041700
lea r8, [rsp + 0x178]
cmp qword [rsp + 0x190], 0x10
cmovae r8, qword [rsp + 0x178]
cmp qword [r14 + 0x20], 0x10
jb 0x1400156dd
mov rdx, qword [r14 + 8]
jmp 0x1400156e1
lea rdx, [r14 + 8]
lea rcx, [rsp + 0x78]
call qword [rsi + 0x2c0]
test al, al
je 0x1400159a2
lea rdx, [rsp + 0xf8]
lea rcx, [rsp + 0x170]
call qword [rsi + 0x2b8]
test al, al
je 0x1400159a7
lea rcx, [rsi + 0x2f0]
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0xf8]
call fcn.1400023d0
mov byte [rsp + 0x1f0], 0
xor edx, edx
mov r8d, 0x103
lea rcx, [rsp + 0x1f1]
call fcn.140041940
lea rdx, [rsp + 0x100]
cmp qword [rsp + 0x118], 0x10
cmovae rdx, qword [rsp + 0x100]
mov r9d, dword [rsp + 0x60]
add r9d, 1
mov r8d, dword [rsp + 0x64]
add r8d, 0x76c
mov qword [rsp + 0x40], rdx
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x54]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x5c]
mov dword [rsp + 0x20], eax
lea rdx, str._4d_02d_02d__02d_02d_02d__s.zip
lea rcx, [rsp + 0x1f0]
call fcn.140018310
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x1f0]
repne scasb al, byte [rdi]
not rcx
lea rbp, [rcx - 1]
mov rdx, qword [rsi + 0x338]
cmp rdx, 0x10
jb 0x1400157e2
lea rdi, [rsi + 0x320]
mov rax, qword [rdi]
jmp 0x1400157ec
lea rdi, [rsi + 0x320]
mov rax, rdi
lea rcx, [rsp + 0x1f0]
cmp rcx, rax
jb 0x14001584a
cmp rdx, 0x10
jb 0x140015804
mov rcx, qword [rdi]
jmp 0x140015807
mov rcx, rdi
add rcx, qword [rsi + 0x330]
lea rax, [rsp + 0x1f0]
cmp rcx, rax
jbe 0x14001584a
cmp rdx, 0x10
jb 0x140015824
mov rdi, qword [rdi]
lea r8, [rsp + 0x1f0]
sub r8, rdi
mov r9, rbp
lea rdx, [rsi + 0x318]
lea rcx, [rsi + 0x318]
call fcn.1400023d0
jmp 0x1400158d5
cmp rbp, 0xfffffffffffffffe
jbe 0x140015855
call fcn.14003b3f0
mov rax, qword [rsi + 0x338]
cmp rax, rbp
jae 0x140015879
mov r8, qword [rsi + 0x330]
mov rdx, rbp
lea rcx, [rsi + 0x318]
call fcn.1400026b0
jmp 0x140015893
test rbp, rbp
jne 0x140015893
mov qword [rsi + 0x330], r12
cmp rax, 0x10
jb 0x14001588e
mov rdi, qword [rdi]
mov byte [rdi], 0
jmp 0x1400158d5
test rbp, rbp
je 0x1400158d5
mov rdx, qword [rsi + 0x338]
cmp rdx, 0x10
jb 0x1400158aa
mov rcx, qword [rdi]
jmp 0x1400158ad
mov rcx, rdi
mov r9, rbp
lea r8, [rsp + 0x1f0]
call fcn.140041310
mov qword [rsi + 0x330], rbp
cmp qword [rsi + 0x338], 0x10
jb 0x1400158d1
mov rdi, qword [rdi]
mov byte [rdi + rbp], 0
lea r8, [rsi + 0x318]
mov rdx, r14
lea rcx, [rsp + 0x98]
call fcn.1400111b0
nop
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rax
lea rcx, [rsp + 0x148]
call fcn.1400023d0
nop
cmp qword [rsp + 0xb8], 0x10
jb 0x14001591d
mov rcx, qword [rsp + 0xa0]
call fcn.140041700
lea rcx, [rsp + 0x150]
cmp qword [rsp + 0x168], 0x10
cmovae rcx, qword [rsp + 0x150]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
lea rdx, [rsp + 0x150]
cmp qword [rsp + 0x168], 0x10
cmovae rdx, qword [rsp + 0x150]
lea rcx, [rsp + 0x178]
cmp qword [rsp + 0x190], 0x10
cmovae rcx, qword [rsp + 0x178]
call fcn.140047230
lea rcx, [rsi + 0x368]
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0x148]
call fcn.1400023d0
mov byte [rsi + 0x529], 1
mov r14b, 1
jmp 0x1400159aa
xor r14b, r14b
jmp 0x1400159aa
xor r14b, r14b
jmp 0x1400159aa
xor r14b, r14b
lea rdx, [rsp + 0x128]
cmp qword [rsp + 0x140], 0x10
cmovae rdx, qword [rsp + 0x128]
lea rcx, [rsp + 0x1a0]
cmp qword [rsp + 0x1b8], 0x10
cmovae rcx, qword [rsp + 0x1a0]
lea rax, [rsp + 0x1c8]
cmp qword [rsp + 0x1e0], 0x10
cmovae rax, qword [rsp + 0x1c8]
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r15
lea r9, str._s___files__s___s___s_
mov r8d, 0x16a
lea rdx, str..OfcDDAProtocolUploadSample.cpp
mov ecx, 0x44
call fcn.1400382e0
lea rcx, [rsp + 0x1c8]
cmp qword [rsp + 0x1e0], 0x10
cmovae rcx, qword [rsp + 0x1c8]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
lea rcx, [rsp + 0x1a0]
cmp qword [rsp + 0x1b8], 0x10
cmovae rcx, qword [rsp + 0x1a0]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
lea rcx, [rsp + 0x128]
cmp qword [rsp + 0x140], 0x10
cmovae rcx, qword [rsp + 0x128]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x140015adb
lea rdi, [rsp + 0x128]
cmp qword [rsp + 0x140], 0x10
cmovae rdi, qword [rsp + 0x128]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], r15
lea r9, str._s___failed_to_delete_file__s_._error__d_
mov r8d, 0x16e
lea rdx, str..OfcDDAProtocolUploadSample.cpp
mov ecx, 0x44
call fcn.1400382e0
nop
cmp qword [rsp + 0x190], 0x10
jb 0x140015af3
mov rcx, qword [rsp + 0x178]
call fcn.140041700
mov qword [rsp + 0x190], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x188], r12
mov byte [rsp + 0x178], 0
cmp qword [rsp + 0x168], 0x10
jb 0x140015b27
mov rcx, qword [rsp + 0x150]
call fcn.140041700
mov qword [rsp + 0x168], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x160], r12
mov byte [rsp + 0x150], 0
cmp qword [rsp + 0x140], 0x10
jb 0x140015b5b
mov rcx, qword [rsp + 0x128]
call fcn.140041700
mov qword [rsp + 0x140], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x138], r12
mov byte [rsp + 0x128], 0
cmp qword [rsp + 0x1b8], 0x10
jb 0x140015b8f
mov rcx, qword [rsp + 0x1a0]
call fcn.140041700
mov qword [rsp + 0x1b8], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x1b0], r12
mov byte [rsp + 0x1a0], 0
cmp qword [rsp + 0x1e0], 0x10
jb 0x140015bc8
mov rcx, qword [rsp + 0x1c8]
call fcn.140041700
jmp 0x140015bc8
xor r12d, r12d
cmp qword [rsi + 0x388], 0x10
jb 0x140015bdb
mov rax, qword [rsi + 0x370]
jmp 0x140015be2
lea rax, [rsi + 0x370]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r15
lea r9, str._s___ZIP_file:___s_
mov r8d, 0x170
lea rdx, str..OfcDDAProtocolUploadSample.cpp
mov ecx, 0x44
call fcn.1400382e0
cmp qword [rsi + 0x388], 0x10
jb 0x140015c1d
mov rcx, qword [rsi + 0x370]
jmp 0x140015c24
lea rcx, [rsi + 0x370]
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000080
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, dword [rsi + 0x3e4]
jle 0x140015d9f
cmp qword [rsi + 0x388], 0x10
jb 0x140015c83
mov rax, qword [rsi + 0x370]
jmp 0x140015c8a
lea rax, [rsi + 0x370]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r15
lea r9, str._s___too_large_sample_archive_file:___s_
mov r8d, 0x175
lea rdx, str..OfcDDAProtocolUploadSample.cpp
mov ecx, 0x44
call fcn.1400382e0
cmp qword [rsi + 0x388], 0x10
jb 0x140015cc5
mov rcx, qword [rsi + 0x370]
jmp 0x140015ccc
lea rcx, [rsi + 0x370]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
nop
cmp qword [rsp + 0xf0], 0x10
jb 0x140015ceb
mov rcx, qword [rsp + 0xd8]
call fcn.140041700
mov qword [rsp + reloc.WS2_32.dll_ntohs0], 0xf
mov qword [rsp + 0xe8], r12
mov byte [rsp + 0xd8], 0
cmp qword [rsp + 0x118], 0x10
jb 0x140015d1f
mov rcx, qword [rsp + 0x100]
call fcn.140041700
mov qword [rsp + 0x118], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x110], r12
mov byte [rsp + 0x100], 0
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x140015d98
mov rbx, qword [rsp + 0x88]
cmp rcx, rbx
je 0x140015d93
lea rdi, [rcx + 0x20]
nop
nop
cmp qword [rdi], 0x10
jb 0x140015d6f
mov rcx, qword [rdi - 0x18]
call fcn.140041700
mov qword [rdi], reloc.WS2_32.dll_ntohs
mov qword [rdi - 8], r12
mov byte [rdi - 0x18], 0
add rdi, 0x28
lea rax, [rdi - 0x20]
cmp rax, rbx
jne 0x140015d60
mov rcx, qword [rsp + 0x80]
call fcn.140041700
xor al, al
jmp 0x140015e60
cmp qword [rsp + 0xf0], 0x10
jb 0x140015db7
mov rcx, qword [rsp + 0xd8]
call fcn.140041700
mov qword [rsp + reloc.WS2_32.dll_ntohs0], 0xf
mov qword [rsp + 0xe8], r12
mov byte [rsp + 0xd8], 0
cmp qword [rsp + 0x118], 0x10
jb 0x140015deb
mov rcx, qword [rsp + 0x100]
call fcn.140041700
mov qword [rsp + 0x118], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x110], r12
mov byte [rsp + 0x100], 0
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x140015e5d
mov rbx, qword [rsp + 0x88]
cmp rcx, rbx
je 0x140015e58
lea rdi, [rcx + 0x20]
cmp qword [rdi], 0x10
jb 0x140015e34
mov rcx, qword [rdi - 0x18]
call fcn.140041700
mov qword [rdi], reloc.WS2_32.dll_ntohs
mov qword [rdi - 8], r12
mov byte [rdi - 0x18], 0
add rdi, 0x28
lea rcx, [rdi - 0x20]
cmp rcx, rbx
jne 0x140015e25
mov rcx, qword [rsp + 0x80]
call fcn.140041700
mov al, r14b
mov rcx, qword [rsp + 0x300]
xor rcx, rsp
call fcn.140041910
mov rbx, qword [rsp + 0x368]
add rsp, 0x310
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret