Function at 0x14004dc20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x480
lea rbp, [rsp + 0x20]
mov qword [rbp + 0x30], 0xfffffffffffffffe
mov rax, qword [0x1400ee620]
xor rax, rbp
mov qword [rbp + 0x450], rax
mov r14, r9
mov r13, r8
mov r12, rdx
xor ebx, ebx
mov qword [rbp + 8], rbx
mov qword [rbp + 0x28], rcx
mov qword [rbp + 0x20], rbx
mov rax, rbx
mov qword [rbp + 0x40], rbx
test rdx, rdx
je 0x14004dec3
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
movsxd rdi, eax
add rdi, rdi
mov eax, 0x80000000
add rax, rdi
mov ecx, 0xffffffff
cmp rax, rcx
ja 0x14004debf
cmp edi, 0x400
jg 0x14004dcdb
movsxd rsi, edi
mov rcx, rsi
call fcn.14003c730
test al, al
je 0x14004dcdb
lea rax, [rsi + 0xf]
cmp rax, rsi
ja 0x14004dcc8
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.14009ff00
sub rsp, rax
lea rcx, [rsp + 0x20]
jmp 0x14004dd10
movsxd rcx, edi
or rax, 0xffffffffffffffff
sub rax, rcx
cmp rax, 0x10
jb 0x14004deb4
add rcx, 0x10
call fcn.140084ebc
test rax, rax
jne 0x14004dd02
mov rcx, rbx
jmp 0x14004dd10
mov qword [rax], rbx
mov rbx, rax
mov qword [rbp + 8], rax
lea rcx, [rax + 0x10]
mov r9d, 3
mov r8d, edi
mov rdx, r12
call fcn.14004b490
test rax, rax
je 0x14004debf
xor edx, edx
lea r8d, [rdx + 2]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov rsi, rax
mov qword [rbp + 0x18], rax
test rax, rax
jne 0x14004dd51
call fcn.14003ebf0
mov edi, eax
jmp 0x14004de84
mov r8, r14
mov rdx, r13
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rdi, rax
test rax, rax
jne 0x14004dd74
call fcn.14003ebf0
mov edi, eax
jmp 0x14004de7a
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r12, rax
mov qword [rbp + 0x10], rax
test rax, rax
jne 0x14004dd98
call fcn.14003ebf0
mov edi, eax
jmp 0x14004de7a
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [rbp], edi
lea eax, [rdi + 1]
cmp eax, edi
jae 0x14004ddea
lea rax, [rbp + 0x48]
cmp qword [rbp + 0x40], rax
je 0x14004ddc4
lea rcx, [rbp + 0x40]
call fcn.14004bcc0
nop
test rbx, rbx
je 0x14004dde0
nop dword [rax]
mov rcx, rbx
mov rbx, qword [rbx]
call fcn.140084154
test rbx, rbx
jne 0x14004ddd0
mov eax, 0x8007000e
jmp 0x14004def5
mov ecx, eax
test eax, eax
je 0x14004de24
xor edx, edx
or rax, 0xffffffffffffffff
div rcx
cmp rax, 1
jae 0x14004de09
mov ecx, 0x80070057
call fcn.1400395a0
cmp rcx, 0x400
jbe 0x14004de24
mov rdx, rcx
lea rcx, [rbp + 0x40]
call fcn.14004bcd0
mov rcx, qword [rbp + 0x40]
jmp 0x14004de2c
lea rcx, [rbp + 0x48]
mov qword [rbp + 0x40], rcx
jmp 0x14004de41
test rcx, rcx
jne 0x14004de4d
mov edi, 0x8007000e
jmp 0x14004de7a
mov r9, rdi
mov r8, r12
mov rdx, rdi
call fcn.1400395c0
mov r11, qword [rbp + 0x40]
mov byte [rdi + r11], 0
mov r8d, dword [rbp + 0x4c0]
mov rdx, qword [rbp + 0x40]
lea rcx, [rbp + 0x20]
call fcn.14004da50
mov edi, eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rbp + 0x48]
cmp qword [rbp + 0x40], rax
je 0x14004de98
lea rcx, [rbp + 0x40]
call fcn.14004bcc0
nop
test rbx, rbx
je 0x14004deb0
nop dword [rax]
mov rcx, rbx
mov rbx, qword [rbx]
call fcn.140084154
test rbx, rbx
jne 0x14004dea0
mov eax, edi
jmp 0x14004def5
mov ecx, 0x80070057
call fcn.1400395a0
int3
mov rax, qword [rbp + 0x40]
lea rcx, [rbp + 0x48]
cmp rax, rcx
je 0x14004ded6
lea rcx, [rbp + 0x40]
call fcn.14004bcc0
nop
test rbx, rbx
je 0x14004def0
nop dword [rax + rax]
mov rcx, rbx
mov rbx, qword [rbx]
call fcn.140084154
test rbx, rbx
jne 0x14004dee0
mov eax, 0x8007000e
mov rcx, qword [rbp + 0x450]
xor rcx, rbp
call fcn.140083f40
lea rsp, [rbp + 0x460]
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret