Function at 0x1400147e0
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 [0x1401794a0]
lea rax, [0x140159d40]
movdqa xmm1, xmmword [0x1401794b0]
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 [0x1401794c0]
movdqa xmmword [rbp + 0x50], xmm1
movdqa xmm1, xmmword [0x1401794d0]
mov qword [rbp + 0x28], rax
lea rax, str.EGA18.CPX
movdqa xmmword [rbp + 0x60], xmm0
movdqa xmm0, xmmword [0x1401794e0]
movdqa xmmword [rbp + 0x70], xmm1
movdqa xmm1, xmmword [0x1401794f0]
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 0x140014cf5
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], 0
jne 0x1400149b5
add rax, 0xe
cmp rax, 0x104
ja 0x140014cf5
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 0x140014a10
inc rax
lea rcx, [rbp + 0xb0]
mov ebx, 0x104
mov rdx, rsi
cmp rax, rbx
cmovb rbx, rax
mov r8, rbx
call fcn.140135ea0
mov r9, 0xffffffffffffffff
mov byte [rbp + rbx + 0xaf], 0
lea r8, str.LOCALE_
mov edx, 0x104
lea rcx, [rbp + 0xb0]
call fcn.1400e8d6c
xor edx, edx
lea rcx, [rbp + 0xb0]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
movss xmm6, dword [0x140177040]
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 [0x1401e87b8]
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 0x140014ade
call fcn.14004fba0
mov r8, rax
lea rcx, str.Could_not_locate_resource__s:__s
mov rdx, r13
call fcn.14004f2f0
mov r14, qword [rsp + 0x48]
jmp 0x140014b30
mov rdx, r14
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r15, rax
test rax, rax
jne 0x140014b10
call fcn.14004fba0
mov r8, rax
lea rcx, str.Could_not_load_resource__s:__s
mov rdx, r13
call fcn.14004f2f0
mov r14, qword [rsp + 0x48]
jmp 0x140014b2b
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 0x140014b45
inc rax
lea rcx, [rbp + 0x1c0]
mov ebx, 0x104
cmp rax, rbx
cmovb rbx, rax
mov r8, rbx
call fcn.140135ea0
mov r9, 0xffffffffffffffff
mov byte [rbp + rbx + 0x1bf], 0
mov r8, r13
lea rcx, [rbp + 0x1c0]
mov edx, 0x104
call fcn.1400e8d6c
mov eax, 0x80
mov qword [rsp + 0x30], 0
mov ecx, 6
cmp edi, 2
mov edx, 0xc0000000
mov r8d, 1
cmovl eax, ecx
xor r9d, r9d
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 0x140014cd8
xor r9d, r9d
mov r8d, r12d
mov rdx, r14
mov rcx, rax
call fcn.140050980
test eax, eax
je 0x140014c61
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.14004f2f0
cmp edi, 0x1a
ja 0x140014c30
mov eax, 0x4410410
bt eax, edi
jae 0x140014c30
movaps xmm1, xmm6
mov ecx, 7
call fcn.140066320
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 0x140014a92
mov edx, 1
mov rcx, rsi
call fcn.140004360
jmp 0x140014c87
call fcn.14004fba0
mov r8, rax
lea rdx, [rbp + 0x1c0]
lea rcx, str.Could_not_write_file__s:__s.
call fcn.14004f2f0
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.1400b2a30
add rsp, 0x408
pop rsi
pop rbp
ret
call fcn.14004fba0
mov r8, rax
lea rdx, [rbp + 0x1c0]
lea rcx, str.Unable_to_create_file__s:__s.
call fcn.14004f2f0
jmp 0x140014c85
lea rcx, str.invalid_path_supplied_for_FreeDOS_extraction
call fcn.14004f2f0
xor eax, eax
jmp 0x140014cbf