Function at 0x140004900
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 [0x14001f010]
xor rax, rsp
mov qword [rsp + 0x4d0], rax
mov dword [rsp + 0x70], 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 + 0x60], rax
mov r8d, 0x60
xor edx, edx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x1400049b7
mov r8d, 2
xor edx, edx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x1400049cd
call fcn.140002ae0
mov dword [rsp + 0x30], eax
jmp 0x140004b4c
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 0x140004a03
call fcn.140002ae0
mov dword [rsp + 0x30], eax
jmp 0x140004b4c
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
jne 0x140004a2e
call fcn.140002ae0
mov dword [rsp + 0x30], eax
jmp 0x140004b4c
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 + 0x68]
mov qword [rsp + 0x88], rax
mov eax, dword [rsp + 0x34]
inc eax
cmp eax, dword [rsp + 0x34]
jae 0x140004a68
mov dword [rsp + 0x30], 0x8007000e
jmp 0x140004b4c
mov eax, dword [rsp + 0x34]
inc eax
mov eax, eax
mov edx, eax
lea rcx, [rsp + 0xc0]
call fcn.140002630
nop
jmp 0x140004a82
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x78], rax
cmp qword [rsp + 0x78], 0
jne 0x140004aa4
mov dword [rsp + 0x30], 0x8007000e
jmp 0x140004b4c
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x80], rax
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x34]
mov r8, qword [rsp + 0x88]
xor edx, edx
mov ecx, 3
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jne 0x140004af9
call fcn.140002ae0
mov dword [rsp + 0x30], eax
jmp 0x140004b4c
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x90], rax
mov eax, dword [rsp + 0x40]
xor ecx, ecx
mov rdx, qword [rsp + 0x90]
mov word [rdx + rax*2], cx
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x98], rax
mov r8d, dword [rsp + 0x510]
mov rdx, qword [rsp + 0x98]
lea rcx, [rsp + 0xa8]
call fcn.1400046f0
mov dword [rsp + 0x30], eax
cmp qword [rsp + 0x38], 0
je 0x140004b5f
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 0x140004b87
lea rcx, [rsp + 0xc0]
call fcn.1400030e0
nop
cmp qword [rsp + 0x48], 0
je 0x140004bb8
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0x48]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rcx, qword [rsp + 0xa0]
call fcn.14000c1c4
jmp 0x140004b87
mov eax, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x4d0]
xor rcx, rsp
call fcn.1400084e0
add rsp, 0x4e8
ret