Function at 0x180117b90
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 [0x18013c030]
xor rax, rsp
mov qword [rsp + 0x138], rax
lea r8, str..bmp
mov rdx, qword [rsp + 0x158]
lea rcx, [rsp + 0xc8]
call fcn.180117530
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, [0x180121bcc]
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 0x180117cc3
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, [0x180121bd8]
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, [0x180121bf0]
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 0x1801183d5
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 0x180117d6d
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, [0x180121bf8]
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, [0x180121c18]
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 0x1801183d5
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 0x180117e15
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, [0x180121c20]
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, [0x180121c40]
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 0x1801183d5
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 0x180117ec3
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, [0x180121c48]
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, [0x180121c68]
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 0x1801183d5
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.1801190e0
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 0x180117fcd
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, [0x180121c70]
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, [0x180121c90]
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 0x1801183d5
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.1801190e0
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 0x180118034
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 0x18011812b
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.1801190e0
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x1801180ed
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.180102440]
mov qword [rsp + 0x20], rcx
lea r9, [fcn.180101eb0]
mov r8, qword [rsp + 0xa8]
mov edx, 0x28
mov rcx, rax
call fcn.180118dd4
mov rax, qword [rsp + 0x50]
add rax, 8
mov qword [rsp + 0xb0], rax
jmp 0x1801180f9
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 0x18011802a
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 0x180118173
mov eax, dword [rsp + 0x30]
add eax, 3
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x38]
cmp dword [rsp + 0x30], eax
jge 0x180118246
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 0x180118241
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 0x180118241
jmp 0x180118246
jmp 0x180118168
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0xf0], rax
mov rcx, qword [rsp + 0xf0]
call fcn.180118cd0
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.1801025c0
movzx eax, al
test eax, eax
je 0x1801183d0
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.1801025c0
movzx eax, al
test eax, eax
je 0x1801183d0
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.1801025c0
movzx eax, al
test eax, eax
je 0x1801183d0
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.1801027a0
mov rcx, qword [rsp + 0x150]
mov dword [rcx + 0x18], eax
mov eax, 1
mov rcx, qword [rsp + 0x138]
xor rcx, rsp
call fcn.180118810
add rsp, 0x148
ret