Function at 0x140001b80
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0xd8
mov qword [rsp + 0xc0], 0xfffffffffffffffe
mov dword [rsp + 0x48], 0
mov rdx, qword [rsp + 0xf0]
add rdx, 0x78
lea rcx, [rsp + 0x40]
call fcn.1400025b0
nop
mov rax, qword [rsp + 0xf0]
cmp qword [rax + 0x10], 0
jne 0x140001c47
mov dword [rsp + 0x48], 0x77f9461
xor eax, eax
cmp eax, 1
je 0x140001c42
call fcn.140004430
mov qword [rsp + 0xa0], rax
cmp qword [rsp + 0xa0], 0
je 0x140001c42
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdi, qword [rsp + 0xa0]
mov rdi, qword [rdi]
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], 0x77f9461
mov dword [rsp + 0x28], 0x77
lea rax, [0x14002eab8]
mov qword [rsp + 0x20], rax
lea r9, [0x14002eb00]
mov r8d, 0xf9
mov edx, 1
mov rcx, qword [rsp + 0xa0]
call qword [rdi + 0x30]
jmp 0x140001e75
xor eax, eax
cmp eax, 1
je 0x140001c8e
call fcn.140004430
mov qword [rsp + 0xa8], rax
cmp qword [rsp + 0xa8], 0
je 0x140001c8e
mov rax, qword [rsp + 0xa8]
mov rax, qword [rax]
lea r9, str._UIClone__Send_cmd:_n
mov r8d, 0xf9
mov edx, 1
mov rcx, qword [rsp + 0xa8]
call qword [rax + 0x30]
mov rdx, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xf0]
call fcn.1400021f0
mov rcx, qword [rsp + 0xf8]
call qword [sym.imp.MSVCP90.dll_public:_unsigned_long_long_unsigned___int64____cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::length_void_const___ptr64]
lea rax, [rax + rax + 2]
mov qword [rsp + 0x50], rax
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0x60]
call fcn.1400023a0
nop
mov rcx, qword [rsp + 0xf8]
call qword [sym.imp.MSVCP90.dll_public:_wchar_t_const____ptr64___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const___ptr64]
mov rsi, rax
xor edx, edx
lea rcx, [rsp + 0x60]
call fcn.140002480
mov rdi, rax
mov rcx, qword [rsp + 0x50]
rep movsb byte [rdi], byte [rsi]
mov qword [rsp + 0x90], 0
mov dword [rsp + 0x58], 0
mov dword [rsp + 0x98], 0
mov rcx, qword [rsp + 0x90]
mov rax, qword [rsp + 0x50]
sub rax, rcx
cmp rax, 0x400
jae 0x140001d43
mov rcx, qword [rsp + 0x90]
mov rax, qword [rsp + 0x50]
sub rax, rcx
mov qword [rsp + 0xc8], rax
jmp 0x140001d4f
mov qword [rsp + 0xc8], 0x400
mov eax, dword [rsp + 0xc8]
mov dword [rsp + 0x58], eax
xor edx, edx
lea rcx, [rsp + 0x60]
call fcn.140002480
mov rdx, rax
add rdx, qword [rsp + 0x90]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x98]
mov r8d, dword [rsp + 0x58]
mov rcx, qword [rsp + 0xf0]
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140001e14
mov dword [rsp + 0x48], 0x87f9107
xor eax, eax
cmp eax, 1
je 0x140001e12
call fcn.140004430
mov qword [rsp + 0xb0], rax
cmp qword [rsp + 0xb0], 0
je 0x140001e12
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdi, qword [rsp + 0xb0]
mov rdi, qword [rdi]
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], 0x87f9107
mov dword [rsp + 0x28], 0x87
lea rax, str.D:EPM_EPM_mainShareLibDCFrameEUCloneServerCmdDeal.cpp
mov qword [rsp + 0x20], rax
lea r9, [0x14002ebe0]
mov r8d, 0xf9
mov edx, 1
mov rcx, qword [rsp + 0xb0]
call qword [rdi + 0x30]
jmp 0x140001e61
mov ecx, dword [rsp + 0x98]
mov rax, qword [rsp + 0x90]
add rax, rcx
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x90], rax
jb 0x140001e3f
jmp 0x140001e61
mov edx, 0xa
mov rcx, qword [rsp + 0xf0]
mov rcx, qword [rcx + 0x18]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x140001d11
lea rcx, [rsp + 0x60]
call fcn.140002400
xor eax, eax
test eax, eax
jne 0x140001bbe
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0xb8], eax
lea rcx, [rsp + 0x40]
call fcn.1400025f0
mov eax, dword [rsp + 0xb8]
add rsp, 0xd8
pop rdi
pop rsi
ret