Function at 0x140006000
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x480
lea rbp, [rsp + 0x20]
mov qword [rbp + 0x30], 0xfffffffffffffffe
mov rax, qword [0x14007a8d0]
xor rax, rbp
mov qword [rbp + 0x450], rax
mov r12, r9
mov r15, r8
mov rsi, rdx
xor ebx, ebx
mov qword [rbp + 8], rbx
mov qword [rbp + 0x28], rcx
mov qword [rbp + 0x20], rbx
mov ecx, ebx
mov qword [rbp + 0x40], rbx
test rdx, rdx
je 0x140006298
or rax, 0xffffffffffffffff
nop word [rax + rax]
inc rax
cmp word [rdx + rax*2], 0
jne 0x140006060
inc eax
movsxd rdi, eax
add rdi, rdi
mov eax, 0x80000000
add rax, rdi
mov edx, 0xffffffff
cmp rax, rdx
ja 0x140006298
cmp edi, 0x400
jg 0x1400060c5
movsxd r14, edi
mov rcx, r14
call fcn.1400080c0
test al, al
je 0x1400060c5
lea rax, [r14 + 0xf]
cmp rax, r14
ja 0x1400060b2
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.14003ee70
sub rsp, rax
lea rcx, [rsp + 0x20]
jmp 0x1400060fa
movsxd rcx, edi
or rax, 0xffffffffffffffff
sub rax, rcx
cmp rax, 0x10
jb 0x14000628d
add rcx, 0x10
call fcn.14003d1c4
test rax, rax
jne 0x1400060ec
mov rcx, rbx
jmp 0x1400060fa
mov qword [rax], rbx
mov rbx, rax
mov qword [rbp + 8], rax
lea rcx, [rax + 0x10]
mov r9d, 3
mov r8d, edi
mov rdx, rsi
call fcn.140003720
mov rdi, rax
test rax, rax
je 0x140006287
xor edx, edx
lea r8d, [rdx + 0x60]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov rsi, rax
mov qword [rbp + 0x10], rax
test rax, rax
jne 0x140006159
xor edx, edx
lea r8d, [rax + 2]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov rsi, rax
mov qword [rbp + 0x10], rax
test rax, rax
jne 0x140006159
call fcn.140002710
mov edi, eax
jmp 0x14000625a
mov r8, r12
mov rdx, r15
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rdi, rax
test rax, rax
jne 0x14000617a
call fcn.140002710
jmp 0x140006249
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r14, rax
mov qword [rbp + 0x18], rax
test rax, rax
jne 0x14000619c
call fcn.140002710
jmp 0x140006249
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 0x1400061be
mov edi, 0x8007000e
jmp 0x14000624b
mov ecx, eax
test eax, eax
je 0x1400061f4
xor edx, edx
or rax, 0xffffffffffffffff
div rcx
cmp rax, 1
jae 0x1400061dd
mov ecx, 0x80070216
call fcn.140003630
cmp rcx, 0x400
jbe 0x1400061f4
mov rdx, rcx
lea rcx, [rbp + 0x40]
call fcn.1400025b0
jmp 0x1400061fc
lea rax, [rbp + 0x48]
mov qword [rbp + 0x40], rax
jmp 0x14000620d
cmp qword [rbp + 0x40], 0
jne 0x14000621b
mov edi, 0x8007000e
jmp 0x14000624b
mov r9, rdi
mov r8, r14
mov rdx, rdi
mov rcx, qword [rbp + 0x40]
call fcn.1400086c0
mov rax, qword [rbp + 0x40]
mov byte [rdi + rax], 0
mov r8d, dword [rbp + 0x4c0]
mov rdx, qword [rbp + 0x40]
lea rcx, [rbp + 0x20]
call fcn.140005e20
mov edi, eax
test rsi, rsi
je 0x14000625a
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rbp + 0x48]
cmp qword [rbp + 0x40], rax
je 0x14000626e
lea rcx, [rbp + 0x40]
call fcn.140004180
nop
test rbx, rbx
je 0x140006283
mov rcx, rbx
mov rbx, qword [rbx]
call fcn.14003d184
test rbx, rbx
jne 0x140006273
mov eax, edi
jmp 0x1400062c5
mov rcx, qword [rbp + 0x40]
jmp 0x140006298
mov ecx, 0x80070216
call fcn.140003630
nop
lea rax, [rbp + 0x48]
cmp rcx, rax
je 0x1400062ab
lea rcx, [rbp + 0x40]
call fcn.140004180
nop
test rbx, rbx
je 0x1400062c0
mov rcx, rbx
mov rbx, qword [rbx]
call fcn.14003d184
test rbx, rbx
jne 0x1400062b0
mov eax, 0x8007000e
mov rcx, qword [rbp + 0x450]
xor rcx, rbp
call fcn.14003eed0
lea rsp, [rbp + 0x460]
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret