Function at 0x140028220
Capabilities:
Create directory

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x70]
sub rsp, 0x170
movaps xmmword [rax - 0x38], xmm6
movaps xmmword [rax - 0x48], xmm7
mov rax, qword [0x140061040]
xor rax, rsp
mov qword [rbp + 0x40], rax
xor r15d, r15d
mov rsi, qword [0x140061bf0]
mov rcx, rsi
call fcn.140024c40
mov rcx, qword [rsi + 0x70]
lea rdx, [0x1400570c8]
mov rcx, qword [rcx]
call qword [sym.imp.USER32.dll_SetWindowTextW]
mov rbx, qword [rsi + 0x70]
xorps xmm0, xmm0
movups xmmword [rbp - 0x40], xmm0
mov qword [rbp - 0x30], r15
mov qword [rbp - 0x28], r15
lea r8d, [r15 + 0x26]
lea rdx, str.____Handling__Save_images__command____
lea rcx, [rbp - 0x40]
call fcn.1400074d0
lea rdx, [rbp - 0x40]
mov rcx, rbx
call fcn.1400113a0
lea rdx, [rsi + 0x38]
lea rcx, [rbp - 0x20]
call fcn.1400280b0
nop
lea rcx, [rbp - 0x20]
cmp qword [rbp - 8], 7
cmova rcx, qword [rbp - 0x20]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1400283cc
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rax, [rbp - 0x20]
cmp qword [rbp - 8], 7
cmova rax, qword [rbp - 0x20]
lea rcx, str.Failed_to_create_output_folder___
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x38], 0x23
mov qword [rsp + 0x58], rax
movabs rax, 0xb000000000000000
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x20], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x20], xmm0
movaps xmm1, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm1
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x40]
call fcn.140008700
lea rdx, [rbp - 0x40]
cmp qword [rbp - 0x28], 7
cmova rdx, qword [rbp - 0x40]
xor r9d, r9d
lea r8, str.XView
mov rcx, qword [rsi + 0x58]
call qword [sym.imp.USER32.dll_MessageBoxW]
mov rcx, rsi
call fcn.140024ad0
mov rdx, qword [rbp - 0x28]
cmp rdx, 7
jbe 0x14002888c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002886e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14002886e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rbx, qword [rsi + 0x70]
lea rax, str.Saving_images_to_folder___._Please_wait_...
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], 0x2d
lea rax, [rbp - 0x20]
cmp qword [rbp - 8], 7
cmova rax, qword [rbp - 0x20]
mov qword [rsp + 0x58], rax
mov rax, qword [rbp - 0x10]
mov qword [rsp + 0x60], rax
movabs r12, 0xc000000000000000
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x30], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
movaps xmm1, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x20], xmm1
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x20]
lea rcx, [rbp - 0x40]
call fcn.140008700
lea rdx, [rbp - 0x40]
mov rcx, rbx
call fcn.1400113a0
mov edi, r15d
mov rbx, qword [rsi + 0xe8]
mov r14, qword [rsi + 0xf0]
cmp rbx, r14
je 0x14002858b
lea rax, str.:03d_.bmp
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 0x10
mov qword [rsp + 0x20], 3
lea rax, [rbp - 0x80]
mov qword [rsp + 0x28], rax
movabs r13, 0x1000000000000010
movaps xmm6, xmmword [rsp + 0x30]
movaps xmm7, xmmword [rsp + 0x20]
movabs r8, 0xc000000000000014
mov rcx, qword [rbx]
inc edi
lea rax, [rbp - 0x20]
cmp qword [rbp - 8], 7
cmova rax, qword [rbp - 0x20]
mov qword [rbp - 0x68], rax
mov rax, qword [rbp - 0x10]
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x80], r12
mov dword [rbp - 0x58], edi
mov qword [rbp - 0x78], r13
lea rdx, [rcx + 0x10]
cmp qword [rcx + 0x28], 7
jbe 0x1400284f0
mov rdx, qword [rcx + 0x10]
mov rax, qword [rcx + 0x20]
mov qword [rbp - 0x54], rdx
mov qword [rbp - 0x4c], rax
mov qword [rbp - 0x70], r8
movdqa xmmword [rsp + 0x30], xmm7
movdqa xmmword [rsp + 0x20], xmm6
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x20]
lea rcx, [rbp - 0x40]
call fcn.140008700
nop
lea rdx, [rbp - 0x40]
cmp qword [rbp - 0x28], 7
cmova rdx, qword [rbp - 0x40]
mov rcx, qword [rbx]
call fcn.140001450
test al, al
je 0x1400286e6
mov rdx, qword [rbp - 0x28]
cmp rdx, 7
jbe 0x14002857e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140028579
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400286df
call fcn.140033aa0
add rbx, 8
cmp rbx, r14
jne 0x1400284ad
mov rbx, qword [rsi + 0x70]
xorps xmm0, xmm0
movups xmmword [rbp - 0x40], xmm0
mov qword [rbp - 0x30], r15
mov qword [rbp - 0x28], r15
mov r8d, 0x17
lea rdx, str.Saving_images_completed
lea rcx, [rbp - 0x40]
call fcn.1400074d0
lea rdx, [rbp - 0x40]
mov rcx, rbx
call fcn.1400113a0
lea rax, str.Polygons.gds
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], 0xf
lea rax, [rbp - 0x20]
cmp qword [rbp - 8], 7
cmova rax, qword [rbp - 0x20]
mov qword [rsp + 0x70], rax
mov rax, qword [rbp - 0x10]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x68], r12
mov qword [rsp + 0x30], 1
lea rax, [rsp + 0x68]
mov qword [rsp + 0x38], rax
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
movaps xmm1, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x20], xmm1
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x20]
lea rcx, [rbp + 0x20]
call fcn.140008700
nop
mov rax, qword [rsi + 8]
movsd xmm3, qword [0x140059388]
movsd xmm2, qword [0x1400593b8]
mov rdx, qword [rax + 0xa8]
lea rcx, [rbp + 0x20]
call fcn.140018de0
mov rbx, qword [rsi + 0x70]
xorps xmm0, xmm0
movups xmmword [rbp - 0x40], xmm0
mov qword [rbp - 0x30], r15
mov qword [rbp - 0x28], r15
mov r8d, 0x3e
lea rdx, str.Saved_polygons_to__Polygons.gds__in_the_image_output_directory
lea rcx, [rbp - 0x40]
call fcn.1400074d0
lea rdx, [rbp - 0x40]
mov rcx, rbx
call fcn.1400113a0
mov rcx, rsi
call fcn.140024ad0
nop
mov rdx, qword [rbp + 0x38]
cmp rdx, 7
jbe 0x14002887a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140028875
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140028875
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
lea rax, str.Error_while_saving_image_s__to_output_folder___
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], 0x31
lea rax, [rbp - 0x20]
cmp qword [rbp - 8], 7
cmova rax, qword [rbp - 0x20]
mov qword [rsp + 0x70], rax
mov rax, qword [rbp - 0x10]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x68], r12
mov qword [rsp + 0x30], 1
lea rax, [rsp + 0x68]
mov qword [rsp + 0x38], rax
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
movaps xmm1, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x20], xmm1
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x20]
lea rcx, [rbp]
call fcn.140008700
nop
lea rdx, [rbp]
cmp qword [rbp + 0x18], 7
cmova rdx, qword [rbp]
xor r9d, r9d
lea r8, str.XView
mov rcx, qword [rsi + 0x58]
call qword [sym.imp.USER32.dll_MessageBoxW]
mov rbx, qword [rsi + 0x70]
lea rdx, [rbp]
cmp qword [rbp + 0x18], 7
cmova rdx, qword [rbp]
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x48], r15
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x1400287b0
lea rcx, [rsp + 0x30]
call fcn.1400074d0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.1400113a0
mov rcx, rsi
call fcn.140024ad0
nop
mov rdx, qword [rbp + 0x18]
cmp rdx, 7
jbe 0x14002881e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140028819
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140028819
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140033aa0
movdqa xmm0, xmmword [0x140059500]
movdqu xmmword [rbp + 0x10], xmm0
mov word [rbp], r15w
mov rdx, qword [rbp - 0x28]
cmp rdx, 7
jbe 0x14002888c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002886e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14002886e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140033aa0
jmp 0x14002888c
call fcn.140033aa0
movdqa xmm0, xmmword [0x140059500]
movdqu xmmword [rbp + 0x30], xmm0
mov word [rbp + 0x20], r15w
mov rdx, qword [rbp - 8]
cmp rdx, 7
jbe 0x1400288cf
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400288ca
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400288ca
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140033aa0
mov rcx, qword [rbp + 0x40]
xor rcx, rsp
call fcn.140033a80
lea r11, [rsp + 0x170]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret