Function at 0x1400513a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
cmp edx, 0x21
jge 0x140051e56
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x88], rbx
mov edi, edx
mov r15, rcx
call fcn.14013d07c
mov rcx, rax
xor eax, eax
test rcx, rcx
setne al
test eax, eax
jne 0x1400513f2
mov ecx, 0x80004005
call fcn.140001c00
int3
mov rax, qword [rcx]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x90], rbx
cmp edi, 0xffffffff
jne 0x140051412
mov edi, dword [r15 + 0xf4]
jmp 0x140051419
mov dword [r15 + 0xf4], edi
movsxd rax, edi
add rax, rax
lea rcx, [0x140217208]
movzx r9d, word [rcx + rax*8]
lea r8, str.Language
lea rdx, str.General
lea rcx, [0x14022e890]
call fcn.14014baf0
mov rcx, r15
call fcn.140050720
mov rbp, qword [r15 + 0x18]
or rsi, 0xffffffffffffffff
test rbp, rbp
je 0x1400515fe
or r14, rsi
mov r12, rbp
test rbp, rbp
je 0x1400515f8
mov rbp, qword [rbp]
mov r12, qword [r12 + 0x10]
cmp qword [r12], 0
je 0x1400515e9
mov esi, dword [r12 + 0xc]
test esi, esi
jne 0x14005153a
mov r13d, dword [r12 + 8]
xor eax, eax
mov rcx, r14
lea rdi, [0x14019cf88]
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, [0x14019cf88]
lea rcx, [rsp + 0x90]
call fcn.140002390
call fcn.140153968
movzx r9d, word [r15 + 0xc]
mov r8d, r13d
mov rdx, qword [rax + 0x10]
lea rcx, [rsp + 0x90]
call fcn.140051e80
xor r11d, r11d
lea rdi, [0x14019cf88]
mov rbx, qword [rsp + 0x90]
mov rsi, rbx
mov ecx, 1
repe cmpsw word [rsi], word [rdi]
je 0x140051501
sbb r11d, r11d
sbb r11d, 0xffffffff
test r11d, r11d
sete al
test al, al
je 0x1400515dd
call fcn.140153968
mov r9w, 0x409
mov r8d, r13d
mov rdx, qword [rax + 0x10]
lea rcx, [rsp + 0x90]
call fcn.140051e80
mov rbx, qword [rsp + 0x90]
jmp 0x1400515dd
mov r13d, dword [r12 + 8]
xor eax, eax
mov rcx, r14
lea rdi, [0x14019cf88]
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, [0x14019cf88]
lea rcx, [rsp + 0x90]
call fcn.140002390
call fcn.140153968
movzx r9d, word [r15 + 0xc]
mov r8d, esi
mov rdx, qword [rax + 0x10]
lea rcx, [rsp + 0x90]
call fcn.140051e80
xor r11d, r11d
lea rdi, [0x14019cf88]
mov rbx, qword [rsp + 0x90]
mov rsi, rbx
mov ecx, 1
repe cmpsw word [rsi], word [rdi]
je 0x1400515ad
sbb r11d, r11d
sbb r11d, 0xffffffff
test r11d, r11d
sete al
test al, al
je 0x1400515dd
call fcn.140153968
movzx r9d, word [r15 + 0xc]
mov r8d, r13d
mov rdx, qword [rax + 0x10]
lea rcx, [rsp + 0x90]
call fcn.140051e80
mov rbx, qword [rsp + 0x90]
mov rdx, rbx
mov rcx, qword [r12]
call fcn.1401474e4
test rbp, rbp
jne 0x140051461
or rsi, 0xffffffffffffffff
jmp 0x1400515fe
call fcn.14013d908
int3
mov rax, qword [r15 + 0x60]
neg rax
sbb rcx, rcx
mov qword [rsp + 0x28], rcx
je 0x1400519c3
lea rax, [r15 + 0x48]
mov qword [rsp + 0x30], rax
xor ebp, ebp
nop
mov qword [rsp + 0x20], rbp
mov qword [rsp + 0x98], rbp
lea r9, [rsp + 0x98]
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x28]
mov rcx, rax
call fcn.140155cd4
mov rdx, qword [rsp + 0x98]
mov r13, qword [rdx + 8]
mov r15d, ebp
cmp qword [rdx + 0x18], 0
jle 0x14005196c
jmp 0x140051674
or rsi, 0xffffffffffffffff
mov rax, r13
test r13, r13
je 0x1400519b5
mov r13, qword [r13]
mov r12, qword [rax + 0x10]
cmp qword [r12], 0
je 0x14005195b
mov r14d, dword [r12 + 8]
xor eax, eax
mov rcx, rsi
lea rdi, [0x14019cf88]
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
mov rdi, rcx
test ecx, ecx
jne 0x14005170f
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x14005179d
cmp dword [rdx + 0x10], eax
jge 0x1400516de
cmp dword [rbx - 0xc], eax
jl 0x140051982
mov dword [rbx - 0x10], ebp
mov word [rbx], ax
jmp 0x14005179d
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x1400516f5
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x90], rbx
jmp 0x14005179d
mov esi, dword [rbx - 0x10]
lea rbp, [0x14019cf88]
sub rbp, rbx
sar rbp, 1
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x140051747
mov edx, edi
lea rcx, [rsp + 0x90]
call fcn.140001df0
mov rbx, qword [rsp + 0x90]
cmp rbp, rsi
ja 0x140051767
movsxd rax, edi
lea rsi, [rax + rax]
lea r8, [rbx + rbp*2]
mov r9, rsi
mov rdx, rsi
mov rcx, rbx
call fcn.14015cf60
jmp 0x140051783
movsxd rax, edi
lea rsi, [rax + rax]
mov r9, rsi
lea r8, [0x14019cf88]
mov rdx, rsi
mov rcx, rbx
call fcn.14015cd30
test edi, edi
js 0x1400519aa
cmp edi, dword [rbx - 0xc]
jg 0x1400519aa
mov dword [rbx - 0x10], edi
mov word [rsi + rbx], 0
call fcn.140153968
mov rsi, qword [rax + 0x10]
mov eax, r14d
shr eax, 4
add ax, 1
movzx r8d, ax
mov rax, qword [rsp + 0x80]
movzx r9d, word [rax + 0xc]
mov edx, 6
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
mov rbp, rax
test rax, rax
je 0x1400518ea
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x1400518ea
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
test rax, rax
je 0x1400518ea
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, eax
add rdx, rdi
mov ecx, r14d
and ecx, 0xf
jbe 0x140051836
nop
cmp rdi, rdx
jae 0x1400518ea
movzx eax, word [rdi]
lea rdi, [rdi + rax*2 + 2]
add ecx, 0xffffffff
jne 0x140051820
cmp rdi, rdx
jae 0x1400518ea
movzx eax, word [rdi]
test ax, ax
je 0x1400518ea
movzx esi, ax
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, esi
or eax, ecx
jge 0x140051876
mov edx, esi
lea rcx, [rsp + 0x90]
call fcn.140001df0
mov rbx, qword [rsp + 0x90]
movzx ecx, word [rdi]
lea r8, [rdi + 2]
cmp ecx, 0xffffffff
jne 0x140051893
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, r8
repne scasw ax, word [rdi]
not rcx
and ecx, ecx
lea rdi, [rsi + rsi]
movsxd r9, ecx
add r9, r9
mov rdx, rdi
mov rcx, rbx
call fcn.14015cd30
test eax, eax
je 0x1400518d0
cmp eax, 0xc
je 0x140051999
cmp eax, 0x16
je 0x140051993
cmp eax, 0x22
je 0x140051993
cmp eax, 0x50
jne 0x14005198d
test esi, esi
js 0x14005199f
cmp esi, dword [rbx - 0xc]
jg 0x14005199f
mov dword [rbx - 0x10], esi
mov word [rdi + rbx], 0
xor eax, eax
lea rdi, [0x14019cf88]
mov rsi, rbx
mov ecx, 1
repe cmpsw word [rsi], word [rdi]
je 0x140051905
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
je 0x140051934
call fcn.140153968
mov r9w, 0x409
mov r8d, r14d
mov rdx, qword [rax + 0x10]
lea rcx, [rsp + 0x90]
call fcn.140051e80
mov rbx, qword [rsp + 0x90]
mov rcx, qword [r12]
call fcn.140147554
movsxd r9, eax
mov r8, qword [r12]
mov rdx, rbx
mov rcx, qword [rsp + 0x20]
call fcn.140152a1c
mov rdx, qword [rsp + 0x98]
xor ebp, ebp
add r15d, 1
movsxd rax, r15d
cmp rax, qword [rdx + 0x18]
jl 0x140051670
cmp qword [rsp + 0x28], 0
je 0x1400519bb
or rsi, 0xffffffffffffffff
mov rax, qword [rsp + 0x30]
jmp 0x140051620
mov ecx, 0x80070057
call fcn.140001c00
int3
call fcn.14013d908
int3
call fcn.14013d908
int3
call fcn.14013d8c0
int3
mov ecx, 0x80070057
call fcn.140001c00
int3
mov ecx, 0x80070057
call fcn.140001c00
int3
call fcn.14013d908
int3
mov r15, qword [rsp + 0x80]
mov r14, qword [r15 + 0x88]
test r14, r14
je 0x140051e22
mov rax, r14
test r14, r14
je 0x140051e1c
mov r14, qword [r14]
mov r15, qword [rax + 0x10]
mov ebp, dword [r15 + 8]
xor eax, eax
or rsi, 0xffffffffffffffff
mov rcx, rsi
lea rdi, [0x14019cf88]
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
mov rdi, rcx
test ecx, ecx
jne 0x140051a65
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x140051af3
cmp dword [rdx + 0x10], eax
jge 0x140051a34
cmp dword [rbx - 0xc], eax
jl 0x140051dcc
mov dword [rbx - 0x10], eax
mov word [rbx], ax
jmp 0x140051af3
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140051a4b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x90], rbx
jmp 0x140051af3
mov esi, dword [rbx - 0x10]
lea r12, [0x14019cf88]
sub r12, rbx
sar r12, 1
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x140051a9d
mov edx, edi
lea rcx, [rsp + 0x90]
call fcn.140001df0
mov rbx, qword [rsp + 0x90]
cmp r12, rsi
ja 0x140051abd
movsxd rax, edi
lea rsi, [rax + rax]
lea r8, [rbx + r12*2]
mov r9, rsi
mov rdx, rsi
mov rcx, rbx
call fcn.14015cf60
jmp 0x140051ad9
movsxd rax, edi
lea rsi, [rax + rax]
mov r9, rsi
lea r8, [0x14019cf88]
mov rdx, rsi
mov rcx, rbx
call fcn.14015cd30
test edi, edi
js 0x140051e11
cmp edi, dword [rbx - 0xc]
jg 0x140051e11
mov dword [rbx - 0x10], edi
mov word [rsi + rbx], 0
call fcn.140153968
mov rsi, qword [rax + 0x10]
mov eax, ebp
shr eax, 4
add ax, 1
movzx r13d, ax
mov rax, qword [rsp + 0x80]
movzx r9d, word [rax + 0xc]
mov r8, r13
mov edx, 6
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
mov r12, rax
test rax, rax
je 0x140051c3f
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140051c3f
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
test rax, rax
je 0x140051c3f
mov rdx, r12
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, eax
add rdx, rdi
mov ecx, ebp
and ecx, 0xf
jbe 0x140051b8b
cmp rdi, rdx
jae 0x140051c3f
movzx eax, word [rdi]
lea rdi, [rdi + rax*2 + 2]
add ecx, 0xffffffff
jne 0x140051b75
cmp rdi, rdx
jae 0x140051c3f
movzx eax, word [rdi]
test ax, ax
je 0x140051c3f
movzx esi, ax
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, esi
or eax, ecx
jge 0x140051bcb
mov edx, esi
lea rcx, [rsp + 0x90]
call fcn.140001df0
mov rbx, qword [rsp + 0x90]
movzx ecx, word [rdi]
lea r8, [rdi + 2]
cmp ecx, 0xffffffff
jne 0x140051be8
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, r8
repne scasw ax, word [rdi]
not rcx
and ecx, ecx
lea rdi, [rsi + rsi]
movsxd r9, ecx
add r9, r9
mov rdx, rdi
mov rcx, rbx
call fcn.14015cd30
test eax, eax
je 0x140051c25
cmp eax, 0xc
je 0x140051de3
cmp eax, 0x16
je 0x140051ddd
cmp eax, 0x22
je 0x140051ddd
cmp eax, 0x50
jne 0x140051dd7
test esi, esi
js 0x140051de9
cmp esi, dword [rbx - 0xc]
jg 0x140051de9
mov dword [rbx - 0x10], esi
mov word [rdi + rbx], 0
xor eax, eax
lea rdi, [0x14019cf88]
mov rsi, rbx
mov ecx, 1
repe cmpsw word [rsi], word [rdi]
je 0x140051c5a
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
je 0x140051d98
call fcn.140153968
mov rsi, qword [rax + 0x10]
mov r9w, 0x409
mov r8, r13
mov edx, 6
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
mov r12, rax
test rax, rax
je 0x140051d98
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140051d98
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
test rax, rax
je 0x140051d98
mov rdx, r12
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rdi
and ebp, 0xf
jbe 0x140051ce8
cmp rdi, rcx
jae 0x140051d98
movzx eax, word [rdi]
lea rdi, [rdi + rax*2 + 2]
add ebp, 0xffffffff
jne 0x140051cd2
cmp rdi, rcx
jae 0x140051d98
movzx eax, word [rdi]
test ax, ax
je 0x140051d98
movzx esi, ax
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, esi
or eax, ecx
jge 0x140051d28
mov edx, esi
lea rcx, [rsp + 0x90]
call fcn.140001df0
mov rbx, qword [rsp + 0x90]
movzx ecx, word [rdi]
lea r8, [rdi + 2]
cmp ecx, 0xffffffff
jne 0x140051d45
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, r8
repne scasw ax, word [rdi]
not rcx
and ecx, ecx
lea rdi, [rsi + rsi]
movsxd r9, ecx
add r9, r9
mov rdx, rdi
mov rcx, rbx
call fcn.14015cd30
test eax, eax
je 0x140051d7e
cmp eax, 0xc
je 0x140051e00
cmp eax, 0x16
je 0x140051dfa
cmp eax, 0x22
je 0x140051dfa
cmp eax, 0x50
jne 0x140051df4
test esi, esi
js 0x140051e06
cmp esi, dword [rbx - 0xc]
jg 0x140051e06
mov dword [rbx - 0x10], esi
mov word [rdi + rbx], 0
test rbx, rbx
jne 0x140051da1
xor ecx, ecx
jmp 0x140051db4
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
mov r8d, ecx
mov rdx, rbx
mov rcx, qword [r15]
call fcn.140002390
test r14, r14
je 0x140051e22
jmp 0x1400519d3
mov ecx, 0x80070057
call fcn.140001c00
int3
call fcn.14013d908
int3
call fcn.14013d908
int3
call fcn.14013d8c0
int3
mov ecx, 0x80070057
call fcn.140001c00
int3
call fcn.14013d908
int3
call fcn.14013d908
int3
call fcn.14013d8c0
int3
mov ecx, 0x80070057
call fcn.140001c00
int3
mov ecx, 0x80070057
call fcn.140001c00
int3
call fcn.14013d908
nop
lea rdx, [rbx - 0x18]
or rax, 0xffffffffffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140051e3f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rbx, qword [rsp + 0x88]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret 0