Function at 0x140062550
Capabilities:
Copy file

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x2a0
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rax, qword [0x140126108]
xor rax, rsp
mov qword [rsp + 0x290], rax
mov rbp, rcx
mov r12d, 1
lea rcx, [rsp + 0x50]
call fcn.1400d01f0
nop
mov qword [rsp + 0x1c0], 7
xor r15d, r15d
mov qword [rsp + 0x1b8], r15
mov word [rsp + 0x1a8], r15w
lea rdx, [rsp + 0x1a0]
mov rcx, rbp
call fcn.140061130
test eax, eax
jne 0x14006263e
cmp qword [rsp + 0x1c0], 8
jb 0x1400625ea
mov rcx, qword [rsp + 0x1a8]
call fcn.14006b8a0
mov qword [rsp + 0x1c0], 7
mov qword [rsp + 0x1b8], r15
mov word [rsp + 0x1a8], 0
lea r13, [0x1400d9818]
mov qword [rsp + 0x50], r13
lea r14, [0x14013b7a0]
mov rcx, qword [rsp + 0xa8]
cmp rcx, r14
je 0x14006262d
call fcn.14006b8a0
lea rcx, [rsp + 0x50]
call fcn.1400cfb10
xor eax, eax
jmp 0x140062c84
mov r8d, 8
lea rdx, str.www1600
lea rcx, [rsp + 0x1a0]
call fcn.140013670
mov r8d, 1
lea rdx, [0x1400e86b8]
lea rcx, [rsp + 0x1a0]
call fcn.140013670
mov r8d, socket
lea rdx, str.Global_Ui_Setting.xml
lea rcx, [rsp + 0x1a0]
call fcn.140013670
lea r11, [rsp + 0x1a8]
cmp qword [rsp + 0x1c0], 8
cmovae r11, qword [rsp + 0x1a8]
mov qword [rsp + 0x28], r11
lea rbx, str.CProfileDocument::RegUiProfileAction
mov qword [rsp + 0x20], rbx
lea r9, str._s___Register_profile_from__s
mov r8d, 0x36b
lea rdx, str..libTmProfileDocument.cpp
mov ecx, 0x44
call fcn.1400580a0
mov qword [rsp + 0x260], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x258], r15
mov byte [rsp + 0x248], 0
lea rcx, [rsp + 0x1a8]
cmp qword [rsp + 0x1c0], 8
cmovae rcx, qword [rsp + 0x1a8]
mov qword [rsp + 0x20], r15
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x240]
call fcn.140057240
lea rdx, [rsp + 0x248]
cmp qword [rsp + 0x260], 0x10
cmovae rdx, qword [rsp + 0x248]
xor r8d, r8d
lea rcx, [rsp + 0x50]
call fcn.1400d1350
lea r13, [0x1400d9818]
lea r14, [0x14013b7a0]
test al, al
jne 0x1400627a6
mov r12d, r15d
lea rax, [rsp + 0x1a8]
cmp qword [rsp + 0x1c0], 8
cmovae rax, qword [rsp + 0x1a8]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea r9, str._s___can_not_load_XML___s_
mov r8d, 0x373
lea rdx, str..libTmProfileDocument.cpp
mov ecx, 0x44
call fcn.1400580a0
jmp 0x140062bcd
lea rcx, [rsp + 0x50]
call fcn.1400cf3a0
test rax, rax
jne 0x1400627ff
mov r12d, r15d
lea rax, [rsp + 0x1a8]
cmp qword [rsp + 0x1c0], 8
cmovae rax, qword [rsp + 0x1a8]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea r9, str._s___cant_get_root_element_in__s
mov r8d, 0x37b
lea rdx, str..libTmProfileDocument.cpp
mov ecx, 0x44
call fcn.1400580a0
jmp 0x140062bcd
lea rcx, [rsp + 0xc0]
call fcn.1400d01f0
nop
mov qword [rsp + 0x1e8], 7
mov qword [rsp + 0x1e0], r15
mov word [rsp + 0x1d0], 0
lea rdx, [rsp + 0x1c8]
mov rcx, rbp
call fcn.140061130
mov r8d, 8
lea rdx, str.www1600
lea rcx, [rsp + 0x1c8]
call fcn.140013670
mov r8d, 1
lea rdx, [0x1400e86b8]
lea rcx, [rsp + 0x1c8]
call fcn.140013670
mov r8d, reloc.WS2_32.dll_listen
lea rdx, str.UIProfile.cfg
lea rcx, [rsp + 0x1c8]
call fcn.140013670
mov qword [rsp + 0x238], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x230], r15
mov byte [rsp + 0x220], 0
lea rcx, [rsp + 0x1d0]
cmp qword [rsp + 0x1e8], 8
cmovae rcx, qword [rsp + 0x1d0]
mov qword [rsp + 0x20], r15
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x218]
call fcn.140057240
mov esi, r15d
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x130]
call fcn.1400d12b0
lea r8, [rsp + 0x218]
mov rdx, rax
mov rcx, rbp
call fcn.14005ff20
test eax, eax
jne 0x140062b3c
mov r12d, r15d
nop
nop
mov eax, esi
add esi, 1
cmp eax, 2
jg 0x140062b3c
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rbx
lea r9, str._s___SetLocaleMappingList_fail__d_times
mov r8d, 0x38f
lea rdx, str..libTmProfileDocument.cpp
mov ecx, 0x45
call fcn.1400580a0
mov qword [rsp + 0x210], 7
mov qword [rsp + 0x208], r15
mov word [rsp + 0x1f8], 0
lea rdx, [rsp + 0x1f0]
mov rcx, rbp
call fcn.140061130
mov r8d, 8
lea rdx, str.www1600
lea rcx, [rsp + 0x1f0]
call fcn.140013670
mov r8d, 1
lea rdx, [0x1400e86b8]
lea rcx, [rsp + 0x1f0]
call fcn.140013670
mov r8d, reloc.WS2_32.dll_recv
lea rdx, str.UIProfileOri.cfg
lea rcx, [rsp + 0x1f0]
call fcn.140013670
mov qword [rsp + 0x288], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x280], r15
mov byte [rsp + 0x270], 0
lea rcx, [rsp + 0x1f8]
cmp qword [rsp + 0x210], 8
cmovae rcx, qword [rsp + 0x1f8]
mov qword [rsp + 0x20], r15
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x268]
call fcn.140057240
lea rdx, [rsp + 0x220]
cmp qword [rsp + 0x238], 0x10
cmovae rdx, qword [rsp + 0x220]
lea rcx, [rsp + 0x270]
cmp qword [rsp + 0x288], 0x10
cmovae rcx, qword [rsp + 0x270]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x140062ac3
lea rdi, [rsp + 0x1d0]
cmp qword [rsp + 0x1e8], 8
cmovae rdi, qword [rsp + 0x1d0]
lea rbx, [rsp + 0x1f8]
cmp qword [rsp + 0x210], 8
cmovae rbx, qword [rsp + 0x1f8]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x38], eax
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rbx
lea rbx, str.CProfileDocument::RegUiProfileAction
mov qword [rsp + 0x20], rbx
lea r9, str._s___CopyFile__s_to__s_fail:__d
mov r8d, 0x39a
lea rdx, str..libTmProfileDocument.cpp
mov ecx, 0x45
call fcn.1400580a0
nop
cmp qword [rsp + 0x288], 0x10
jb 0x140062adb
mov rcx, qword [rsp + 0x270]
call fcn.14006b8a0
mov qword [rsp + 0x288], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x280], r15
mov byte [rsp + 0x270], 0
cmp qword [rsp + 0x210], 8
jb 0x140062b0f
mov rcx, qword [rsp + 0x1f8]
call fcn.14006b8a0
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x130]
call fcn.1400d12b0
lea r8, [rsp + 0x218]
mov rdx, rax
mov rcx, rbp
call fcn.14005ff20
test eax, eax
je 0x140062910
cmp qword [rsp + 0x238], 0x10
jb 0x140062b54
mov rcx, qword [rsp + 0x220]
call fcn.14006b8a0
mov qword [rsp + 0x238], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x230], r15
mov byte [rsp + 0x220], 0
cmp qword [rsp + 0x1e8], 8
jb 0x140062b88
mov rcx, qword [rsp + 0x1d0]
call fcn.14006b8a0
mov qword [rsp + 0x1e8], 7
mov qword [rsp + 0x1e0], r15
mov word [rsp + 0x1d0], 0
mov qword [rsp + 0xc0], r13
mov rcx, qword [rsp + 0x118]
cmp rcx, r14
je 0x140062bc0
call fcn.14006b8a0
lea rcx, [rsp + 0xc0]
call fcn.1400cfb10
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], rbx
lea r9, str._s___return_d
mov r8d, 0x3a0
lea rdx, str..libTmProfileDocument.cpp
mov ecx, 0x44
call fcn.1400580a0
nop
cmp qword [rsp + 0x260], 0x10
jb 0x140062c0e
mov rcx, qword [rsp + 0x248]
call fcn.14006b8a0
mov qword [rsp + 0x260], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x258], r15
mov byte [rsp + 0x248], 0
cmp qword [rsp + 0x1c0], 8
jb 0x140062c42
mov rcx, qword [rsp + 0x1a8]
call fcn.14006b8a0
mov qword [rsp + 0x1c0], 7
mov qword [rsp + 0x1b8], r15
mov word [rsp + 0x1a8], 0
mov qword [rsp + 0x50], r13
mov rcx, qword [rsp + 0xa8]
cmp rcx, r14
je 0x140062c77
call fcn.14006b8a0
lea rcx, [rsp + 0x50]
call fcn.1400cfb10
mov eax, r12d
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.14009cca0
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret