Function at 0x14007a1a0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xb0
mov rdi, rdx
mov edx, 0x3a
mov r14, r9
mov ebp, r8d
mov r12, rcx
cmp dx, word [rdi]
jne 0x14007a1f9
add rdi, 2
mov rcx, rdi
call qword [sym.imp.SHLWAPI.DLL_StrChrW]
xor ebx, ebx
cmp rax, rbx
je 0x14007a2fb
mov rsi, rdi
mov word [rdi], bx
add rdi, 2
jmp 0x14007a2cc
xor edx, edx
mov rcx, rdi
lea r8d, [rdx + 0x5c]
call qword [sym.imp.SHLWAPI.DLL_StrRChrW]
xor edx, edx
mov rcx, rdi
lea r8d, [rdx + 0x2e]
call qword [sym.imp.SHLWAPI.DLL_StrRChrW]
xor ebx, ebx
lea rsi, [rax + 2]
cmp rax, rbx
je 0x14007a2fb
lea rdx, [0x14011eff0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.DLL_lstrcmpiW]
cmp eax, ebx
jne 0x14007a246
lea rsi, [0x14011efd8]
jmp 0x14007a2d1
lea rdx, [0x14011efd0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.DLL_lstrcmpiW]
cmp eax, ebx
je 0x14007a2c5
lea rdx, [0x14011efc0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.DLL_lstrcmpiW]
cmp eax, ebx
je 0x14007a2c5
lea rdx, [0x14011efb8]
mov rcx, rsi
call qword [sym.imp.KERNEL32.DLL_lstrcmpiW]
cmp eax, ebx
jne 0x14007a28b
lea rsi, [0x14011efa0]
jmp 0x14007a2d1
lea rdx, [0x14011ef90]
mov rcx, rsi
call qword [sym.imp.KERNEL32.DLL_lstrcmpiW]
cmp eax, ebx
jne 0x14007a2a8
lea rsi, [0x14011ef78]
jmp 0x14007a2d1
lea rdx, [0x14011ef70]
mov rcx, rsi
call qword [sym.imp.KERNEL32.DLL_lstrcmpiW]
cmp eax, ebx
jne 0x14007a2fb
lea rsi, [0x14011ef58]
jmp 0x14007a2d1
lea rsi, [0x14011ef40]
cmp rsi, rbx
je 0x14007a2fb
lea rdx, [0x14011ef70]
mov rcx, rsi
call qword [sym.imp.SHLWAPI.DLL_StrCmpIW]
cmp eax, ebx
je 0x14007a2fb
mov r9d, ebp
mov r8, rsi
mov rdx, rdi
mov rcx, r12
call fcn.14007a090
jmp 0x14007a607
cmp ebp, ebx
je 0x14007a309
mov eax, 1
jmp 0x14007a607
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r14
mov r13d, ebx
mov r15, rbx
call qword [sym.imp.GDI32.DLL_CreateDCW]
mov edx, 0xe
mov rcx, rax
mov rbp, rax
call qword [sym.imp.GDI32.DLL_GetDeviceCaps]
mov edx, 0xc
mov rcx, rbp
mov r14d, eax
call qword [sym.imp.GDI32.DLL_GetDeviceCaps]
mov rcx, rbp
imul r14d, eax
call qword [sym.imp.GDI32.DLL_DeleteDC]
mov edx, 0x20
lea esi, [rdx - 0x1f]
cmp r14d, esi
jg 0x14007a362
mov r12w, si
jmp 0x14007a378
mov r12d, 4
cmp r14d, r12d
jle 0x14007a378
mov r12d, 8
cmp r14d, r12d
jg 0x14007a387
mov cl, r12b
mov r13d, esi
shl r13d, cl
shl r13d, 2
jmp 0x14007a396
mov r12d, 0x18
cmp r14d, r12d
jle 0x14007a396
mov r12w, dx
mov rcx, qword [rsp + 0xf0]
lea r8, [rsp + 0x60]
call qword [sym.imp.GDI32.DLL_GetObjectW]
mov ecx, dword [rsp + 0x64]
mov r8d, dword [rsp + 0x68]
movzx eax, r12w
mov dword [rsp + 0x84], ecx
mov dword [rsp + 0x80], 0x28
mov dword [rsp + 0x88], r8d
mov word [rsp + 0x8c], si
mov word [rsp + 0x8e], r12w
imul eax, ecx
add eax, 0x1f
mov ecx, 0x42
mov dword [rsp + 0x90], ebx
cdq
mov dword [rsp + 0x94], ebx
mov dword [rsp + 0x98], ebx
and edx, 0x1f
mov dword [rsp + 0x9c], ebx
mov dword [rsp + 0xa0], ebx
add eax, edx
mov dword [rsp + 0xa4], ebx
sar eax, 5
imul eax, r8d
shl eax, 2
add eax, r13d
mov edx, eax
mov dword [rsp + 0xf8], eax
add rdx, 0x28
call qword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov rcx, rax
mov r14, rax
call qword [sym.imp.KERNEL32.DLL_GlobalLock]
lea rdx, [rsp + 0x80]
mov r8d, 0x28
mov rcx, rax
mov r12, rax
call fcn.1400fafa0
mov ecx, 0xf
call qword [sym.imp.GDI32.DLL_GetStockObject]
mov qword [rsp + 0x48], rax
cmp rax, rbx
je 0x14007a49e
xor ecx, ecx
call qword [sym.imp.USER32.DLL_GetDC]
mov rdx, qword [rsp + 0x48]
xor r8d, r8d
mov rcx, rax
mov rbp, rax
call qword [sym.imp.GDI32.DLL_SelectPalette]
mov rcx, rbp
mov r15, rax
call qword [sym.imp.GDI32.DLL_RealizePalette]
mov r9d, dword [rsp + 0x68]
mov ecx, r13d
mov dword [rsp + 0x30], ebx
lea rdx, [rcx + r12 + 0x28]
mov qword [rsp + 0x28], r12
xor r8d, r8d
mov qword [rsp + 0x20], rdx
mov rdx, qword [rsp + 0xf0]
mov rcx, rbp
call qword [sym.imp.GDI32.DLL_GetDIBits]
cmp r15, rbx
je 0x14007a4f5
mov r8d, esi
mov rdx, r15
mov rcx, rbp
call qword [sym.imp.GDI32.DLL_SelectPalette]
mov rcx, rbp
call qword [sym.imp.GDI32.DLL_RealizePalette]
mov rdx, rbp
xor ecx, ecx
call qword [sym.imp.USER32.DLL_ReleaseDC]
mov ebp, dword [rsp + 0xf8]
mov eax, 0x4d42
mov word [rsp + 0x56], bx
mov word [rsp + 0x50], ax
lea eax, [rbp + 0x36]
add ebp, 0x28
mov dword [rsp + 0x52], eax
lea eax, [r13 + 0x36]
mov word [rsp + 0x58], bx
mov dword [rsp + 0x5a], eax
cmp rdi, rbx
je 0x14007a5af
mov qword [rsp + 0x30], rbx
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, rdi
mov dword [rsp + 0x28], 0x8000080
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.DLL_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x14007a56d
call qword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, ebx
cmove eax, esi
jmp 0x14007a607
lea r9, [rsp + 0x40]
lea rdx, [rsp + 0x50]
mov r8d, 0xe
mov rcx, rax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.DLL_WriteFile]
lea r9, [rsp + 0x40]
mov r8d, ebp
mov rdx, r12
mov rcx, rdi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.DLL_WriteFile]
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x14007a5f3
lea eax, [rbp + 0xe]
lea rcx, [0x140135060]
mov dword [0x140134824], eax
add eax, 8
movsxd rdx, eax
call fcn.140061744
mov rbx, qword [0x140135060]
lea rdx, [rsp + 0x50]
mov rcx, rbx
mov r8d, 0xe
call fcn.14001d310
lea rcx, [rbx + 0xe]
movsxd r8, ebp
mov rdx, r12
call fcn.14001d310
mov rcx, r14
call qword [sym.imp.KERNEL32.DLL_GlobalUnlock]
mov rcx, r14
call qword [sym.imp.KERNEL32.DLL_GlobalFree]
xor eax, eax
mov rbx, qword [rsp + 0x100]
add rsp, 0xb0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret