Function at 0x14000bf7c
Capabilities:
Accept command line arguments
Get file size

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x38]
sub rsp, 0x138
mov qword [rbp + 0x28], 0xfffffffffffffffe
mov rbx, rdx
mov rsi, rcx
lea r12, [rcx + 0x18]
xor edi, edi
test rdx, rdx
jne 0x14000bfb2
mov eax, edi
jmp 0x14000bfba
mov rcx, rbx
call fcn.140013a94
mov r8d, eax
mov rdx, rbx
mov rcx, r12
call fcn.140005790
lea rcx, [rbp + 0x18]
call fcn.14000627c
nop
mov r15b, dil
mov rcx, r12
call fcn.140009e48
mov ebx, eax
test eax, eax
setne r13b
lea rdx, str.result.log
lea rcx, [rsp + 0x78]
call fcn.1400052f0
nop
lea rax, [rsp + 0x40]
mov qword [rbp + 0x80], rax
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x48], rdi
lea rax, [rsp + 0x50]
mov qword [rbp + 0x80], rax
call fcn.140005e30
mov rcx, rax
test rax, rax
je 0x14000c874
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x50], rax
lea rcx, [rbp - 0x20]
call fcn.1400061c0
nop
lea r8, str...__
mov rdx, rax
lea rcx, [rbp - 0x28]
call fcn.1400070ac
nop
lea r8, [rsp + 0x78]
mov rdx, rax
lea rcx, [rbp - 0x30]
call fcn.140007170
nop
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.140007328
nop
mov rdx, qword [rbp - 0x30]
add rdx, 0xffffffffffffffe8
or r14d, 0xffffffff
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, r14d
test eax, eax
jg 0x14000c09c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rbp - 0x28]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, r14d
test eax, eax
jg 0x14000c0bd
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rbp - 0x20]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, r14d
test eax, eax
jg 0x14000c0dd
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov r14, rdi
mov qword [rbp - 0x40], rdi
mov qword [rbp - 0x38], rdi
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 0x80000000
mov rdx, qword [rsp + 0x50]
lea rcx, [rbp - 0x40]
call fcn.140006640
mov rdi, qword [rbp - 0x40]
test eax, eax
js 0x14000c134
lea rdx, [rsp + 0x74]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x70], eax
cmp eax, 0xffffffff
jne 0x14000c12f
call fcn.140007678
test eax, eax
js 0x14000c134
mov r14, qword [rsp + 0x70]
test rdi, rdi
je 0x14000c147
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [rbp - 0x40], 0
mov eax, 2
lea ecx, [rax + 2]
cmp r14d, 0x32000
cmovbe eax, ecx
mov dword [rsp + 0x20], eax
lea r9d, [rcx - 3]
mov r8d, 0xc0000000
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0x40]
call fcn.140006640
nop
mov rdx, qword [rsp + 0x78]
add rdx, 0xffffffffffffffe8
or edi, 0xffffffff
mov eax, edi
lock xadd dword [rdx + 0x10], eax
add eax, edi
test eax, eax
jg 0x14000c199
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
lea rdx, str.________begin_ReplaceMainFiles________
lea rcx, [rbp - 0x80]
call fcn.1400052f0
nop
lea rdx, [rbp - 0x80]
mov rcx, rsi
call fcn.1400077a0
nop
mov rdx, qword [rbp - 0x80]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
add eax, edi
test eax, eax
jg 0x14000c1d5
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
lea rcx, [rbp + 0x90]
call fcn.14000a2b8
nop
lea rcx, [rbp - 0x48]
call fcn.14000a3fc
nop
mov r14d, 3
test ebx, ebx
je 0x14000c5b8
sub ebx, 1
je 0x14000c3ad
sub ebx, 1
jne 0x14000c74f
call fcn.14000a214
test eax, eax
je 0x14000c22f
lea rcx, [rbp + 0x90]
call fcn.14000944c
mov r15b, 1
mov r14d, 3
mov ebx, r14d
jmp 0x14000c1f2
lea rdx, [rbp + 0x80]
mov rcx, qword [r12]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov r14, rax
mov bl, 1
test rax, rax
je 0x14000c32f
xor edi, edi
cmp dword [rbp + 0x80], edi
jle 0x14000c323
mov rbx, rax
mov rdx, qword [rbx]
lea rcx, [rbp + 0x88]
call fcn.1400052f0
nop
lea rcx, [rbp + 0x88]
call fcn.1400072b0
lea rdx, [0x140036f98]
lea rcx, [rbp + 0x98]
call fcn.140005408
nop
lea rcx, [rbp + 0x98]
call fcn.1400072b0
mov rdx, qword [rax]
test rdx, rdx
je 0x14000c2cc
mov rcx, qword [rbp + 0x88]
cmp dword [rcx - 0x10], 0
jl 0x14000c2cc
call fcn.1400111d4
test rax, rax
je 0x14000c2cc
sub rax, qword [rbp + 0x88]
sar rax, 1
test eax, eax
je 0x14000c360
mov rdx, qword [rbp + 0x98]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14000c2ee
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rbp + 0x88]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14000c30f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
inc edi
add rbx, 8
cmp edi, dword [rbp + 0x80]
jl 0x14000c25f
mov bl, 1
or edi, 0xffffffff
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov dl, bl
lea rcx, [rbp + 0x90]
call fcn.14000983c
test al, al
je 0x14000c221
test r13b, r13b
jne 0x14000c221
call fcn.14000b680
test al, al
jne 0x14000c7a3
jmp 0x14000c224
mov rdx, qword [rbp + 0x98]
add rdx, 0xffffffffffffffe8
or edi, 0xffffffff
mov eax, edi
lock xadd dword [rdx + 0x10], eax
add eax, edi
test eax, eax
jg 0x14000c385
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rbp + 0x88]
add rdx, 0xffffffffffffffe8
xor bl, bl
mov eax, edi
lock xadd dword [rdx + 0x10], eax
add eax, edi
test eax, eax
jg 0x14000c326
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
jmp 0x14000c326
mov rcx, rsi
call fcn.14000af58
mov r15b, al
mov rdx, r12
test al, al
je 0x14000c4c1
lea rcx, [rbp - 0x78]
call fcn.140005408
nop
call fcn.140005e30
mov rcx, rax
test rax, rax
je 0x14000c87f
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x58], rax
lea rcx, [rbp - 0x10]
call fcn.14000a3fc
mov rbx, rax
lea rcx, [rbp - 0x18]
call fcn.14000a2b8
nop
mov rcx, qword [rbp - 0x78]
mov qword [rsp + 0x20], rcx
mov r9, qword [rbx]
mov r8, qword [rax]
lea rdx, str._ls__ls_success_0__ls
lea rcx, [rsp + 0x58]
call fcn.14000d16c
nop
mov rdx, qword [rbp - 0x18]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
add eax, edi
test eax, eax
jg 0x14000c443
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rbp - 0x10]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
add eax, edi
test eax, eax
jg 0x14000c461
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x40]
call fcn.140009c78
mov ebx, 2
mov rdx, qword [rsp + 0x58]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
add eax, edi
test eax, eax
jg 0x14000c495
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rbp - 0x78]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
add eax, edi
test eax, eax
jg 0x14000c1f2
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov ebx, 2
jmp 0x14000c1f2
lea rcx, [rbp - 0x70]
call fcn.140005408
nop
call fcn.140005e30
mov rcx, rax
test rax, rax
je 0x14000c88a
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x60], rax
lea rcx, [rbp]
call fcn.14000a3fc
mov rbx, rax
lea rcx, [rbp - 8]
call fcn.14000a2b8
nop
mov rcx, qword [rbp - 0x70]
mov qword [rsp + 0x20], rcx
mov r9, qword [rbx]
mov r8, qword [rax]
lea rdx, str._ls__ls_copyError__3__ls
lea rcx, [rsp + 0x60]
call fcn.14000d16c
nop
mov rdx, qword [rbp - 8]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
add eax, edi
test eax, eax
jg 0x14000c541
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rbp]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
add eax, edi
test eax, eax
jg 0x14000c55f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x40]
call fcn.140009c78
mov ebx, r14d
mov rdx, qword [rsp + 0x60]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
add eax, edi
test eax, eax
jg 0x14000c591
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rbp - 0x70]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
add eax, edi
test eax, eax
jg 0x14000c1f2
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
jmp 0x14000c22a
mov rdx, qword [rbp + 0x90]
test rdx, rdx
je 0x14000c869
mov rcx, qword [rbp - 0x48]
call fcn.1400178cc
test eax, eax
jne 0x14000c61a
lea rdx, str.________begin_ReplaceMainFiles_same_version________
lea rcx, [rbp - 0x68]
call fcn.1400052f0
nop
lea rdx, [rbp - 0x68]
mov rcx, rsi
call fcn.1400077a0
nop
mov rdx, qword [rbp - 0x68]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
add eax, edi
test eax, eax
jg 0x14000c1f2
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
jmp 0x14000c1f2
mov rcx, rsi
call fcn.14000abc0
test al, al
jne 0x14000c745
lea rdx, str..AliWorkbench_runing
lea rcx, [rbp - 0x60]
call fcn.1400052f0
nop
lea rdx, [rbp - 0x60]
mov rcx, rsi
call fcn.1400077a0
nop
mov rdx, qword [rbp - 0x60]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
add eax, edi
test eax, eax
jg 0x14000c666
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rdx, r12
lea rcx, [rbp - 0x58]
call fcn.140005408
nop
call fcn.140005e30
mov rcx, rax
test rax, rax
je 0x14000c85e
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x68], rax
lea rcx, [rbp + 0x10]
call fcn.14000a3fc
mov rbx, rax
lea rcx, [rbp + 8]
call fcn.14000a2b8
nop
mov rcx, qword [rbp - 0x58]
mov qword [rsp + 0x20], rcx
mov r9, qword [rbx]
mov r8, qword [rax]
lea rdx, str._ls__ls_canNotwrite__2__ls
lea rcx, [rsp + 0x68]
call fcn.14000d16c
nop
mov rdx, qword [rbp + 8]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
add eax, edi
test eax, eax
jg 0x14000c6e9
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rbp + 0x10]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
add eax, edi
test eax, eax
jg 0x14000c707
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x40]
call fcn.140009c78
mov ebx, r14d
xor r15b, r15b
mov rdx, qword [rsp + 0x68]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
add eax, edi
test eax, eax
jg 0x14000c73c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rbp - 0x58]
jmp 0x14000c595
mov ebx, 1
jmp 0x14000c1f2
sub ebx, 1
je 0x14000c797
cmp ebx, 1
je 0x14000c7a3
lea rdx, str.________Unknown________
lea rcx, [rbp - 0x50]
call fcn.1400052f0
nop
lea rdx, [rbp - 0x50]
mov rcx, rsi
call fcn.1400077a0
nop
mov rdx, qword [rbp - 0x50]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
add eax, edi
test eax, eax
jg 0x14000c7a3
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
jmp 0x14000c7a3
mov dl, r15b
mov rcx, rsi
call fcn.14000b7e4
nop
mov rdx, qword [rbp - 0x48]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
add eax, edi
test eax, eax
jg 0x14000c7c2
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rbp + 0x90]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
add eax, edi
test eax, eax
jg 0x14000c7e4
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
lea rax, [rsp + 0x50]
mov qword [rbp + 0x20], rax
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
add eax, edi
test eax, eax
jg 0x14000c80d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
lea rax, [rsp + 0x40]
mov qword [rbp + 0x20], rax
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14000c82c
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [rsp + 0x40], 0
mov rdx, qword [rbp + 0x18]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
add eax, edi
test eax, eax
jg 0x14000c84a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
add rsp, 0x138
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov ecx, 0x80004005
call fcn.140005bc4
nop
mov ecx, 0x80004005
call fcn.140005bc4
nop
mov ecx, 0x80004005
call fcn.140005bc4
nop
mov ecx, 0x80004005
call fcn.140005bc4
nop
mov ecx, 0x80004005
call fcn.140005bc4
int3