Function at 0x14011cff0
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x1b8]
sub rsp, 0x290
mov qword [rbp - 0x70], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x1402bb010]
xor rax, rsp
mov qword [rbp + 0x180], rax
mov rsi, rcx
xor r14d, r14d
mov dword [rsp + 0x40], r14d
lea rdx, [rbp + 0x140]
mov rcx, qword [rcx + 0x900]
call fcn.1400e9fb0
nop
xor edx, edx
mov r8d, 0xf8
lea rcx, [rbp - 0x40]
call fcn.1401706d2
lea r15, [0x140227eb8]
mov qword [rbp - 0x40], r15
lea r12, [0x140227c80]
mov qword [rbp - 0x30], r12
lea rcx, [rbp + 0x58]
call qword [0x1401a9250]
nop
mov dword [rsp + 0x40], 1
xor r8d, r8d
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x40]
call qword [0x1401a91b0]
nop
mov rax, qword [rbp - 0x40]
movsxd rcx, dword [rax + 4]
lea rdi, vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp + rcx - 0x40], rdi
mov rax, qword [rbp - 0x40]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rbp + rcx - 0x44], edx
lea edx, [r14 + 3]
lea rcx, [rbp - 0x28]
call fcn.140057c70
nop
lea rdx, str.GetClippedPicData_length:
lea rcx, [rbp - 0x30]
call fcn.140058ba0
mov rcx, rax
mov rbx, qword [rbp + 0x150]
mov rdx, rbx
call qword [0x1401a9408]
mov rcx, rax
lea rdx, [0x1401b5868]
call fcn.140058ba0
mov rcx, rax
lea rdx, str.Hwa::Ux::HWAEditAvatarWnd::UploadPicture
call fcn.140058ba0
mov rcx, rax
lea rdx, [0x1401b5844]
call fcn.140058ba0
mov rcx, rax
mov edx, pe_nt_image_headers64
call qword [0x1401a9130]
mov rcx, rax
lea rdx, [0x1401b5840]
call fcn.140058ba0
lea rax, [rbp + 0xc0]
mov qword [rsp + 0x40], rax
lea rdx, [rbp + 0xc0]
lea rcx, [rbp - 0x28]
call fcn.140057bc0
nop
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x60], 0xf
mov byte [rsp + 0x48], r14b
lea r8d, [r14 + 0xb]
lea rdx, str.HWAccountUI
lea rcx, [rsp + 0x48]
call fcn.140047980
nop
lea rdx, [rbp + 0xc0]
lea rcx, [rsp + 0x48]
call qword [0x1401a9e98]
nop
mov rax, qword [rbp - 0x40]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x40], rdi
mov rax, qword [rbp - 0x40]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rbp + rcx - 0x44], edx
lea rcx, [rbp - 0x28]
call fcn.140055cb0
lea rcx, [rbp - 0x20]
call qword [0x1401a9120]
lea rcx, [rbp + 0x58]
call qword [0x1401a9198]
test rbx, rbx
jne 0x14011d333
xor edx, edx
mov r8d, 0xf8
lea rcx, [rbp - 0x40]
call fcn.1401706d2
mov qword [rbp - 0x40], r15
mov qword [rbp - 0x30], r12
lea rcx, [rbp + 0x58]
call qword [0x1401a9250]
nop
mov dword [rsp + 0x40], 7
xor r8d, r8d
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x40]
call qword [0x1401a91b0]
nop
mov rax, qword [rbp - 0x40]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x40], rdi
mov rax, qword [rbp - 0x40]
movsxd rcx, dword [rax + 4]
lea r8d, [rcx - 0x98]
mov dword [rbp + rcx - 0x44], r8d
lea edx, [rbx + 3]
lea rcx, [rbp - 0x28]
call fcn.140057c70
nop
lea rdx, str.GetClippedPicData_failed_
lea rcx, [rbp - 0x30]
call fcn.140058ba0
mov rcx, rax
lea rdx, [0x1401b5868]
call fcn.140058ba0
mov rcx, rax
lea rdx, str.Hwa::Ux::HWAEditAvatarWnd::UploadPicture
call fcn.140058ba0
mov rcx, rax
lea rdx, [0x1401b5844]
call fcn.140058ba0
mov rcx, rax
mov edx, 0x133
call qword [0x1401a9130]
mov rcx, rax
lea rdx, [0x1401b5840]
call fcn.140058ba0
lea rax, [rbp + 0xc0]
mov qword [rsp + 0x68], rax
lea rdx, [rbp + 0xc0]
lea rcx, [rbp - 0x28]
call fcn.140057bc0
nop
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x60], 0xf
mov byte [rsp + 0x48], bl
lea r8d, [r14 + 0xb]
lea rdx, str.HWAccountUI
lea rcx, [rsp + 0x48]
call fcn.140047980
nop
lea rdx, [rbp + 0xc0]
lea rcx, [rsp + 0x48]
call qword [0x1401a9e88]
nop
mov rax, qword [rbp - 0x40]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x40], rdi
mov rax, qword [rbp - 0x40]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rbp + rcx - 0x44], edx
lea rcx, [rbp - 0x28]
call fcn.140055cb0
lea rcx, [rbp - 0x20]
call qword [0x1401a9120]
lea rcx, [rbp + 0x58]
call qword [0x1401a9198]
jmp 0x14011d984
lea r8, [rbp + 0x140]
lea rdx, [rbp + 0xc0]
call fcn.14011dd00
nop
cmp qword [rbp + 0xd0], 0
jne 0x14011d4b1
xor edx, edx
mov r8d, 0xf8
lea rcx, [rbp - 0x40]
call fcn.1401706d2
mov qword [rbp - 0x40], r15
mov qword [rbp - 0x30], r12
lea rcx, [rbp + 0x58]
call qword [0x1401a9250]
nop
mov dword [rsp + 0x40], 0x13
xor r8d, r8d
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x40]
call qword [0x1401a91b0]
nop
mov rax, qword [rbp - 0x40]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x40], rdi
mov rax, qword [rbp - 0x40]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rbp + rcx - 0x44], edx
mov edx, 3
lea rcx, [rbp - 0x28]
call fcn.140057c70
nop
lea rdx, str.GetPicStr_failed_
lea rcx, [rbp - 0x30]
call fcn.140058ba0
mov rcx, rax
lea rdx, [0x1401b5868]
call fcn.140058ba0
mov rcx, rax
lea rdx, str.Hwa::Ux::HWAEditAvatarWnd::UploadPicture
call fcn.140058ba0
mov rcx, rax
lea rdx, [0x1401b5844]
call fcn.140058ba0
mov rcx, rax
mov edx, 0x139
call qword [0x1401a9130]
mov rcx, rax
lea rdx, [0x1401b5840]
call fcn.140058ba0
lea rax, [rsp + 0x70]
mov qword [rsp + 0x68], rax
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x28]
call fcn.140057bc0
nop
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x60], 0xf
mov byte [rsp + 0x48], 0
mov r8d, SHCreateMemStream
lea rdx, str.HWAccountUI
lea rcx, [rsp + 0x48]
call fcn.140047980
nop
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x48]
call qword [0x1401a9e88]
nop
mov rax, qword [rbp - 0x40]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x40], rdi
mov rax, qword [rbp - 0x40]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rbp + rcx - 0x44], edx
lea rcx, [rbp - 0x28]
call fcn.140055cb0
lea rcx, [rbp - 0x20]
call qword [0x1401a9120]
lea rcx, [rbp + 0x58]
call qword [0x1401a9198]
jmp 0x14011d977
lea rdx, [rbp + 0xc0]
lea rcx, [rbp + 0x100]
call fcn.14006b850
nop
lea rdx, str.headpic_tmp.png
lea rcx, [rbp + 0x160]
call qword [0x1401a98e8]
nop
lea rdx, [rbp + 0x160]
lea rcx, [rbp + 0xe0]
call qword [0x1401a9810]
nop
lea rcx, [rbp + 0xe0]
cmp qword [rbp + 0xf8], 8
cmovae rcx, qword [rbp + 0xe0]
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x14011d704
xor edx, edx
mov r8d, 0xf8
lea rcx, [rbp - 0x40]
call fcn.1401706d2
lea rcx, [rbp - 0x40]
call fcn.14006ed80
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rdx, str.CreateFile_error__getlasterror:
lea rcx, [rbp - 0x30]
call fcn.14006f5a0
mov rcx, rax
mov edx, ebx
call qword [0x1401a93e8]
mov rcx, rax
lea rdx, [0x140228ddc]
call fcn.14006f5a0
mov rcx, rax
lea rdx, str.Hwa::Ux::HWAEditAvatarWnd::UploadPicture
call fcn.14006f790
mov rcx, rax
lea rdx, [0x140228db8]
call fcn.14006f5a0
mov rcx, rax
mov edx, 0x144
call qword [0x1401a93c0]
mov rcx, rax
lea rdx, [0x140228db4]
call fcn.14006f5a0
nop
movdqa xmm0, xmmword [0x14024d4b0]
movdqu xmmword [rsp + 0x58], xmm0
mov word [rsp + 0x48], r14w
mov dword [rsp + 0x40], 0x83
mov rcx, qword [rbp + 0x48]
test cl, 2
jne 0x14011d608
mov rax, qword [rbp + 0x18]
mov r8, qword [rax]
test r8, r8
je 0x14011d608
mov rax, qword [rbp - 8]
mov rdx, qword [rax]
cmp r8, qword [rbp + 0x40]
cmovb r8, qword [rbp + 0x40]
sub r8, rdx
jmp 0x14011d630
test cl, 4
jne 0x14011d63e
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax]
test rcx, rcx
je 0x14011d63e
mov rax, qword [rbp - 0x10]
mov rdx, qword [rax]
mov rax, qword [rbp + 0x28]
movsxd r8, dword [rax]
add r8, r8
sub r8, rdx
add r8, rcx
sar r8, 1
lea rcx, [rsp + 0x48]
call fcn.140053f60
nop
lea rdx, [rsp + 0x48]
lea rcx, [rbp + 0x120]
call qword [0x1401a9800]
nop
lea rcx, [rsp + 0x48]
call fcn.1400524a0
lea rax, [rbp - 0x68]
mov qword [rsp + 0x68], rax
lea rdx, [rbp + 0x120]
lea rcx, [rbp - 0x68]
call fcn.140054ae0
mov rbx, rax
mov qword [rbp - 0x80], r14
mov qword [rbp - 0x78], 0xf
mov byte [rsp + 0x70], 0
mov r8d, SHCreateMemStream
lea rdx, str.HWAccountUI
lea rcx, [rsp + 0x70]
call fcn.140047980
nop
mov rdx, rbx
lea rcx, [rsp + 0x70]
call qword [0x1401a9e88]
nop
lea rcx, [rbp + 0x120]
call fcn.140047920
nop
mov rax, qword [rbp - 0x40]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov qword [rbp + rcx - 0x40], rax
mov rax, qword [rbp - 0x40]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rbp + rcx - 0x44], edx
lea rcx, [rbp - 0x28]
call fcn.14006f390
lea rcx, [rbp - 0x20]
call qword [0x1401a93c8]
lea rcx, [rbp + 0x58]
call qword [0x1401a9368]
jmp 0x14011d950
mov dword [rbp - 0x48], r14d
lea rdx, [rbp + 0x100]
cmp qword [rbp + 0x118], 0x10
cmovae rdx, qword [rbp + 0x100]
mov qword [rsp + 0x20], r14
lea r9, [rbp - 0x48]
mov r8d, dword [rbp + 0x110]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14011d912
xor edx, edx
mov r8d, 0xf8
lea rcx, [rbp - 0x40]
call fcn.1401706d2
lea rcx, [rbp - 0x40]
call fcn.14006ed80
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rdx, str.WriteFile_error__getlasterror:
lea rcx, [rbp - 0x30]
call fcn.14006f5a0
mov rcx, rax
mov edx, ebx
call qword [0x1401a93e8]
mov rcx, rax
lea rdx, [0x140228ddc]
call fcn.14006f5a0
mov rcx, rax
lea rdx, str.Hwa::Ux::HWAEditAvatarWnd::UploadPicture
call fcn.14006f790
mov rcx, rax
lea rdx, [0x140228db8]
call fcn.14006f5a0
mov rcx, rax
mov edx, 0x14a
call qword [0x1401a93c0]
mov rcx, rax
lea rdx, [0x140228db4]
call fcn.14006f5a0
nop
movdqa xmm0, xmmword [0x14024d4b0]
movdqu xmmword [rbp - 0x80], xmm0
mov word [rsp + 0x70], r14w
mov dword [rsp + 0x40], 0x203
mov rcx, qword [rbp + 0x48]
test cl, 2
jne 0x14011d80e
mov rax, qword [rbp + 0x18]
mov r8, qword [rax]
test r8, r8
je 0x14011d80e
mov rax, qword [rbp - 8]
mov rdx, qword [rax]
cmp r8, qword [rbp + 0x40]
cmovb r8, qword [rbp + 0x40]
sub r8, rdx
jmp 0x14011d836
test cl, 4
jne 0x14011d844
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax]
test rcx, rcx
je 0x14011d844
mov rax, qword [rbp - 0x10]
mov rdx, qword [rax]
mov rax, qword [rbp + 0x28]
movsxd r8, dword [rax]
add r8, r8
sub r8, rdx
add r8, rcx
sar r8, 1
lea rcx, [rsp + 0x70]
call fcn.140053f60
nop
lea rdx, [rsp + 0x70]
lea rcx, [rbp + 0x120]
call qword [0x1401a9800]
nop
lea rcx, [rsp + 0x70]
call fcn.1400524a0
lea rax, [rbp - 0x68]
mov qword [rsp + 0x68], rax
lea rdx, [rbp + 0x120]
lea rcx, [rbp - 0x68]
call fcn.140054ae0
mov rbx, rax
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x60], 0xf
mov byte [rsp + 0x48], 0
mov r8d, SHCreateMemStream
lea rdx, str.HWAccountUI
lea rcx, [rsp + 0x48]
call fcn.140047980
nop
mov rdx, rbx
lea rcx, [rsp + 0x48]
call qword [0x1401a9e88]
nop
lea rcx, [rbp + 0x120]
call fcn.140047920
nop
mov rax, qword [rbp - 0x40]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov qword [rbp + rcx - 0x40], rax
mov rax, qword [rbp - 0x40]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rbp + rcx - 0x44], edx
lea rcx, [rbp - 0x28]
call fcn.14006f390
lea rcx, [rbp - 0x20]
call qword [0x1401a93c8]
lea rcx, [rbp + 0x58]
call qword [0x1401a9368]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14011d950
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp - 0x80], r14
mov qword [rbp - 0x78], r14
lea rdx, [rbp + 0xe0]
lea rcx, [rsp + 0x70]
call fcn.140054480
lea rcx, [rsi + 0x8b8]
lea r8, [rsp + 0x70]
call fcn.14011e680
mov dl, 1
mov rcx, rsi
call fcn.14011d9c0
nop
lea rcx, [rbp + 0xe0]
call fcn.1400524a0
nop
lea rcx, [rbp + 0x160]
call fcn.140047920
nop
lea rcx, [rbp + 0x100]
call fcn.140047920
nop
lea rcx, [rbp + 0xc0]
call fcn.140047920
nop
lea rcx, [rbp + 0x140]
call fcn.140047920
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.14016ee40
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret