Function at 0x18011d9d0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x108
mov rax, qword [0x180147030]
xor rax, rsp
mov qword [rsp + 0xf0], rax
mov dword [rsp + 0x50], 0
mov dword [rsp + 0x58], 0
mov dword [rsp + 0x5c], 0
mov dword [rsp + 0x60], 0
mov qword [rsp + 0x80], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, str.DISPLAY
call qword [sym.imp.GDI32.dll_CreateDCW]
mov qword [rsp + 0x48], rax
mov edx, 0xc
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.GDI32.dll_GetDeviceCaps]
mov dword [rsp + 0x78], eax
mov edx, 0xe
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.GDI32.dll_GetDeviceCaps]
mov ecx, dword [rsp + 0x78]
imul ecx, eax
mov eax, ecx
mov dword [rsp + 0x54], eax
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.GDI32.dll_DeleteDC]
cmp dword [rsp + 0x54], 1
jg 0x18011da8a
mov eax, 1
mov word [rsp + 0x40], ax
jmp 0x18011daba
cmp dword [rsp + 0x54], 4
jg 0x18011da9d
mov eax, 4
mov word [rsp + 0x40], ax
jmp 0x18011daba
cmp dword [rsp + 0x54], 8
jg 0x18011dab0
mov eax, 8
mov word [rsp + 0x40], ax
jmp 0x18011daba
mov eax, 0x18
mov word [rsp + 0x40], ax
lea r8, [rsp + 0x98]
mov edx, 0x20
mov rcx, qword [rsp + 0x120]
call qword [sym.imp.GDI32.dll_GetObjectW]
mov dword [rsp + 0xc8], 0x28
mov eax, dword [rsp + 0x9c]
mov dword [rsp + 0xcc], eax
mov eax, dword [rsp + 0xa0]
mov dword [rsp + 0xd0], eax
mov eax, 1
mov word [rsp + 0xd4], ax
movzx eax, word [rsp + 0x40]
mov word [rsp + 0xd6], ax
mov dword [rsp + 0xd8], 0
mov dword [rsp + 0xdc], 0
mov dword [rsp + 0xe0], 0
mov dword [rsp + 0xe4], 0
mov dword [rsp + 0xec], 0
mov dword [rsp + 0xe8], 0
movzx eax, word [rsp + 0x40]
mov ecx, dword [rsp + 0x9c]
imul ecx, eax
mov eax, ecx
add eax, 0x1f
cdq
and edx, 0x1f
add eax, edx
sar eax, 5
shl eax, 2
imul eax, dword [rsp + 0xa0]
mov dword [rsp + 0x58], eax
mov eax, dword [rsp + 0x50]
mov ecx, dword [rsp + 0x58]
add ecx, eax
mov eax, ecx
mov eax, eax
add rax, 0x28
mov rdx, rax
mov ecx, 0x42
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov qword [rsp + 0x88], rax
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov qword [rsp + 0x68], rax
lea rax, [rsp + 0xc8]
mov rdi, qword [rsp + 0x68]
mov rsi, rax
mov ecx, 0x28
rep movsb byte [rdi], byte [rsi]
mov ecx, 0xf
call qword [sym.imp.GDI32.dll_GetStockObject]
mov qword [rsp + 0x90], rax
cmp qword [rsp + 0x90], 0
je 0x18011dc2a
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetDC]
mov qword [rsp + 0x48], rax
xor r8d, r8d
mov rdx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.GDI32.dll_SelectPalette]
mov qword [rsp + 0x80], rax
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.GDI32.dll_RealizePalette]
mov eax, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x68]
lea rax, [rcx + rax + 0x28]
mov dword [rsp + 0x30], 0
mov rcx, qword [rsp + 0x68]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0xa0]
xor r8d, r8d
mov rdx, qword [rsp + 0x120]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.GDI32.dll_GetDIBits]
cmp qword [rsp + 0x80], 0
je 0x18011dca9
mov r8d, 1
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.GDI32.dll_SelectPalette]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.GDI32.dll_RealizePalette]
mov rdx, qword [rsp + 0x48]
xor ecx, ecx
call qword [sym.imp.USER32.dll_ReleaseDC]
mov rcx, qword [rsp + 0x128]
call qword [sym.imp.mfc140u.dll_CDumpContext::operator___1]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x8000080
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x70], rax
cmp qword [rsp + 0x70], 0xffffffffffffffff
jne 0x18011dd04
mov rcx, qword [rsp + 0x128]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
jmp 0x18011ddce
mov eax, 0x4d42
mov word [rsp + 0xb8], ax
mov eax, dword [rsp + 0x50]
mov ecx, dword [rsp + 0x58]
lea rax, [rax + rcx + 0x36]
mov dword [rsp + 0x5c], eax
mov eax, dword [rsp + 0x5c]
mov dword [rsp + 0xba], eax
xor eax, eax
mov word [rsp + 0xbe], ax
xor eax, eax
mov word [rsp + 0xc0], ax
mov eax, dword [rsp + 0x50]
add eax, 0x36
mov dword [rsp + 0xc2], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x60]
mov r8d, 0xe
lea rdx, [rsp + 0xb8]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x60]
mov r8d, dword [rsp + 0x5c]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x128]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
mov rcx, qword [rsp + 0xf0]
xor rcx, rsp
call fcn.180123e40
add rsp, 0x108
pop rdi
pop rsi
ret