Function at 0x140004850
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x4e8
mov qword [rsp + 0xb8], 0xfffffffffffffffe
mov rax, qword [0x14001a1f0]
xor rax, rsp
mov qword [rsp + 0x4d0], rax
mov dword [rsp + 0x98], 3
mov qword [rsp + 0x48], 0
mov rax, qword [rsp + 0x4f0]
mov qword [rsp + 0xb0], rax
mov qword [rsp + 0xa8], 0
mov qword [rsp + 0xc0], 0
mov rax, qword [rsp + 0x4f8]
mov qword [rsp + 0x68], rax
mov r8d, 0x60
xor edx, edx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x14000490a
mov r8d, 2
xor edx, edx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x140004920
call fcn.140002810
mov dword [rsp + 0x30], eax
jmp 0x140004a99
mov r8, qword [rsp + 0x508]
mov rdx, qword [rsp + 0x500]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x140004956
call fcn.140002810
mov dword [rsp + 0x30], eax
jmp 0x140004a99
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
jne 0x140004981
call fcn.140002810
mov dword [rsp + 0x30], eax
jmp 0x140004a99
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [rsp + 0x34], eax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x90], rax
mov eax, dword [rsp + 0x34]
inc eax
cmp eax, dword [rsp + 0x34]
jae 0x1400049bb
mov dword [rsp + 0x30], 0x8007000e
jmp 0x140004a99
mov eax, dword [rsp + 0x34]
inc eax
mov eax, eax
mov edx, eax
lea rcx, [rsp + 0xc0]
call fcn.140002310
nop
jmp 0x1400049d5
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x80], rax
cmp qword [rsp + 0x80], 0
jne 0x1400049fd
mov dword [rsp + 0x30], 0x8007000e
jmp 0x140004a99
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0xa0], rax
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x34]
mov r8, qword [rsp + 0x90]
xor edx, edx
mov ecx, 3
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jne 0x140004a52
call fcn.140002810
mov dword [rsp + 0x30], eax
jmp 0x140004a99
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x70], rax
mov eax, dword [rsp + 0x40]
xor ecx, ecx
mov rdx, qword [rsp + 0x70]
mov word [rdx + rax*2], cx
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x78], rax
mov r8d, dword [rsp + 0x510]
mov rdx, qword [rsp + 0x78]
lea rcx, [rsp + 0xa8]
call fcn.140004640
mov dword [rsp + 0x30], eax
cmp qword [rsp + 0x38], 0
je 0x140004aac
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x50], eax
lea rax, [rsp + 0xc8]
cmp qword [rsp + 0xc0], rax
je 0x140004ad4
lea rcx, [rsp + 0xc0]
call fcn.140003000
nop
cmp qword [rsp + 0x48], 0
je 0x140004b05
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x48]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rcx, qword [rsp + 0x88]
call fcn.14000791c
jmp 0x140004ad4
mov eax, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x4d0]
xor rcx, rsp
call fcn.140008730
add rsp, 0x4e8
ret