Function at 0x140014020
Capabilities:
Create directory
Extract resource via kernel32 functions

Disassembly:
push rbp
push rsi
lea rbp, [rsp - 0x308]
sub rsp, 0x408
mov rax, qword [0x140193440]
xor rax, rsp
mov qword [rbp + 0x2d0], rax
movdqa xmm0, xmmword [0x140179420]
lea rax, [0x140159ba0]
movdqa xmm1, xmmword [0x140179430]
mov rsi, rcx
mov qword [rsp + 0x60], rax
lea rax, str.KERNEL.SYS
mov qword [rsp + 0x68], rax
lea rax, str.DISPLAY.EXE
mov qword [rsp + 0x70], rax
lea rax, str.KEYB.EXE
mov qword [rsp + 0x78], rax
lea rax, str.MODE.COM
mov qword [rbp - 0x80], rax
lea rax, str.KEYBOARD.SYS
mov qword [rbp - 0x78], rax
lea rax, str.KEYBRD2.SYS
mov qword [rbp - 0x70], rax
lea rax, str.KEYBRD3.SYS
mov qword [rbp - 0x68], rax
lea rax, str.KEYBRD4.SYS
mov qword [rbp - 0x60], rax
lea rax, str.EGA.CPX
mov qword [rbp - 0x58], rax
lea rax, str.EGA2.CPX
mov qword [rbp - 0x50], rax
lea rax, str.EGA3.CPX
mov qword [rbp - 0x48], rax
lea rax, str.EGA4.CPX
mov qword [rbp - 0x40], rax
lea rax, str.EGA5.CPX
mov qword [rbp - 0x38], rax
lea rax, str.EGA6.CPX
mov qword [rbp - 0x30], rax
lea rax, str.EGA7.CPX
mov qword [rbp - 0x28], rax
lea rax, str.EGA8.CPX
mov qword [rbp - 0x20], rax
lea rax, str.EGA9.CPX
mov qword [rbp - 0x18], rax
lea rax, str.EGA10.CPX
mov qword [rbp - 0x10], rax
lea rax, str.EGA11.CPX
mov qword [rbp - 8], rax
lea rax, str.EGA12.CPX
mov qword [rbp], rax
lea rax, str.EGA13.CPX
mov qword [rbp + 8], rax
lea rax, str.EGA14.CPX
mov qword [rbp + 0x10], rax
lea rax, str.EGA15.CPX
mov qword [rbp + 0x18], rax
lea rax, str.EGA16.CPX
mov qword [rbp + 0x20], rax
lea rax, str.EGA17.CPX
movdqa xmmword [rbp + 0x40], xmm0
movdqa xmm0, xmmword [0x140179440]
movdqa xmmword [rbp + 0x50], xmm1
movdqa xmm1, xmmword [0x140179450]
mov qword [rbp + 0x28], rax
lea rax, str.EGA18.CPX
movdqa xmmword [rbp + 0x60], xmm0
movdqa xmm0, xmmword [0x140179460]
movdqa xmmword [rbp + 0x70], xmm1
movdqa xmm1, xmmword [0x140179470]
mov qword [rbp + 0x30], rax
movdqa xmmword [rbp + 0x80], xmm0
movdqa xmmword [rbp + 0x90], xmm1
mov dword [rbp + 0xa0], 0x144
mov dword [rbp + 0xa4], 0x145
mov dword [rbp + 0xa8], 0x146
test rcx, rcx
je 0x140014533
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], 0
jne 0x1400141f5
add rax, 0xe
cmp rax, 0x104
ja 0x140014533
mov qword [rsp + 0x428], rbx
mov rax, 0xffffffffffffffff
mov qword [rsp + 0x430], rdi
mov qword [rsp + 0x438], r12
mov qword [rsp + 0x400], r13
mov qword [rsp + 0x3f8], r14
mov qword [rsp + 0x3f0], r15
movaps xmmword [rsp + 0x3e0], xmm6
nop dword [rax]
inc rax
cmp byte [rcx + rax], 0
jne 0x140014250
inc rax
lea rcx, [rbp + 0xb0]
mov ebx, 0x104
mov rdx, rsi
cmp rax, rbx
cmovb rbx, rax
mov r8, rbx
call fcn.1401362c0
mov r9, 0xffffffffffffffff
mov byte [rbp + rbx + 0xaf], 0
lea r8, str.LOCALE_
mov edx, 0x104
lea rcx, [rbp + 0xb0]
call fcn.1400e917c
xor edx, edx
lea rcx, [rbp + 0xb0]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
movss xmm6, dword [0x140176fd0]
lea r15, [rbp + 0x40]
mov qword [rsp + 0x40], r15
lea rax, [rsp + 0x60]
mov r12d, dword [rsp + 0x40]
xor edi, edi
mov qword [rsp + 0x50], rax
mov rbx, qword [0x1401e8838]
mov r8d, 0xa
movzx edx, word [r15]
mov rcx, rbx
mov r13, qword [rax]
mov qword [rsp + 0x48], 0
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov r14, rax
test rax, rax
jne 0x14001431e
call fcn.140050120
mov r8, rax
lea rcx, str.Could_not_locate_resource__s:__s
mov rdx, r13
call fcn.14004f910
mov r14, qword [rsp + 0x48]
jmp 0x140014370
mov rdx, r14
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r15, rax
test rax, rax
jne 0x140014350
call fcn.140050120
mov r8, rax
lea rcx, str.Could_not_load_resource__s:__s
mov rdx, r13
call fcn.14004f910
mov r14, qword [rsp + 0x48]
jmp 0x14001436b
mov rdx, r14
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rcx, r15
mov r12d, eax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r14, rax
mov r15, qword [rsp + 0x40]
cmp edi, 2
lea rdx, [rbp + 0xb0]
mov rax, 0xffffffffffffffff
cmovl rdx, rsi
inc rax
cmp byte [rdx + rax], 0
jne 0x140014385
inc rax
lea rcx, [rbp + 0x1c0]
mov ebx, 0x104
cmp rax, rbx
cmovb rbx, rax
mov r8, rbx
call fcn.1401362c0
mov r9, 0xffffffffffffffff
mov byte [rbp + rbx + 0x1bf], 0
mov r8, r13
lea rcx, [rbp + 0x1c0]
mov edx, 0x104
call fcn.1400e917c
mov ecx, 6
mov qword [rsp + 0x30], 0
mov eax, 0x80
cmp edi, 2
mov edx, 0xc0000000
cmovl eax, ecx
xor r9d, r9d
lea r8d, [rcx - 5]
mov dword [rsp + 0x28], eax
lea rcx, [rbp + 0x1c0]
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x140014516
xor r9d, r9d
mov r8d, r12d
mov rdx, r14
mov rcx, rax
call fcn.140050f30
test eax, eax
je 0x14001449f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, r12d
lea rdx, [rbp + 0x1c0]
lea rcx, str.Successfully_wrote__s___d_bytes_
call fcn.14004f910
cmp edi, 0x1a
ja 0x14001446e
mov eax, 0x4410410
bt eax, edi
jae 0x14001446e
movaps xmm1, xmm6
mov ecx, 7
call fcn.140066be0
mov rax, qword [rsp + 0x50]
add r15, 4
add rax, 8
mov qword [rsp + 0x40], r15
inc edi
mov qword [rsp + 0x50], rax
cmp edi, 0x1b
jb 0x1400142d2
mov edx, 1
mov rcx, rsi
call fcn.140003d40
jmp 0x1400144c5
call fcn.140050120
mov r8, rax
lea rdx, [rbp + 0x1c0]
lea rcx, str.Could_not_write_file__s:__s.
call fcn.14004f910
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov r15, qword [rsp + 0x3f0]
mov r14, qword [rsp + 0x3f8]
mov r13, qword [rsp + 0x400]
mov r12, qword [rsp + 0x438]
mov rdi, qword [rsp + 0x430]
mov rbx, qword [rsp + 0x428]
movaps xmm6, xmmword [rsp + 0x3e0]
mov rcx, qword [rbp + 0x2d0]
xor rcx, rsp
call fcn.1400b1f80
add rsp, 0x408
pop rsi
pop rbp
ret
call fcn.140050120
mov r8, rax
lea rdx, [rbp + 0x1c0]
lea rcx, str.Unable_to_create_file__s:__s.
call fcn.14004f910
jmp 0x1400144c3
lea rcx, str.invalid_path_supplied_for_FreeDOS_extraction
call fcn.14004f910
xor eax, eax
jmp 0x1400144fd