Function at 0x14004c940
Capabilities:
Extract resource via kernel32 functions

Disassembly:
cmp edx, 0x21
jge 0x14004d3f6
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.140129a50
mov rcx, rax
xor eax, eax
test rcx, rcx
setne al
test eax, eax
jne 0x14004c992
mov ecx, 0x80004005
call fcn.140002d80
int3
mov rax, qword [rcx]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x90], rbx
cmp edi, 0xffffffff
jne 0x14004c9b2
mov edi, dword [r15 + 0xf4]
jmp 0x14004c9b9
mov dword [r15 + 0xf4], edi
movsxd rax, edi
add rax, rax
lea rcx, [0x1401f1378]
movzx r9d, word [rcx + rax*8]
lea r8, str.Language
lea rdx, str.General
lea rcx, [0x140206e90]
call fcn.140138148
mov rcx, r15
call fcn.14004bcc0
mov rbp, qword [r15 + 0x18]
or rsi, 0xffffffffffffffff
test rbp, rbp
je 0x14004cb9e
or r14, rsi
mov r12, rbp
test rbp, rbp
je 0x14004cb98
mov rbp, qword [rbp]
mov r12, qword [r12 + 0x10]
cmp qword [r12], 0
je 0x14004cb89
mov esi, dword [r12 + 0xc]
test esi, esi
jne 0x14004cada
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.1400032e0
call fcn.14013c178
movzx r9d, word [r15 + 0xc]
mov r8d, r13d
mov rdx, qword [rax + 0x10]
lea rcx, [rsp + 0x90]
call fcn.14004d420
xor r11d, r11d
lea rdi, [0x14017f438]
mov rbx, qword [rsp + 0x90]
mov rsi, rbx
mov ecx, 1
repe cmpsw word [rsi], word [rdi]
je 0x14004caa1
sbb r11d, r11d
sbb r11d, 0xffffffff
test r11d, r11d
sete al
test al, al
je 0x14004cb7d
call fcn.14013c178
mov r9w, 0x409
mov r8d, r13d
mov rdx, qword [rax + 0x10]
lea rcx, [rsp + 0x90]
call fcn.14004d420
mov rbx, qword [rsp + 0x90]
jmp 0x14004cb7d
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.1400032e0
call fcn.14013c178
movzx r9d, word [r15 + 0xc]
mov r8d, esi
mov rdx, qword [rax + 0x10]
lea rcx, [rsp + 0x90]
call fcn.14004d420
xor r11d, r11d
lea rdi, [0x14017f438]
mov rbx, qword [rsp + 0x90]
mov rsi, rbx
mov ecx, 1
repe cmpsw word [rsi], word [rdi]
je 0x14004cb4d
sbb r11d, r11d
sbb r11d, 0xffffffff
test r11d, r11d
sete al
test al, al
je 0x14004cb7d
call fcn.14013c178
movzx r9d, word [r15 + 0xc]
mov r8d, r13d
mov rdx, qword [rax + 0x10]
lea rcx, [rsp + 0x90]
call fcn.14004d420
mov rbx, qword [rsp + 0x90]
mov rdx, rbx
mov rcx, qword [r12]
call fcn.140133838
test rbp, rbp
jne 0x14004ca01
or rsi, 0xffffffffffffffff
jmp 0x14004cb9e
call fcn.1401298b4
int3
mov rax, qword [r15 + 0x60]
neg rax
sbb rcx, rcx
mov qword [rsp + 0x28], rcx
je 0x14004cf63
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.14013e91c
mov rdx, qword [rsp + 0x98]
mov r13, qword [rdx + 8]
mov r15d, ebp
cmp qword [rdx + 0x18], 0
jle 0x14004cf0c
jmp 0x14004cc14
or rsi, 0xffffffffffffffff
mov rax, r13
test r13, r13
je 0x14004cf55
mov r13, qword [r13]
mov r12, qword [rax + 0x10]
cmp qword [r12], 0
je 0x14004cefb
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 0x14004ccaf
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x14004cd3d
cmp dword [rdx + 0x10], eax
jge 0x14004cc7e
cmp dword [rbx - 0xc], eax
jl 0x14004cf22
mov dword [rbx - 0x10], ebp
mov word [rbx], ax
jmp 0x14004cd3d
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14004cc95
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 0x14004cd3d
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 0x14004cce7
mov edx, edi
lea rcx, [rsp + 0x90]
call fcn.140002da0
mov rbx, qword [rsp + 0x90]
cmp rbp, rsi
ja 0x14004cd07
movsxd rax, edi
lea rsi, [rax + rax]
lea r8, [rbx + rbp*2]
mov r9, rsi
mov rdx, rsi
mov rcx, rbx
call fcn.140144840
jmp 0x14004cd23
movsxd rax, edi
lea rsi, [rax + rax]
mov r9, rsi
lea r8, [0x14017f438]
mov rdx, rsi
mov rcx, rbx
call fcn.1401448d0
test edi, edi
js 0x14004cf4a
cmp edi, dword [rbx - 0xc]
jg 0x14004cf4a
mov dword [rbx - 0x10], edi
mov word [rsi + rbx], 0
call fcn.14013c178
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 0x14004ce8a
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14004ce8a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
test rax, rax
je 0x14004ce8a
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 0x14004cdd6
nop
cmp rdi, rdx
jae 0x14004ce8a
movzx eax, word [rdi]
lea rdi, [rdi + rax*2 + 2]
add ecx, 0xffffffff
jne 0x14004cdc0
cmp rdi, rdx
jae 0x14004ce8a
movzx eax, word [rdi]
test ax, ax
je 0x14004ce8a
movzx esi, ax
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, esi
or eax, ecx
jge 0x14004ce16
mov edx, esi
lea rcx, [rsp + 0x90]
call fcn.140002da0
mov rbx, qword [rsp + 0x90]
movzx ecx, word [rdi]
lea r8, [rdi + 2]
cmp ecx, 0xffffffff
jne 0x14004ce33
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.1401448d0
test eax, eax
je 0x14004ce70
cmp eax, 0xc
je 0x14004cf39
cmp eax, 0x16
je 0x14004cf33
cmp eax, 0x22
je 0x14004cf33
cmp eax, 0x50
jne 0x14004cf2d
test esi, esi
js 0x14004cf3f
cmp esi, dword [rbx - 0xc]
jg 0x14004cf3f
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 0x14004cea5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
je 0x14004ced4
call fcn.14013c178
mov r9w, 0x409
mov r8d, r14d
mov rdx, qword [rax + 0x10]
lea rcx, [rsp + 0x90]
call fcn.14004d420
mov rbx, qword [rsp + 0x90]
mov rcx, qword [r12]
call fcn.1401338a8
movsxd r9, eax
mov r8, qword [r12]
mov rdx, rbx
mov rcx, qword [rsp + 0x20]
call fcn.14013b22c
mov rdx, qword [rsp + 0x98]
xor ebp, ebp
add r15d, 1
movsxd rax, r15d
cmp rax, qword [rdx + 0x18]
jl 0x14004cc10
cmp qword [rsp + 0x28], 0
je 0x14004cf5b
or rsi, 0xffffffffffffffff
mov rax, qword [rsp + 0x30]
jmp 0x14004cbc0
mov ecx, 0x80070057
call fcn.140002d80
int3
call fcn.1401298b4
int3
call fcn.1401298b4
int3
call fcn.14012986c
int3
mov ecx, 0x80070057
call fcn.140002d80
int3
mov ecx, 0x80070057
call fcn.140002d80
int3
call fcn.1401298b4
int3
mov r15, qword [rsp + 0x80]
mov r14, qword [r15 + 0x88]
test r14, r14
je 0x14004d3c2
mov rax, r14
test r14, r14
je 0x14004d3bc
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 0x14004d005
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x14004d093
cmp dword [rdx + 0x10], eax
jge 0x14004cfd4
cmp dword [rbx - 0xc], eax
jl 0x14004d36c
mov dword [rbx - 0x10], eax
mov word [rbx], ax
jmp 0x14004d093
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14004cfeb
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 0x14004d093
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 0x14004d03d
mov edx, edi
lea rcx, [rsp + 0x90]
call fcn.140002da0
mov rbx, qword [rsp + 0x90]
cmp r12, rsi
ja 0x14004d05d
movsxd rax, edi
lea rsi, [rax + rax]
lea r8, [rbx + r12*2]
mov r9, rsi
mov rdx, rsi
mov rcx, rbx
call fcn.140144840
jmp 0x14004d079
movsxd rax, edi
lea rsi, [rax + rax]
mov r9, rsi
lea r8, [0x14017f438]
mov rdx, rsi
mov rcx, rbx
call fcn.1401448d0
test edi, edi
js 0x14004d3b1
cmp edi, dword [rbx - 0xc]
jg 0x14004d3b1
mov dword [rbx - 0x10], edi
mov word [rsi + rbx], 0
call fcn.14013c178
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 0x14004d1df
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14004d1df
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
test rax, rax
je 0x14004d1df
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 0x14004d12b
cmp rdi, rdx
jae 0x14004d1df
movzx eax, word [rdi]
lea rdi, [rdi + rax*2 + 2]
add ecx, 0xffffffff
jne 0x14004d115
cmp rdi, rdx
jae 0x14004d1df
movzx eax, word [rdi]
test ax, ax
je 0x14004d1df
movzx esi, ax
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, esi
or eax, ecx
jge 0x14004d16b
mov edx, esi
lea rcx, [rsp + 0x90]
call fcn.140002da0
mov rbx, qword [rsp + 0x90]
movzx ecx, word [rdi]
lea r8, [rdi + 2]
cmp ecx, 0xffffffff
jne 0x14004d188
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.1401448d0
test eax, eax
je 0x14004d1c5
cmp eax, 0xc
je 0x14004d383
cmp eax, 0x16
je 0x14004d37d
cmp eax, 0x22
je 0x14004d37d
cmp eax, 0x50
jne 0x14004d377
test esi, esi
js 0x14004d389
cmp esi, dword [rbx - 0xc]
jg 0x14004d389
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 0x14004d1fa
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
je 0x14004d338
call fcn.14013c178
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 0x14004d338
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14004d338
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
test rax, rax
je 0x14004d338
mov rdx, r12
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rdi
and ebp, 0xf
jbe 0x14004d288
cmp rdi, rcx
jae 0x14004d338
movzx eax, word [rdi]
lea rdi, [rdi + rax*2 + 2]
add ebp, 0xffffffff
jne 0x14004d272
cmp rdi, rcx
jae 0x14004d338
movzx eax, word [rdi]
test ax, ax
je 0x14004d338
movzx esi, ax
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, esi
or eax, ecx
jge 0x14004d2c8
mov edx, esi
lea rcx, [rsp + 0x90]
call fcn.140002da0
mov rbx, qword [rsp + 0x90]
movzx ecx, word [rdi]
lea r8, [rdi + 2]
cmp ecx, 0xffffffff
jne 0x14004d2e5
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.1401448d0
test eax, eax
je 0x14004d31e
cmp eax, 0xc
je 0x14004d3a0
cmp eax, 0x16
je 0x14004d39a
cmp eax, 0x22
je 0x14004d39a
cmp eax, 0x50
jne 0x14004d394
test esi, esi
js 0x14004d3a6
cmp esi, dword [rbx - 0xc]
jg 0x14004d3a6
mov dword [rbx - 0x10], esi
mov word [rdi + rbx], 0
test rbx, rbx
jne 0x14004d341
xor ecx, ecx
jmp 0x14004d354
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.1400032e0
test r14, r14
je 0x14004d3c2
jmp 0x14004cf73
mov ecx, 0x80070057
call fcn.140002d80
int3
call fcn.1401298b4
int3
call fcn.1401298b4
int3
call fcn.14012986c
int3
mov ecx, 0x80070057
call fcn.140002d80
int3
call fcn.1401298b4
int3
call fcn.1401298b4
int3
call fcn.14012986c
int3
mov ecx, 0x80070057
call fcn.140002d80
int3
mov ecx, 0x80070057
call fcn.140002d80
int3
call fcn.1401298b4
nop
lea rdx, [rbx - 0x18]
or rax, 0xffffffffffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14004d3df
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