Function at 0x7051adc0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rax, qword [rcx]
mov r13, rdx
mov rsi, rcx
call qword [rax + 0x40]
mov ecx, 0x20
call fcn.7058fec0
mov edx, dword [r13]
mov rbx, rax
lea rax, str.pWUp
mov qword [rbx + 8], 0
mov dword [rbx + 0x10], 0
mov qword [rbx], rax
mov dword [rbx + 0x14], 0
test edx, edx
mov dword [rbx + 0x18], 1
jne 0x7051af62
movzx edx, word [r13 + 8]
mov rbp, qword [0x705ab600]
lea r8, [0x705a6c77]
mov rcx, qword [rbp]
call qword [sym.imp.KERNEL32.DLL_FindResourceA]
test rax, rax
mov rdi, rax
je 0x7051aff0
mov rdx, rax
mov rcx, qword [rbp]
call qword [sym.imp.KERNEL32.DLL_SizeofResource]
mov rdx, rdi
mov dword [rbx + 0x14], eax
mov rcx, qword [rbp]
call qword [sym.imp.KERNEL32.DLL_LoadResource]
test rax, rax
je 0x7051aff0
mov rcx, rax
lea r12, [rsp + 0x28]
call qword [sym.imp.KERNEL32.DLL_LockResource]
mov ecx, 0x18
mov qword [rbx + 8], rax
call sub.gdiplus.dll_GdipAlloc
mov rdi, rax
mov qword [rax + 8], 0
mov dword [rax + 0x10], 0
lea rax, str.p_Up
mov rdx, r12
mov rcx, rbx
mov qword [rdi], rax
mov qword [rsp + 0x28], 0
call sub.gdiplus.dll_GdipCreateBitmapFromStreamICM
mov dword [rdi + 0x10], eax
mov rax, qword [rsp + 0x28]
mov qword [rdi + 8], rax
mov qword [rsi + 0x48], rdi
mov rax, qword [rbx]
lea rdx, [0x705559a0]
mov rax, qword [rax + 0x10]
cmp rax, rdx
jne 0x7051b000
lock sub dword [rbx + 0x18], 1
je 0x7051af70
mov rbx, qword [rsi + 0x48]
test rbx, rbx
je 0x7051af85
mov rcx, qword [rbx + 8]
mov rdx, r12
mov dword [rsp + 0x28], 0
call sub.gdiplus.dll_GdipGetImageWidth
test eax, eax
je 0x7051af0d
mov dword [rbx + 0x10], eax
mov eax, dword [rsp + 0x28]
pxor xmm0, xmm0
mov rbx, qword [rsi + 0x48]
mov rdx, r12
mov dword [rsp + 0x28], 0
cvtsi2sd xmm0, rax
mov rcx, qword [rbx + 8]
movsd qword [rsi + 0x20], xmm0
call sub.gdiplus.dll_GdipGetImageHeight
test eax, eax
je 0x7051af3e
mov dword [rbx + 0x10], eax
mov eax, dword [rsp + 0x28]
pxor xmm0, xmm0
cvtsi2sd xmm0, rax
mov eax, 1
movsd qword [rsi + 0x28], xmm0
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov rdx, qword [r13 + 8]
jmp 0x7051ae1d
mov rcx, rbx
call fcn.7058fe80
mov rbx, qword [rsi + 0x48]
test rbx, rbx
jne 0x7051aef2
mov eax, dword [r13]
test eax, eax
jne 0x7051b010
movzx r13d, word [r13 + 8]
mov rdi, qword [rbp]
mov ecx, 0x18
call sub.gdiplus.dll_GdipAlloc
mov rbx, rax
mov qword [rax + 8], 0
mov dword [rax + 0x10], 0
lea rax, str.p_Up
mov r8, r12
mov rdx, r13
mov rcx, rdi
mov qword [rbx], rax
mov qword [rsp + 0x28], 0
call sub.gdiplus.dll_GdipCreateBitmapFromResource
mov dword [rbx + 0x10], eax
mov rax, qword [rsp + 0x28]
mov qword [rbx + 8], rax
mov qword [rsi + 0x48], rbx
jmp 0x7051aef2
lea r12, [rsp + 0x28]
jmp 0x7051aec3
mov rcx, rbx
call rax
jmp 0x7051aee5
mov r13, qword [r13 + 8]
jmp 0x7051af96
push rbx
sub rsp, 0x20
lea rax, [0x705b5850]
pxor xmm0, xmm0
mov rbx, rcx
mov dword [rcx + 8], 1
mov qword [rcx], rax
mov rax, qword [rdx]
mov rdx, qword [rdx + 8]
movsd qword [rcx + 0x20], xmm0
mov byte [rcx + 0x34], 1
movsd qword [rcx + 0x28], xmm0
mov byte [rcx + 0x30], 0xff
mov byte [rcx + 0x31], 0xff
mov qword [rcx + 0x10], rax
mov qword [rcx + 0x18], rdx
mov byte [rcx + 0x32], 0xff
mov byte [rcx + 0x33], 0
call fcn.70520250
lea rdx, [rbx + 0x10]
mov rcx, rbx
mov qword [rbx + 0x48], 0
mov qword [rbx + 0x50], 0
mov qword [rbx + 0x40], 0
mov qword [rbx + 0x38], 0
add rsp, 0x20
pop rbx
jmp 0x7051adc0