Function at 0x1801231b0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x148
mov qword [rsp + 0xf8], 0xfffffffffffffffe
mov rax, qword [0x180147030]
xor rax, rsp
mov qword [rsp + 0x138], rax
lea r8, str..bmp
mov rdx, qword [rsp + 0x158]
lea rcx, [rsp + 0xc8]
call fcn.180122b50
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0xc0], rax
mov rax, qword [rsp + 0x150]
add rax, 0x20
mov rdx, qword [rsp + 0xc0]
mov rcx, rax
call qword [sym.imp.mfc140u.dll_Ordinal_1501]
nop
lea rcx, [rsp + 0xc8]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
mov rax, qword [rsp + 0x150]
add rax, 0x20
mov rcx, rax
call qword [sym.imp.mfc140u.dll_CDumpContext::operator___1]
lea rdx, [0x18012cbec]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x1801232e3
lea rcx, [rsp + 0x80]
call qword [sym.imp.mfc140u.dll_Ordinal_296]
nop
mov rax, qword [rsp + 0x150]
mov r8, qword [rax + 0x20]
lea rdx, [0x18012cbf8]
lea rcx, [rsp + 0x80]
call qword [sym.imp.mfc140u.dll_CMFCZoomKernel::Filter]
lea rcx, [rsp + 0x80]
call qword [sym.imp.mfc140u.dll_CDumpContext::operator___1]
xor r9d, r9d
lea r8, [0x18012cc10]
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov dword [rsp + 0x60], 0
lea rcx, [rsp + 0x80]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
mov eax, dword [rsp + 0x60]
jmp 0x1801239f5
mov r9, qword [rsp + 0x40]
mov r8d, 1
mov edx, 0xe
lea rcx, [rsp + 0x128]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
movzx eax, word [rsp + 0x128]
cmp eax, 0x4d42
je 0x18012338d
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
lea rcx, [rsp + 0x88]
call qword [sym.imp.mfc140u.dll_Ordinal_296]
nop
mov rax, qword [rsp + 0x150]
mov r8, qword [rax + 0x20]
lea rdx, [0x18012cc18]
lea rcx, [rsp + 0x88]
call qword [sym.imp.mfc140u.dll_CMFCZoomKernel::Filter]
lea rcx, [rsp + 0x88]
call qword [sym.imp.mfc140u.dll_CDumpContext::operator___1]
xor r9d, r9d
lea r8, [0x18012cc38]
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov dword [rsp + 0x64], 0
lea rcx, [rsp + 0x88]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
mov eax, dword [rsp + 0x64]
jmp 0x1801239f5
mov r9, qword [rsp + 0x40]
mov r8d, 1
mov edx, 0x28
lea rcx, [rsp + 0x100]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov eax, dword [rsp + 0x100]
cmp rax, 0x28
je 0x180123435
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
lea rcx, [rsp + 0x90]
call qword [sym.imp.mfc140u.dll_Ordinal_296]
nop
mov rax, qword [rsp + 0x150]
mov r8, qword [rax + 0x20]
lea rdx, [0x18012cc40]
lea rcx, [rsp + 0x90]
call qword [sym.imp.mfc140u.dll_CMFCZoomKernel::Filter]
lea rcx, [rsp + 0x90]
call qword [sym.imp.mfc140u.dll_CDumpContext::operator___1]
xor r9d, r9d
lea r8, [0x18012cc60]
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov dword [rsp + 0x68], 0
lea rcx, [rsp + 0x90]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
mov eax, dword [rsp + 0x68]
jmp 0x1801239f5
mov rax, qword [rsp + 0x150]
mov ecx, dword [rsp + 0x104]
mov dword [rax + 8], ecx
mov rax, qword [rsp + 0x150]
mov ecx, dword [rsp + 0x108]
mov dword [rax + 0xc], ecx
movzx eax, word [rsp + 0x10e]
cmp eax, 0x18
je 0x1801234e3
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
lea rcx, [rsp + 0x98]
call qword [sym.imp.mfc140u.dll_Ordinal_296]
nop
mov rax, qword [rsp + 0x150]
mov r8, qword [rax + 0x20]
lea rdx, [0x18012cc68]
lea rcx, [rsp + 0x98]
call qword [sym.imp.mfc140u.dll_CMFCZoomKernel::Filter]
lea rcx, [rsp + 0x98]
call qword [sym.imp.mfc140u.dll_CDumpContext::operator___1]
xor r9d, r9d
lea r8, [0x18012cc88]
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov dword [rsp + 0x6c], 0
lea rcx, [rsp + 0x98]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
mov eax, dword [rsp + 0x6c]
jmp 0x1801239f5
movzx eax, word [rsp + 0x10e]
mov rcx, qword [rsp + 0x150]
mov ecx, dword [rcx + 8]
imul ecx, eax
mov eax, ecx
cdq
and edx, 7
add eax, edx
sar eax, 3
add eax, 3
cdq
and edx, 3
add eax, edx
sar eax, 2
shl eax, 2
mov rcx, qword [rsp + 0x150]
imul eax, dword [rcx + 0xc]
mov dword [rsp + 0x38], eax
movsxd rax, dword [rsp + 0x38]
mov rcx, rax
call fcn.180124710
mov qword [rsp + 0xd0], rax
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0x48], rax
movsxd rax, dword [rsp + 0x38]
mov r9, qword [rsp + 0x40]
mov r8, rax
mov edx, 1
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov dword [rsp + 0x70], eax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov eax, dword [rsp + 0x38]
cmp dword [rsp + 0x70], eax
je 0x1801235ed
lea rcx, [rsp + 0xa0]
call qword [sym.imp.mfc140u.dll_Ordinal_296]
nop
mov rax, qword [rsp + 0x150]
mov r8, qword [rax + 0x20]
lea rdx, [0x18012cc90]
lea rcx, [rsp + 0xa0]
call qword [sym.imp.mfc140u.dll_CMFCZoomKernel::Filter]
lea rcx, [rsp + 0xa0]
call qword [sym.imp.mfc140u.dll_CDumpContext::operator___1]
xor r9d, r9d
lea r8, [0x18012ccb0]
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov dword [rsp + 0x74], 0
lea rcx, [rsp + 0xa0]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
mov eax, dword [rsp + 0x74]
jmp 0x1801239f5
mov rax, qword [rsp + 0x150]
movsxd rax, dword [rax + 0xc]
mov qword [rsp + 0xd8], rax
mov eax, 8
mov rcx, qword [rsp + 0xd8]
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.180124710
mov qword [rsp + 0xe0], rax
mov rax, qword [rsp + 0x150]
mov rcx, qword [rsp + 0xe0]
mov qword [rax + 0x10], rcx
mov dword [rsp + 0x30], 0
jmp 0x180123654
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x150]
mov eax, dword [rax + 0xc]
cmp dword [rsp + 0x30], eax
jge 0x18012374b
mov rax, qword [rsp + 0x150]
movsxd rax, dword [rax + 8]
mov qword [rsp + 0xa8], rax
mov eax, 0x28
mul qword [rsp + 0xa8]
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
add rax, 8
mov rcx, 0xffffffffffffffff
cmovb rax, rcx
mov rcx, rax
call fcn.180124710
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x18012370d
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0xa8]
mov qword [rax], rcx
mov rax, qword [rsp + 0x50]
add rax, 8
lea rcx, [fcn.18010da60]
mov qword [rsp + 0x20], rcx
lea r9, [fcn.18010d4d0]
mov r8, qword [rsp + 0xa8]
mov edx, 0x28
mov rcx, rax
call fcn.180124404
mov rax, qword [rsp + 0x50]
add rax, 8
mov qword [rsp + 0xb0], rax
jmp 0x180123719
mov qword [rsp + 0xb0], 0
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0xe8], rax
movsxd rax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x150]
mov rcx, qword [rcx + 0x10]
mov rdx, qword [rsp + 0xe8]
mov qword [rcx + rax*8], rdx
jmp 0x18012364a
mov rax, qword [rsp + 0x150]
mov eax, dword [rax + 0xc]
dec eax
mov dword [rsp + 0x3c], eax
mov dword [rsp + 0x34], 0
mov rax, qword [rsp + 0x150]
mov eax, dword [rax + 8]
cdq
and edx, 3
add eax, edx
and eax, 3
sub eax, edx
mov dword [rsp + 0x78], eax
mov dword [rsp + 0x30], 0
jmp 0x180123793
mov eax, dword [rsp + 0x30]
add eax, 3
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x38]
cmp dword [rsp + 0x30], eax
jge 0x180123866
movsxd rax, dword [rsp + 0x3c]
mov rcx, qword [rsp + 0x150]
mov rcx, qword [rcx + 0x10]
movsxd rdx, dword [rsp + 0x34]
imul rdx, rdx, 0x28
add rdx, qword [rcx + rax*8]
mov rax, rdx
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov dword [rax], 1
movsxd rax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x48]
movzx eax, byte [rdx + rax]
mov byte [rcx + 6], al
mov eax, dword [rsp + 0x30]
inc eax
cdqe
mov rcx, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x48]
movzx eax, byte [rdx + rax]
mov byte [rcx + 5], al
mov eax, dword [rsp + 0x30]
add eax, 2
cdqe
mov rcx, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x48]
movzx eax, byte [rdx + rax]
mov byte [rcx + 4], al
mov eax, dword [rsp + 0x34]
inc eax
mov dword [rsp + 0x34], eax
mov rax, qword [rsp + 0x150]
mov eax, dword [rax + 8]
cmp dword [rsp + 0x34], eax
jl 0x180123861
mov eax, dword [rsp + 0x78]
mov ecx, dword [rsp + 0x30]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x3c]
dec eax
mov dword [rsp + 0x3c], eax
mov dword [rsp + 0x34], 0
cmp dword [rsp + 0x3c], 0
jge 0x180123861
jmp 0x180123866
jmp 0x180123788
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0xf0], rax
mov rcx, qword [rsp + 0xf0]
call fcn.180124300
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x150]
mov rcx, qword [rcx + 0x10]
mov rdx, qword [rsp + 0x150]
mov edx, dword [rdx + 8]
dec edx
movsxd rdx, edx
imul rdx, rdx, 0x28
add rdx, qword [rcx + rax]
mov rax, rdx
mov ecx, 8
imul rcx, rcx, 0
mov rdx, qword [rsp + 0x150]
mov rdx, qword [rdx + 0x10]
mov r8d, 0x28
imul r8, r8, 0
add r8, qword [rdx + rcx]
mov rcx, r8
mov rdx, rax
call fcn.18010dbe0
movzx eax, al
test eax, eax
je 0x1801239f0
mov rax, qword [rsp + 0x150]
mov eax, dword [rax + 0xc]
dec eax
cdqe
mov rcx, qword [rsp + 0x150]
mov rcx, qword [rcx + 0x10]
mov rdx, qword [rsp + 0x150]
mov edx, dword [rdx + 8]
dec edx
movsxd rdx, edx
imul rdx, rdx, 0x28
add rdx, qword [rcx + rax*8]
mov rax, rdx
mov ecx, 8
imul rcx, rcx, 0
mov rdx, qword [rsp + 0x150]
mov rdx, qword [rdx + 0x10]
mov r8d, 0x28
imul r8, r8, 0
add r8, qword [rdx + rcx]
mov rcx, r8
mov rdx, rax
call fcn.18010dbe0
movzx eax, al
test eax, eax
je 0x1801239f0
mov rax, qword [rsp + 0x150]
mov eax, dword [rax + 0xc]
dec eax
cdqe
mov rcx, qword [rsp + 0x150]
mov rcx, qword [rcx + 0x10]
mov edx, 0x28
imul rdx, rdx, 0
add rdx, qword [rcx + rax*8]
mov rax, rdx
mov ecx, 8
imul rcx, rcx, 0
mov rdx, qword [rsp + 0x150]
mov rdx, qword [rdx + 0x10]
mov r8d, 0x28
imul r8, r8, 0
add r8, qword [rdx + rcx]
mov rcx, r8
mov rdx, rax
call fcn.18010dbe0
movzx eax, al
test eax, eax
je 0x1801239f0
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x150]
mov rcx, qword [rcx + 0x10]
mov edx, 0x28
imul rdx, rdx, 0
add rdx, qword [rcx + rax]
mov rax, rdx
mov rcx, rax
call fcn.18010ddc0
mov rcx, qword [rsp + 0x150]
mov dword [rcx + 0x18], eax
mov eax, 1
mov rcx, qword [rsp + 0x138]
xor rcx, rsp
call fcn.180123e40
add rsp, 0x148
ret