Function at 0x1400510c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x128
mov qword [rsp + 0xf0], 0xfffffffffffffffe
mov qword [rsp + 0x38], 0
mov edx, dword [rsp + 0x138]
mov rcx, qword [rsp + 0x130]
call fcn.1400a1268
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x14005113e
mov r8d, dword [rsp + 0x138]
lea rdx, [0x14011e808]
lea rcx, str._s___This_Item_is_CWnd_NULL_dwBitmapID__d_._n
call fcn.140062f80
nop
mov rcx, qword [rsp + 0x148]
call fcn.140003a70
jmp 0x140051543
mov dword [rsp + 0x60], 1
lea rdx, [0x14011e802]
lea rcx, [rsp + 0x68]
call fcn.140002bb0
nop
mov rcx, qword [rsp + 0x148]
call fcn.140003570
movzx eax, al
test eax, eax
jne 0x140051418
lea rdx, [0x14011e803]
lea rcx, [rsp + 0x70]
call fcn.140002bb0
nop
call fcn.140007560
mov r9, qword [rsp + 0x148]
mov r9, qword [r9]
mov r8, qword [rax + 0x170]
lea rdx, [0x14011e850]
lea rcx, [rsp + 0x70]
call fcn.140003170
lea rcx, [rsp + 0x70]
call fcn.1400018a0
lea rdx, [rsp + 0x68]
mov rcx, rax
call fcn.140066e20
test eax, eax
je 0x1400513f3
xor r9d, r9d
mov r8d, 0xffffffff
xor edx, edx
lea rcx, [rsp + 0x98]
call fcn.140003810
nop
lea rcx, [rsp + 0x78]
call fcn.1400b41d4
nop
lea rcx, [rsp + 0xb8]
call fcn.140096f80
nop
lea rcx, [rsp + 0x68]
call fcn.1400018a0
lea r9, [rsp + 0x98]
mov r8d, 0x8000
mov rdx, rax
lea rcx, [rsp + 0x78]
call fcn.1400b4a70
mov dword [rsp + 0xf8], eax
cmp dword [rsp + 0xf8], 0
je 0x1400513a7
lea rcx, [rsp + 0x78]
call fcn.1400b4070
mov qword [rsp + 0x100], rax
mov eax, dword [rsp + 0x100]
mov dword [rsp + 0xc8], eax
mov ecx, dword [rsp + 0xc8]
call fcn.140096bcc
mov qword [rsp + 0x108], rax
mov rax, qword [rsp + 0x108]
mov qword [rsp + 0xe0], rax
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x1400512fb
lea rdx, [0x14011e858]
lea rcx, str._s___Memory_Alloc_Error_for_Bitmap_of_PowerOff_dialog._n
call fcn.140062f80
lea rcx, [rsp + 0x78]
call fcn.1400b414c
nop
lea rcx, [rsp + 0xb8]
call fcn.140003750
nop
lea rcx, [rsp + 0x78]
call fcn.1400b450c
nop
lea rcx, [rsp + 0x98]
call fcn.140003770
nop
lea rcx, [rsp + 0x70]
call fcn.140003a70
nop
lea rcx, [rsp + 0x68]
call fcn.140003a70
nop
mov rcx, qword [rsp + 0x148]
call fcn.140003a70
jmp 0x140051543
lea rcx, [rsp + 0x78]
call fcn.140051d40
mov r8d, dword [rsp + 0xc8]
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x78]
call fcn.1400b3e08
lea rcx, [rsp + 0x78]
call fcn.1400b414c
mov r8d, 2
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0xd0]
call fcn.140002ce0
mov qword [rsp + 0x110], rax
lea rdx, [0x14011e804]
lea rcx, [rsp + 0xd0]
call fcn.140002d80
mov dword [rsp + 0x118], eax
cmp dword [rsp + 0x118], 0
jne 0x140051375
mov dword [rsp + 0x60], 0
jmp 0x14005137d
mov dword [rsp + 0x60], 1
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0xe8], rax
mov rcx, qword [rsp + 0xe8]
call fcn.140096bc4
nop
lea rcx, [rsp + 0xd0]
call fcn.140003a70
jmp 0x1400513cb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, [0x14011e8a8]
lea rcx, str._s___File_Open_Error__d__for_Bitmap_of_PowerOff_dialog._n
call fcn.140062f80
mov dword [rsp + 0x60], 1
lea rcx, [rsp + 0xb8]
call fcn.140003750
nop
lea rcx, [rsp + 0x78]
call fcn.1400b450c
nop
lea rcx, [rsp + 0x98]
call fcn.140003770
jmp 0x14005140e
lea rdx, str.CRPDlgForm::SetBitMap
lea rcx, str._s___Short_path_name_get_error_for_Bitmap_of_PowerOff_dialog._n
call fcn.140062f80
mov dword [rsp + 0x60], 1
lea rcx, [rsp + 0x70]
call fcn.140003a70
call fcn.14001ecd0
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x58], rax
cmp dword [rsp + 0x60], 0
je 0x1400514d6
movzx edx, word [rsp + 0x140]
mov r8d, 2
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x14005146c
lea rcx, [rsp + 0x68]
call fcn.140003a70
jmp 0x140051526
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x140051498
lea rcx, [rsp + 0x68]
call fcn.140003a70
jmp 0x140051526
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
jne 0x1400514b4
lea rcx, [rsp + 0x68]
call fcn.140003a70
jmp 0x140051526
movzx edx, word [rsp + 0x140]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.USER32.dll_LoadBitmapA]
mov rdx, rax
mov rcx, qword [rsp + 0x58]
call fcn.140051f20
jmp 0x140051512
lea rcx, [rsp + 0x68]
call fcn.1400018a0
mov dword [rsp + 0x28], 0x10
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.USER32.dll_LoadImageA]
mov rdx, rax
mov rcx, qword [rsp + 0x58]
call fcn.140051f20
nop
lea rcx, [rsp + 0x68]
call fcn.140003a70
xor eax, eax
test eax, eax
jne 0x14005113e
mov rcx, qword [rsp + 0x148]
call fcn.140003a70
jmp 0x140051543
add rsp, 0x128
ret