Function at 0x140001570
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0xb0]
sub rsp, 0x1b0
xor r12d, r12d
mov r14, rcx
cmp qword [0x140005070], r12
jne 0x140001913
lea r8d, [r12 + 0x4c]
lea rcx, [rbp - 0x3c]
xor edx, edx
mov dword [rbp - 0x40], 0x50
call sub.MSVCR110.dll_memset
lea rax, [0x140001928]
lea ebx, [r12 + 4]
mov dword [rbp - 0x3c], r12d
mov qword [rbp - 0x38], rax
mov ecx, ebx
mov qword [rbp - 0x28], r14
call qword [sym.imp.GDI32.dll_GetStockObject]
xor ecx, ecx
mov qword [rbp - 0x10], rax
mov rax, qword [section..data]
mov qword [rbp], rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea edx, [rbx + 0x61]
mov rcx, rax
call qword [sym.imp.USER32.dll_LoadIconW]
lea rcx, [rbp - 0x40]
mov qword [rbp - 0x20], rax
call qword [sym.imp.USER32.dll_RegisterClassExW]
test ax, ax
je 0x140001913
lea rdx, [rbp - 0x60]
lea rcx, [rbp - 0x68]
xor r8d, r8d
mov dword [rbp - 0x60], 1
mov qword [rbp - 0x58], r12
mov qword [rbp - 0x50], r12
call sub.gdiplus.dll_GdiplusStartup
lea r8, [rsp + 0x78]
lea rdx, [0x14000135c]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleExA]
mov rcx, qword [rsp + 0x78]
lea r8, [0x140003430]
lea edx, [rbx + 0x60]
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rcx, qword [rsp + 0x78]
mov rdx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rcx, qword [rsp + 0x78]
mov rdx, rbx
mov edi, eax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
lea ecx, [r12 + 2]
mov edx, edi
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rcx, rax
mov r15, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov r8d, edi
mov rdx, rsi
mov rcx, rax
mov rbx, rax
call sub.MSVCR110.dll_memcpy
lea r8, [rsp + 0x70]
xor edx, edx
mov rcx, rbx
mov qword [rsp + 0x70], r12
call qword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov rbx, qword [rsp + 0x70]
lea ecx, [r12 + 0x18]
call sub.gdiplus.dll_GdipAlloc
mov rdi, rax
test rax, rax
je 0x140001709
lea rax, [0x140003420]
lea rdx, [rbp + 0x100]
mov rcx, rbx
mov qword [rdi], rax
mov qword [rbp + 0x100], r12
call sub.gdiplus.dll_GdipCreateBitmapFromStream
mov dword [rdi + 0x10], eax
mov rax, qword [rbp + 0x100]
mov qword [rdi + 8], rax
jmp 0x14000170c
mov rdi, r12
mov rcx, qword [rsp + 0x70]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, qword [rdi + 8]
lea rdx, [rbp + 0x100]
mov dword [rbp + 0x100], r12d
call sub.gdiplus.dll_GdipGetImageWidth
test eax, eax
je 0x14000173e
mov dword [rdi + 0x10], eax
mov rcx, qword [rdi + 8]
lea rdx, [rbp + 0x108]
mov dword [rbp + 0x108], r12d
call sub.gdiplus.dll_GdipGetImageHeight
test eax, eax
je 0x14000175c
mov dword [rdi + 0x10], eax
mov eax, dword [rbp + 0x100]
mov qword [rsp + 0x60], r12
mov r12d, dword [rbp + 0x108]
mov esi, 0x80000000
lea rcx, [rsp + 0x60]
mov r9d, 0x80000
xor r8d, r8d
mov edx, esi
mov dword [rsp + 0x6c], r12d
mov dword [rsp + 0x68], eax
call qword [sym.imp.USER32.dll_AdjustWindowRectEx]
mov r15d, dword [rsp + 0x68]
mov ebx, dword [rsp + 0x6c]
sub r15d, dword [rsp + 0x60]
xor eax, eax
sub ebx, dword [rsp + 0x64]
lea r8d, [rax + 0x7c]
lea rcx, [rbp + 0x30]
xor edx, edx
mov byte [rbp + 0x10], 0x9c
mov qword [rbp + 0x11], rax
mov qword [rbp + 0x19], rax
mov qword [rbp + 0x21], rax
mov dword [rbp + 0x29], eax
mov word [rbp + 0x2d], ax
mov byte [rbp + 0x2f], al
call sub.MSVCR110.dll_memset
lea r8, [rbp + 0x10]
or edx, 0xffffffff
xor ecx, ecx
call qword [sym.imp.USER32.dll_EnumDisplaySettingsA]
and qword [rsp + 0x58], 0
mov edx, dword [rbp + 0x7c]
mov eax, dword [rbp + 0x80]
mov qword [rsp + 0x50], r14
sub edx, r15d
shr edx, 1
xor r14d, r14d
sub eax, ebx
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x40], r14
mov dword [rsp + 0x38], ebx
shr eax, 1
mov dword [rsp + 0x30], r15d
lea r8, [0x140003434]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], edx
mov rdx, qword [section..data]
mov r9d, esi
mov ecx, 0x80000
call qword [sym.imp.USER32.dll_CreateWindowExW]
xor ecx, ecx
mov qword [0x140005070], rax
call qword [sym.imp.USER32.dll_GetDC]
xor ecx, ecx
mov rsi, rax
call qword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov rcx, qword [rdi + 8]
lea rdx, [rbp - 0x80]
mov r8d, 0xff000000
mov rbx, rax
call sub.gdiplus.dll_GdipCreateHBITMAPFromBitmap
test eax, eax
je 0x14000186c
mov dword [rdi + 0x10], eax
mov rdx, qword [rbp - 0x80]
mov rcx, rbx
call qword [sym.imp.GDI32.dll_SelectObject]
mov rcx, qword [0x140005070]
mov edx, 5
mov dword [rbp + 0xf8], 0x1ff0000
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [0x140005070]
mov dword [rsp + 0x40], 2
lea rax, [rbp + 0xf8]
lea r9, [rbp - 0x78]
mov qword [rsp + 0x38], rax
lea rax, [rbp - 0x70]
mov dword [rsp + 0x30], r14d
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov rdx, rsi
mov qword [rbp - 0x70], r14
mov dword [rbp - 0x78], r15d
mov dword [rbp - 0x74], r12d
mov qword [rsp + 0x20], rbx
call qword [sym.imp.USER32.dll_UpdateLayeredWindow]
mov rax, qword [rdi]
mov edx, 1
mov rcx, rdi
call qword [rax]
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rcx, rbx
call qword [sym.imp.GDI32.dll_DeleteDC]
mov rdx, rsi
xor ecx, ecx
call qword [sym.imp.USER32.dll_ReleaseDC]
mov rcx, qword [rbp - 0x68]
call sub.gdiplus.dll_GdiplusShutdown
add rsp, 0x1b0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret