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

Disassembly:
push rbp
push rsi
lea rbp, [rsp - 0x308]
sub rsp, 0x408
mov rax, qword [0x140106438]
xor rax, rsp
mov qword [rbp + 0x2d0], rax
movdqa xmm0, xmmword [0x1400f8950]
lea rax, [0x1400daae0]
movdqa xmm1, xmmword [0x1400f8960]
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 [0x1400f8970]
movdqa xmmword [rbp + 0x50], xmm1
movdqa xmm1, xmmword [0x1400f8980]
mov qword [rbp + 0x28], rax
lea rax, str.EGA18.CPX
movdqa xmmword [rbp + 0x60], xmm0
movdqa xmm0, xmmword [0x1400f8990]
movdqa xmmword [rbp + 0x70], xmm1
movdqa xmm1, xmmword [0x1400f89a0]
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 0x140010783
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], 0
jne 0x140010445
add rax, 0xe
cmp rax, 0x104
ja 0x140010783
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 0x1400104a0
inc rax
lea rcx, [rbp + 0xb0]
mov ebx, 0x104
mov rdx, rsi
cmp rax, rbx
cmovb rbx, rax
mov r8, rbx
call fcn.140093550
mov r9, 0xffffffffffffffff
mov byte [rbp + rbx + 0xaf], 0
lea r8, str.LOCALE_
mov edx, 0x104
lea rcx, [rbp + 0xb0]
call fcn.14009b5bc
xor edx, edx
lea rcx, [rbp + 0xb0]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
movss xmm6, dword [0x1400f6518]
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 [0x14015a338]
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 0x14001056e
call fcn.140041e50
mov r8, rax
lea rcx, str.Could_not_locate_resource__s:__s
mov rdx, r13
call fcn.140041aa0
mov r14, qword [rsp + 0x48]
jmp 0x1400105c0
mov rdx, r14
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r15, rax
test rax, rax
jne 0x1400105a0
call fcn.140041e50
mov r8, rax
lea rcx, str.Could_not_load_resource__s:__s
mov rdx, r13
call fcn.140041aa0
mov r14, qword [rsp + 0x48]
jmp 0x1400105bb
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]
cmovl rdx, rsi
mov rcx, 0xffffffffffffffff
inc rcx
cmp byte [rdx + rcx], 0
jne 0x1400105d5
inc rcx
mov ebx, 0x104
cmp rcx, rbx
cmovb rbx, rcx
lea rcx, [rbp + 0x1c0]
mov r8, rbx
call fcn.140093550
mov r9, 0xffffffffffffffff
mov byte [rbp + rbx + 0x1bf], 0
mov r8, r13
lea rcx, [rbp + 0x1c0]
mov edx, 0x104
call fcn.14009b5bc
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 0x140010766
xor r9d, r9d
mov r8d, r12d
mov rdx, r14
mov rcx, rax
call fcn.140042b10
test eax, eax
je 0x1400106ef
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.140041aa0
cmp edi, 0x1a
ja 0x1400106be
mov eax, 0x4410410
bt eax, edi
jae 0x1400106be
movaps xmm1, xmm6
mov ecx, 7
call fcn.140052680
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 0x140010522
mov edx, 1
mov rcx, rsi
call fcn.140002930
jmp 0x140010715
call fcn.140041e50
mov r8, rax
lea rdx, [rbp + 0x1c0]
lea rcx, str.Could_not_write_file__s:__s.
call fcn.140041aa0
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.140092060
add rsp, 0x408
pop rsi
pop rbp
ret
call fcn.140041e50
mov r8, rax
lea rdx, [rbp + 0x1c0]
lea rcx, str.Unable_to_create_file__s:__s.
call fcn.140041aa0
jmp 0x140010713
lea rcx, str.invalid_path_supplied_for_FreeDOS_extraction
call fcn.140041aa0
xor eax, eax
jmp 0x14001074d