Function at 0x14004cdf0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
cmp edx, 0x21
jge 0x14004d8a6
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.14012a060
mov rcx, rax
xor eax, eax
test rcx, rcx
setne al
test eax, eax
jne 0x14004ce42
mov ecx, 0x80004005
call fcn.140002cb0
int3
mov rax, qword [rcx]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x90], rbx
cmp edi, 0xffffffff
jne 0x14004ce62
mov edi, dword [r15 + 0xf4]
jmp 0x14004ce69
mov dword [r15 + 0xf4], edi
movsxd rax, edi
add rax, rax
lea rcx, [0x1401f1388]
movzx r9d, word [rcx + rax*8]
lea r8, str.Language
lea rdx, str.General
lea rcx, [0x140206e90]
call fcn.140138748
mov rcx, r15
call fcn.14004c170
mov rbp, qword [r15 + 0x18]
or rsi, 0xffffffffffffffff
test rbp, rbp
je 0x14004d04e
or r14, rsi
mov r12, rbp
test rbp, rbp
je 0x14004d048
mov rbp, qword [rbp]
mov r12, qword [r12 + 0x10]
cmp qword [r12], 0
je 0x14004d039
mov esi, dword [r12 + 0xc]
test esi, esi
jne 0x14004cf8a
mov r13d, dword [r12 + 8]
xor eax, eax
mov rcx, r14
lea rdi, [0x14017f438]
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, [0x14017f438]
lea rcx, [rsp + 0x90]
call fcn.140003210
call fcn.14013c798
movzx r9d, word [r15 + 0xc]
mov r8d, r13d
mov rdx, qword [rax + 0x10]
lea rcx, [rsp + 0x90]
call fcn.14004d8d0
xor r11d, r11d
lea rdi, [0x14017f438]
mov rbx, qword [rsp + 0x90]
mov rsi, rbx
mov ecx, 1
repe cmpsw word [rsi], word [rdi]
je 0x14004cf51
sbb r11d, r11d
sbb r11d, 0xffffffff
test r11d, r11d
sete al
test al, al
je 0x14004d02d
call fcn.14013c798
mov r9w, 0x409
mov r8d, r13d
mov rdx, qword [rax + 0x10]
lea rcx, [rsp + 0x90]
call fcn.14004d8d0
mov rbx, qword [rsp + 0x90]
jmp 0x14004d02d
mov r13d, dword [r12 + 8]
xor eax, eax
mov rcx, r14
lea rdi, [0x14017f438]
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, [0x14017f438]
lea rcx, [rsp + 0x90]
call fcn.140003210
call fcn.14013c798
movzx r9d, word [r15 + 0xc]
mov r8d, esi
mov rdx, qword [rax + 0x10]
lea rcx, [rsp + 0x90]
call fcn.14004d8d0
xor r11d, r11d
lea rdi, [0x14017f438]
mov rbx, qword [rsp + 0x90]
mov rsi, rbx
mov ecx, 1
repe cmpsw word [rsi], word [rdi]
je 0x14004cffd
sbb r11d, r11d
sbb r11d, 0xffffffff
test r11d, r11d
sete al
test al, al
je 0x14004d02d
call fcn.14013c798
movzx r9d, word [r15 + 0xc]
mov r8d, r13d
mov rdx, qword [rax + 0x10]
lea rcx, [rsp + 0x90]
call fcn.14004d8d0
mov rbx, qword [rsp + 0x90]
mov rdx, rbx
mov rcx, qword [r12]
call fcn.140133e40
test rbp, rbp
jne 0x14004ceb1
or rsi, 0xffffffffffffffff
jmp 0x14004d04e
call fcn.140129ec4
int3
mov rax, qword [r15 + 0x60]
neg rax
sbb rcx, rcx
mov qword [rsp + 0x28], rcx
je 0x14004d413
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.14013f108
mov rdx, qword [rsp + 0x98]
mov r13, qword [rdx + 8]
mov r15d, ebp
cmp qword [rdx + 0x18], 0
jle 0x14004d3bc
jmp 0x14004d0c4
or rsi, 0xffffffffffffffff
mov rax, r13
test r13, r13
je 0x14004d405
mov r13, qword [r13]
mov r12, qword [rax + 0x10]
cmp qword [r12], 0
je 0x14004d3ab
mov r14d, dword [r12 + 8]
xor eax, eax
mov rcx, rsi
lea rdi, [0x14017f438]
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
mov rdi, rcx
test ecx, ecx
jne 0x14004d15f
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x14004d1ed
cmp dword [rdx + 0x10], eax
jge 0x14004d12e
cmp dword [rbx - 0xc], eax
jl 0x14004d3d2
mov dword [rbx - 0x10], ebp
mov word [rbx], ax
jmp 0x14004d1ed
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14004d145
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 0x14004d1ed
mov esi, dword [rbx - 0x10]
lea rbp, [0x14017f438]
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 0x14004d197
mov edx, edi
lea rcx, [rsp + 0x90]
call fcn.140002cd0
mov rbx, qword [rsp + 0x90]
cmp rbp, rsi
ja 0x14004d1b7
movsxd rax, edi
lea rsi, [rax + rax]
lea r8, [rbx + rbp*2]
mov r9, rsi
mov rdx, rsi
mov rcx, rbx
call fcn.140144e50
jmp 0x14004d1d3
movsxd rax, edi
lea rsi, [rax + rax]
mov r9, rsi
lea r8, [0x14017f438]
mov rdx, rsi
mov rcx, rbx
call fcn.140144ee0
test edi, edi
js 0x14004d3fa
cmp edi, dword [rbx - 0xc]
jg 0x14004d3fa
mov dword [rbx - 0x10], edi
mov word [rsi + rbx], 0
call fcn.14013c798
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 0x14004d33a
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14004d33a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
test rax, rax
je 0x14004d33a
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 0x14004d286
nop
cmp rdi, rdx
jae 0x14004d33a
movzx eax, word [rdi]
lea rdi, [rdi + rax*2 + 2]
add ecx, 0xffffffff
jne 0x14004d270
cmp rdi, rdx
jae 0x14004d33a
movzx eax, word [rdi]
test ax, ax
je 0x14004d33a
movzx esi, ax
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, esi
or eax, ecx
jge 0x14004d2c6
mov edx, esi
lea rcx, [rsp + 0x90]
call fcn.140002cd0
mov rbx, qword [rsp + 0x90]
movzx ecx, word [rdi]
lea r8, [rdi + 2]
cmp ecx, 0xffffffff
jne 0x14004d2e3
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.140144ee0
test eax, eax
je 0x14004d320
cmp eax, 0xc
je 0x14004d3e9
cmp eax, 0x16
je 0x14004d3e3
cmp eax, 0x22
je 0x14004d3e3
cmp eax, 0x50
jne 0x14004d3dd
test esi, esi
js 0x14004d3ef
cmp esi, dword [rbx - 0xc]
jg 0x14004d3ef
mov dword [rbx - 0x10], esi
mov word [rdi + rbx], 0
xor eax, eax
lea rdi, [0x14017f438]
mov rsi, rbx
mov ecx, 1
repe cmpsw word [rsi], word [rdi]
je 0x14004d355
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
je 0x14004d384
call fcn.14013c798
mov r9w, 0x409
mov r8d, r14d
mov rdx, qword [rax + 0x10]
lea rcx, [rsp + 0x90]
call fcn.14004d8d0
mov rbx, qword [rsp + 0x90]
mov rcx, qword [r12]
call fcn.140133eb0
movsxd r9, eax
mov r8, qword [r12]
mov rdx, rbx
mov rcx, qword [rsp + 0x20]
call fcn.14013b84c
mov rdx, qword [rsp + 0x98]
xor ebp, ebp
add r15d, 1
movsxd rax, r15d
cmp rax, qword [rdx + 0x18]
jl 0x14004d0c0
cmp qword [rsp + 0x28], 0
je 0x14004d40b
or rsi, 0xffffffffffffffff
mov rax, qword [rsp + 0x30]
jmp 0x14004d070
mov ecx, 0x80070057
call fcn.140002cb0
int3
call fcn.140129ec4
int3
call fcn.140129ec4
int3
call fcn.140129e7c
int3
mov ecx, 0x80070057
call fcn.140002cb0
int3
mov ecx, 0x80070057
call fcn.140002cb0
int3
call fcn.140129ec4
int3
mov r15, qword [rsp + 0x80]
mov r14, qword [r15 + 0x88]
test r14, r14
je 0x14004d872
mov rax, r14
test r14, r14
je 0x14004d86c
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, [0x14017f438]
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
mov rdi, rcx
test ecx, ecx
jne 0x14004d4b5
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x14004d543
cmp dword [rdx + 0x10], eax
jge 0x14004d484
cmp dword [rbx - 0xc], eax
jl 0x14004d81c
mov dword [rbx - 0x10], eax
mov word [rbx], ax
jmp 0x14004d543
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14004d49b
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 0x14004d543
mov esi, dword [rbx - 0x10]
lea r12, [0x14017f438]
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 0x14004d4ed
mov edx, edi
lea rcx, [rsp + 0x90]
call fcn.140002cd0
mov rbx, qword [rsp + 0x90]
cmp r12, rsi
ja 0x14004d50d
movsxd rax, edi
lea rsi, [rax + rax]
lea r8, [rbx + r12*2]
mov r9, rsi
mov rdx, rsi
mov rcx, rbx
call fcn.140144e50
jmp 0x14004d529
movsxd rax, edi
lea rsi, [rax + rax]
mov r9, rsi
lea r8, [0x14017f438]
mov rdx, rsi
mov rcx, rbx
call fcn.140144ee0
test edi, edi
js 0x14004d861
cmp edi, dword [rbx - 0xc]
jg 0x14004d861
mov dword [rbx - 0x10], edi
mov word [rsi + rbx], 0
call fcn.14013c798
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 0x14004d68f
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14004d68f
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
test rax, rax
je 0x14004d68f
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 0x14004d5db
cmp rdi, rdx
jae 0x14004d68f
movzx eax, word [rdi]
lea rdi, [rdi + rax*2 + 2]
add ecx, 0xffffffff
jne 0x14004d5c5
cmp rdi, rdx
jae 0x14004d68f
movzx eax, word [rdi]
test ax, ax
je 0x14004d68f
movzx esi, ax
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, esi
or eax, ecx
jge 0x14004d61b
mov edx, esi
lea rcx, [rsp + 0x90]
call fcn.140002cd0
mov rbx, qword [rsp + 0x90]
movzx ecx, word [rdi]
lea r8, [rdi + 2]
cmp ecx, 0xffffffff
jne 0x14004d638
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.140144ee0
test eax, eax
je 0x14004d675
cmp eax, 0xc
je 0x14004d833
cmp eax, 0x16
je 0x14004d82d
cmp eax, 0x22
je 0x14004d82d
cmp eax, 0x50
jne 0x14004d827
test esi, esi
js 0x14004d839
cmp esi, dword [rbx - 0xc]
jg 0x14004d839
mov dword [rbx - 0x10], esi
mov word [rdi + rbx], 0
xor eax, eax
lea rdi, [0x14017f438]
mov rsi, rbx
mov ecx, 1
repe cmpsw word [rsi], word [rdi]
je 0x14004d6aa
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
je 0x14004d7e8
call fcn.14013c798
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 0x14004d7e8
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14004d7e8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
test rax, rax
je 0x14004d7e8
mov rdx, r12
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rdi
and ebp, 0xf
jbe 0x14004d738
cmp rdi, rcx
jae 0x14004d7e8
movzx eax, word [rdi]
lea rdi, [rdi + rax*2 + 2]
add ebp, 0xffffffff
jne 0x14004d722
cmp rdi, rcx
jae 0x14004d7e8
movzx eax, word [rdi]
test ax, ax
je 0x14004d7e8
movzx esi, ax
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, esi
or eax, ecx
jge 0x14004d778
mov edx, esi
lea rcx, [rsp + 0x90]
call fcn.140002cd0
mov rbx, qword [rsp + 0x90]
movzx ecx, word [rdi]
lea r8, [rdi + 2]
cmp ecx, 0xffffffff
jne 0x14004d795
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.140144ee0
test eax, eax
je 0x14004d7ce
cmp eax, 0xc
je 0x14004d850
cmp eax, 0x16
je 0x14004d84a
cmp eax, 0x22
je 0x14004d84a
cmp eax, 0x50
jne 0x14004d844
test esi, esi
js 0x14004d856
cmp esi, dword [rbx - 0xc]
jg 0x14004d856
mov dword [rbx - 0x10], esi
mov word [rdi + rbx], 0
test rbx, rbx
jne 0x14004d7f1
xor ecx, ecx
jmp 0x14004d804
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.140003210
test r14, r14
je 0x14004d872
jmp 0x14004d423
mov ecx, 0x80070057
call fcn.140002cb0
int3
call fcn.140129ec4
int3
call fcn.140129ec4
int3
call fcn.140129e7c
int3
mov ecx, 0x80070057
call fcn.140002cb0
int3
call fcn.140129ec4
int3
call fcn.140129ec4
int3
call fcn.140129e7c
int3
mov ecx, 0x80070057
call fcn.140002cb0
int3
mov ecx, 0x80070057
call fcn.140002cb0
int3
call fcn.140129ec4
nop
lea rdx, [rbx - 0x18]
or rax, 0xffffffffffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14004d88f
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