Function at 0x476dd0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov r11, rsp
sub rsp, 0x88
movzx eax, word [0x00527308]
test ax, ax
jne 0x47716f
mov rax, qword [0x00522a28]
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
mov qword [r11 - 8], r12
lea rcx, [0x00522a28]
mov qword [r11 - 0x10], r13
call qword [rax + 0x18]
lea rcx, [0x00527fd0]
xor r13d, r13d
lea rbx, [rax + 0x18]
xor edx, edx
mov rdi, r13
mov qword [rsp + 0x30], rbx
call fcn.004a5ad4
lea r12d, [r13 + 1]
test rax, rax
mov rbp, rax
je 0x476f17
test rdi, rdi
jne 0x476f17
lea edx, [rdi + 6]
lea r8d, [rdi + 0x11]
xor r9d, r9d
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
test rax, rax
mov rsi, rax
jne 0x476e69
mov rdi, r13
jmp 0x476ed9
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x476e7f
mov rdi, r13
jmp 0x476ed4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
mov rdi, rax
jne 0x476e95
mov rdi, r13
jmp 0x476ed4
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, 7
mov r11d, eax
add r11, rdi
nop
cmp rdi, r11
jae 0x476ed1
add ecx, 0xffffffff
movzx eax, word [rdi]
lea rdi, [rdi + rax*2 + 2]
jne 0x476eb0
cmp rdi, r11
jae 0x476ed1
cmp word [rdi], r13w
cmove rdi, r13
jmp 0x476ed4
mov rdi, r13
test rdi, rdi
jne 0x476efa
lea rcx, [0x00527fd0]
mov edx, r12d
call fcn.004a5ad4
add r12d, 1
test rax, rax
mov rbp, rax
jne 0x476e40
jmp 0x476f17
test rbp, rbp
je 0x476f17
lea rcx, [rsp + 0x30]
mov r8d, 0x107
mov rdx, rbp
call fcn.00417140
mov rbx, qword [rsp + 0x30]
cmp qword [0x00527328], r13
jne 0x476f25
call fcn.00476820
lea rdx, [0x00527318]
lea rcx, [rsp + 0x50]
call fcn.00476730
mov r11, qword [rsp + 0x58]
mov r12d, 0xffffffff
mov rax, qword [r11]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rax
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x40], xmm0
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
test rsi, rsi
mov rbp, r11
je 0x476f7a
lea rax, [rsp + 0x50]
cmp rsi, rax
je 0x476f84
call fcn.004a7de0
mov r11, qword [rsp + 0x58]
cmp rdi, rbp
je 0x4770ba
test rsi, rsi
jne 0x476f97
call fcn.004a7de0
cmp rdi, qword [rsi + 8]
jne 0x476fa2
call fcn.004a7de0
movzx r8d, word [rdi + 0x10]
lea rcx, [rsp + 0x40]
xor r9d, r9d
mov edx, 0x107
mov dword [rsp + 0x20], r13d
call fcn.00476a20
test rbx, rbx
je 0x4770af
mov rax, qword [rax]
sub rbx, rax
nop
movzx edx, word [rax]
movzx ecx, word [rax + rbx]
sub edx, ecx
jne 0x476fe3
add rax, 2
test ecx, ecx
jne 0x476fd0
test edx, edx
mov rdx, qword [rsp + 0x40]
mov eax, r12d
sete bl
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], eax
add eax, r12d
test eax, eax
jg 0x477009
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test bl, bl
jne 0x47702a
cmp rdi, qword [rsi + 8]
jne 0x477018
call fcn.004a7de0
mov rdi, qword [rdi]
mov rbx, qword [rsp + 0x30]
mov r11, qword [rsp + 0x58]
jmp 0x476f68
cmp rdi, qword [rsi + 8]
jne 0x477035
call fcn.004a7de0
mov rax, qword [rsp + 0x58]
movzx edi, word [rdi + 0x10]
mov rcx, qword [rax]
mov qword [rax], rax
mov rax, qword [rsp + 0x58]
mov word [0x00527308], di
mov qword [rax + 8], rax
mov rax, qword [rsp + 0x58]
cmp rcx, rax
mov qword [rsp + 0x60], r13
je 0x477078
mov rbx, qword [rcx]
call fcn.004a6f90
mov rax, qword [rsp + 0x58]
cmp rbx, rax
mov rcx, rbx
jne 0x477063
mov rcx, rax
call fcn.004a6f90
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x58], r13
lea rdx, [rax - 0x18]
lock xadd dword [rdx + 0x10], r12d
add r12d, 0xffffffff
test r12d, r12d
jg 0x4770a7
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov ax, di
jmp 0x477142
mov ecx, 0x80004005
call fcn.00404e30
int3
mov rax, qword [0x00527320]
mov rdi, qword [rax]
cmp rdi, rax
jne 0x4770d3
call fcn.004a7de0
mov r11, qword [rsp + 0x58]
movzx esi, word [rdi + 0x10]
mov rcx, qword [r11]
mov qword [r11], r11
mov rax, qword [rsp + 0x58]
mov word [0x00527308], si
mov qword [rax + 8], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x60], r13
cmp rcx, rax
je 0x477115
nop
mov rdi, qword [rcx]
call fcn.004a6f90
mov rax, qword [rsp + 0x58]
cmp rdi, rax
mov rcx, rdi
jne 0x477100
mov rcx, rax
call fcn.004a6f90
mov qword [rsp + 0x58], r13
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], r12d
add r12d, 0xffffffff
test r12d, r12d
jg 0x47713f
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov ax, si
mov r12, qword [rsp + 0x80]
mov rdi, qword [rsp + 0xa8]
mov rsi, qword [rsp + 0xa0]
mov rbp, qword [rsp + 0x98]
mov rbx, qword [rsp + 0x90]
mov r13, qword [rsp + 0x78]
add rsp, 0x88
ret