Function at 0x140039980
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x2e8
mov rax, qword [0x1408fa960]
xor rax, rsp
mov qword [rsp + 0x2d0], rax
mov dword [rsp + 0x34], 0xffffffff
lea rdx, [rsp + 0x210]
mov rcx, qword [rsp + 0x2f0]
call fcn.1400397d0
mov qword [rsp + 0x50], rax
mov rcx, qword [rsp + 0x50]
call fcn.1400165c0
mov byte [rsp + 0x31], al
lea rcx, [rsp + 0x210]
call fcn.14000a800
movzx eax, byte [rsp + 0x31]
test eax, eax
je 0x140039d4a
mov rdx, qword [rsp + 0x2f8]
lea rcx, [rsp + 0x1d0]
call fcn.140015150
nop
lea rcx, [rsp + 0x1d0]
call fcn.14002a240
lea rdx, [0x1402f04b0]
lea rcx, [rsp + 0x1d0]
call fcn.14001efd0
mov byte [rsp + 0x30], 1
lea rcx, [rsp + 0x1d0]
call fcn.14000c690
xor edx, edx
mov rcx, rax
call fcn.1400f1be0
movzx eax, al
test eax, eax
je 0x140039c28
lea rdx, [rsp + 0x1d0]
lea rcx, [rsp + 0x120]
call fcn.1401733f0
mov qword [rsp + 0xf0], rax
mov r8b, reloc.msi.dll_MsiGetComponentStateA
mov edx, 1
lea rcx, [rsp + 0x230]
call fcn.140047880
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x68], rax
lea rdx, [0x1402f04c0]
lea rcx, [rsp + 0x1f0]
call fcn.14002b570
mov qword [rsp + 0xf8], rax
mov r8, qword [rsp + 0x68]
lea rdx, [rsp + 0x1f0]
lea rcx, [rsp + 0x100]
call fcn.1401728a0
nop
lea rcx, [rsp + 0x1f0]
call fcn.140015480
nop
lea rcx, [rsp + 0x230]
call fcn.140015480
mov rax, qword [rsp + 0x120]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x70], rax
lea rdx, [rsp + 0x100]
lea rcx, [rsp + 0x120]
call qword [rsp + MsiRecordGetStringA]
mov byte [rsp + 0x32], al
movzx eax, byte [rsp + 0x32]
test eax, eax
je 0x140039c13
lea rcx, [rsp + 0x120]
call fcn.140174350
mov byte [rsp + 0x33], al
movzx eax, byte [rsp + 0x33]
test eax, eax
jne 0x140039c13
lea r8, [0x1402f04d0]
lea rdx, [rsp + 0x1d0]
lea rcx, [rsp + 0x250]
call fcn.14001b840
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x80], rax
mov rcx, qword [rsp + 0x80]
call fcn.14000c690
mov rcx, rax
call fcn.1400f23b0
nop
lea rcx, [rsp + 0x250]
call fcn.14000a800
lea r8, [0x1402f04e0]
lea rdx, [rsp + 0x1d0]
lea rcx, [rsp + 0x270]
call fcn.14001b840
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x90], rax
mov rcx, qword [rsp + 0x90]
call fcn.14000c690
mov qword [rsp + 0x98], rax
lea rcx, [rsp + 0x1d0]
call fcn.14000c690
mov qword [rsp + 0xa0], rax
xor r8d, r8d
mov rdx, qword [rsp + 0x98]
mov rcx, qword [rsp + 0xa0]
call fcn.1400f1ee0
nop
lea rcx, [rsp + 0x270]
call fcn.14000a800
jmp 0x140039c18
mov byte [rsp + 0x30], 0
lea rcx, [rsp + 0x120]
call fcn.14002c840
nop
jmp 0x140039c28
movzx eax, byte [rsp + 0x30]
test eax, eax
je 0x140039d33
lea r8, [0x1402f0510]
mov edx, 0xc9
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
je 0x140039d15
mov rdx, qword [rsp + 0x40]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov qword [rsp + 0xd8], rax
mov rdx, qword [rsp + 0x40]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov eax, eax
mov qword [rsp + 0xe0], rax
mov rcx, qword [rsp + 0xd8]
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [rsp + 0xe8], rax
mov qword [rsp + 0x48], 0xffffffffffffffff
lea rcx, [rsp + 0x1d0]
call fcn.14000c690
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, 2
lea rdx, [rsp + 0x48]
mov rcx, rax
call fcn.1400f24d0
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
jne 0x140039d15
xor r9d, r9d
mov r8, qword [rsp + 0xe0]
mov rdx, qword [rsp + 0xe8]
mov rcx, qword [rsp + 0x48]
call fcn.1400f2d40
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
jne 0x140039d0b
mov dword [rsp + 0x34], 0
lea rcx, [rsp + 0x48]
call fcn.1400f25c0
cmp dword [rsp + 0x34], 0xffffffff
jne 0x140039d31
mov rdx, qword [rsp + 0x2f8]
mov rcx, qword [rsp + 0x2f0]
call fcn.140039d80
jmp 0x140039d3b
mov dword [rsp + 0x34], 1
lea rcx, [rsp + 0x1d0]
call fcn.14000a800
jmp 0x140039d52
mov dword [rsp + 0x34], 1
mov eax, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x2d0]
xor rcx, rsp
call fcn.140222a60
add rsp, 0x2e8
ret