Function at 0x1400510f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
cmp edx, 0x21
jge 0x140051ba6
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.14013e120
mov rcx, rax
xor eax, eax
test rcx, rcx
setne al
test eax, eax
jne 0x140051142
mov ecx, 0x80004005
call fcn.140001c70
int3
mov rax, qword [rcx]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x90], rbx
cmp edi, 0xffffffff
jne 0x140051162
mov edi, dword [r15 + 0xf4]
jmp 0x140051169
mov dword [r15 + 0xf4], edi
movsxd rax, edi
add rax, rax
lea rcx, [0x140215208]
movzx r9d, word [rcx + rax*8]
lea r8, str.Language
lea rdx, str.General
lea rcx, [0x14022c580]
call fcn.14014ccf0
mov rcx, r15
call fcn.140050470
mov rbp, qword [r15 + 0x18]
or rsi, 0xffffffffffffffff
test rbp, rbp
je 0x14005134e
or r14, rsi
mov r12, rbp
test rbp, rbp
je 0x140051348
mov rbp, qword [rbp]
mov r12, qword [r12 + 0x10]
cmp qword [r12], 0
je 0x140051339
mov esi, dword [r12 + 0xc]
test esi, esi
jne 0x14005128a
mov r13d, dword [r12 + 8]
xor eax, eax
mov rcx, r14
lea rdi, [0x14019bd68]
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, [0x14019bd68]
lea rcx, [rsp + 0x90]
call fcn.1400038f0
call fcn.140152e58
movzx r9d, word [r15 + 0xc]
mov r8d, r13d
mov rdx, qword [rax + 0x10]
lea rcx, [rsp + 0x90]
call fcn.140051bd0
xor r11d, r11d
lea rdi, [0x14019bd68]
mov rbx, qword [rsp + 0x90]
mov rsi, rbx
mov ecx, 1
repe cmpsw word [rsi], word [rdi]
je 0x140051251
sbb r11d, r11d
sbb r11d, 0xffffffff
test r11d, r11d
sete al
test al, al
je 0x14005132d
call fcn.140152e58
mov r9w, 0x409
mov r8d, r13d
mov rdx, qword [rax + 0x10]
lea rcx, [rsp + 0x90]
call fcn.140051bd0
mov rbx, qword [rsp + 0x90]
jmp 0x14005132d
mov r13d, dword [r12 + 8]
xor eax, eax
mov rcx, r14
lea rdi, [0x14019bd68]
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, [0x14019bd68]
lea rcx, [rsp + 0x90]
call fcn.1400038f0
call fcn.140152e58
movzx r9d, word [r15 + 0xc]
mov r8d, esi
mov rdx, qword [rax + 0x10]
lea rcx, [rsp + 0x90]
call fcn.140051bd0
xor r11d, r11d
lea rdi, [0x14019bd68]
mov rbx, qword [rsp + 0x90]
mov rsi, rbx
mov ecx, 1
repe cmpsw word [rsi], word [rdi]
je 0x1400512fd
sbb r11d, r11d
sbb r11d, 0xffffffff
test r11d, r11d
sete al
test al, al
je 0x14005132d
call fcn.140152e58
movzx r9d, word [r15 + 0xc]
mov r8d, r13d
mov rdx, qword [rax + 0x10]
lea rcx, [rsp + 0x90]
call fcn.140051bd0
mov rbx, qword [rsp + 0x90]
mov rdx, rbx
mov rcx, qword [r12]
call fcn.140147fb4
test rbp, rbp
jne 0x1400511b1
or rsi, 0xffffffffffffffff
jmp 0x14005134e
call fcn.14013de24
int3
mov rax, qword [r15 + 0x60]
neg rax
sbb rcx, rcx
mov qword [rsp + 0x28], rcx
je 0x140051713
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.1401551d0
mov rdx, qword [rsp + 0x98]
mov r13, qword [rdx + 8]
mov r15d, ebp
cmp qword [rdx + 0x18], 0
jle 0x1400516bc
jmp 0x1400513c4
or rsi, 0xffffffffffffffff
mov rax, r13
test r13, r13
je 0x140051705
mov r13, qword [r13]
mov r12, qword [rax + 0x10]
cmp qword [r12], 0
je 0x1400516ab
mov r14d, dword [r12 + 8]
xor eax, eax
mov rcx, rsi
lea rdi, [0x14019bd68]
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
mov rdi, rcx
test ecx, ecx
jne 0x14005145f
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x1400514ed
cmp dword [rdx + 0x10], eax
jge 0x14005142e
cmp dword [rbx - 0xc], eax
jl 0x1400516d2
mov dword [rbx - 0x10], ebp
mov word [rbx], ax
jmp 0x1400514ed
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140051445
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 0x1400514ed
mov esi, dword [rbx - 0x10]
lea rbp, [0x14019bd68]
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 0x140051497
mov edx, edi
lea rcx, [rsp + 0x90]
call fcn.140001c90
mov rbx, qword [rsp + 0x90]
cmp rbp, rsi
ja 0x1400514b7
movsxd rax, edi
lea rsi, [rax + rax]
lea r8, [rbx + rbp*2]
mov r9, rsi
mov rdx, rsi
mov rcx, rbx
call fcn.14015c620
jmp 0x1400514d3
movsxd rax, edi
lea rsi, [rax + rax]
mov r9, rsi
lea r8, [0x14019bd68]
mov rdx, rsi
mov rcx, rbx
call fcn.14015c410
test edi, edi
js 0x1400516fa
cmp edi, dword [rbx - 0xc]
jg 0x1400516fa
mov dword [rbx - 0x10], edi
mov word [rsi + rbx], 0
call fcn.140152e58
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 0x14005163a
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14005163a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
test rax, rax
je 0x14005163a
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 0x140051586
nop
cmp rdi, rdx
jae 0x14005163a
movzx eax, word [rdi]
lea rdi, [rdi + rax*2 + 2]
add ecx, 0xffffffff
jne 0x140051570
cmp rdi, rdx
jae 0x14005163a
movzx eax, word [rdi]
test ax, ax
je 0x14005163a
movzx esi, ax
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, esi
or eax, ecx
jge 0x1400515c6
mov edx, esi
lea rcx, [rsp + 0x90]
call fcn.140001c90
mov rbx, qword [rsp + 0x90]
movzx ecx, word [rdi]
lea r8, [rdi + 2]
cmp ecx, 0xffffffff
jne 0x1400515e3
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.14015c410
test eax, eax
je 0x140051620
cmp eax, 0xc
je 0x1400516e9
cmp eax, 0x16
je 0x1400516e3
cmp eax, 0x22
je 0x1400516e3
cmp eax, 0x50
jne 0x1400516dd
test esi, esi
js 0x1400516ef
cmp esi, dword [rbx - 0xc]
jg 0x1400516ef
mov dword [rbx - 0x10], esi
mov word [rdi + rbx], 0
xor eax, eax
lea rdi, [0x14019bd68]
mov rsi, rbx
mov ecx, 1
repe cmpsw word [rsi], word [rdi]
je 0x140051655
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
je 0x140051684
call fcn.140152e58
mov r9w, 0x409
mov r8d, r14d
mov rdx, qword [rax + 0x10]
lea rcx, [rsp + 0x90]
call fcn.140051bd0
mov rbx, qword [rsp + 0x90]
mov rcx, qword [r12]
call fcn.140148024
movsxd r9, eax
mov r8, qword [r12]
mov rdx, rbx
mov rcx, qword [rsp + 0x20]
call fcn.140151f0c
mov rdx, qword [rsp + 0x98]
xor ebp, ebp
add r15d, 1
movsxd rax, r15d
cmp rax, qword [rdx + 0x18]
jl 0x1400513c0
cmp qword [rsp + 0x28], 0
je 0x14005170b
or rsi, 0xffffffffffffffff
mov rax, qword [rsp + 0x30]
jmp 0x140051370
mov ecx, 0x80070057
call fcn.140001c70
int3
call fcn.14013de24
int3
call fcn.14013de24
int3
call fcn.14013dddc
int3
mov ecx, 0x80070057
call fcn.140001c70
int3
mov ecx, 0x80070057
call fcn.140001c70
int3
call fcn.14013de24
int3
mov r15, qword [rsp + 0x80]
mov r14, qword [r15 + 0x88]
test r14, r14
je 0x140051b72
mov rax, r14
test r14, r14
je 0x140051b6c
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, [0x14019bd68]
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
mov rdi, rcx
test ecx, ecx
jne 0x1400517b5
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x140051843
cmp dword [rdx + 0x10], eax
jge 0x140051784
cmp dword [rbx - 0xc], eax
jl 0x140051b1c
mov dword [rbx - 0x10], eax
mov word [rbx], ax
jmp 0x140051843
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14005179b
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 0x140051843
mov esi, dword [rbx - 0x10]
lea r12, [0x14019bd68]
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 0x1400517ed
mov edx, edi
lea rcx, [rsp + 0x90]
call fcn.140001c90
mov rbx, qword [rsp + 0x90]
cmp r12, rsi
ja 0x14005180d
movsxd rax, edi
lea rsi, [rax + rax]
lea r8, [rbx + r12*2]
mov r9, rsi
mov rdx, rsi
mov rcx, rbx
call fcn.14015c620
jmp 0x140051829
movsxd rax, edi
lea rsi, [rax + rax]
mov r9, rsi
lea r8, [0x14019bd68]
mov rdx, rsi
mov rcx, rbx
call fcn.14015c410
test edi, edi
js 0x140051b61
cmp edi, dword [rbx - 0xc]
jg 0x140051b61
mov dword [rbx - 0x10], edi
mov word [rsi + rbx], 0
call fcn.140152e58
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 0x14005198f
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14005198f
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
test rax, rax
je 0x14005198f
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 0x1400518db
cmp rdi, rdx
jae 0x14005198f
movzx eax, word [rdi]
lea rdi, [rdi + rax*2 + 2]
add ecx, 0xffffffff
jne 0x1400518c5
cmp rdi, rdx
jae 0x14005198f
movzx eax, word [rdi]
test ax, ax
je 0x14005198f
movzx esi, ax
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, esi
or eax, ecx
jge 0x14005191b
mov edx, esi
lea rcx, [rsp + 0x90]
call fcn.140001c90
mov rbx, qword [rsp + 0x90]
movzx ecx, word [rdi]
lea r8, [rdi + 2]
cmp ecx, 0xffffffff
jne 0x140051938
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.14015c410
test eax, eax
je 0x140051975
cmp eax, 0xc
je 0x140051b33
cmp eax, 0x16
je 0x140051b2d
cmp eax, 0x22
je 0x140051b2d
cmp eax, 0x50
jne 0x140051b27
test esi, esi
js 0x140051b39
cmp esi, dword [rbx - 0xc]
jg 0x140051b39
mov dword [rbx - 0x10], esi
mov word [rdi + rbx], 0
xor eax, eax
lea rdi, [0x14019bd68]
mov rsi, rbx
mov ecx, 1
repe cmpsw word [rsi], word [rdi]
je 0x1400519aa
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
je 0x140051ae8
call fcn.140152e58
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 0x140051ae8
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140051ae8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
test rax, rax
je 0x140051ae8
mov rdx, r12
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rdi
and ebp, 0xf
jbe 0x140051a38
cmp rdi, rcx
jae 0x140051ae8
movzx eax, word [rdi]
lea rdi, [rdi + rax*2 + 2]
add ebp, 0xffffffff
jne 0x140051a22
cmp rdi, rcx
jae 0x140051ae8
movzx eax, word [rdi]
test ax, ax
je 0x140051ae8
movzx esi, ax
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, esi
or eax, ecx
jge 0x140051a78
mov edx, esi
lea rcx, [rsp + 0x90]
call fcn.140001c90
mov rbx, qword [rsp + 0x90]
movzx ecx, word [rdi]
lea r8, [rdi + 2]
cmp ecx, 0xffffffff
jne 0x140051a95
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.14015c410
test eax, eax
je 0x140051ace
cmp eax, 0xc
je 0x140051b50
cmp eax, 0x16
je 0x140051b4a
cmp eax, 0x22
je 0x140051b4a
cmp eax, 0x50
jne 0x140051b44
test esi, esi
js 0x140051b56
cmp esi, dword [rbx - 0xc]
jg 0x140051b56
mov dword [rbx - 0x10], esi
mov word [rdi + rbx], 0
test rbx, rbx
jne 0x140051af1
xor ecx, ecx
jmp 0x140051b04
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.1400038f0
test r14, r14
je 0x140051b72
jmp 0x140051723
mov ecx, 0x80070057
call fcn.140001c70
int3
call fcn.14013de24
int3
call fcn.14013de24
int3
call fcn.14013dddc
int3
mov ecx, 0x80070057
call fcn.140001c70
int3
call fcn.14013de24
int3
call fcn.14013de24
int3
call fcn.14013dddc
int3
mov ecx, 0x80070057
call fcn.140001c70
int3
mov ecx, 0x80070057
call fcn.140001c70
int3
call fcn.14013de24
nop
lea rdx, [rbx - 0x18]
or rax, 0xffffffffffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140051b8f
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