Function at 0x140049d10
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x158]
sub rsp, 0x220
movaps xmmword [rax - 0x48], xmm6
movaps xmmword [rax - 0x58], xmm7
mov rax, qword [0x140129200]
xor rax, rsp
mov qword [rbp + 0xf0], rax
mov r15, rdx
mov r12, rcx
mov qword [rbp + 0xe8], rdx
xor r14d, r14d
lea rbx, [rcx + 0x10]
mov r8, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x140049d6a
mov r8, qword [rbx]
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], r14
mov r9d, dword [rbx + 0x10]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xorps xmm0, xmm0
movups xmmword [rbp + 0x50], xmm0
mov qword [rbp + 0x60], r14
mov qword [rbp + 0x68], r14
movsxd r8, eax
xor edx, edx
lea rcx, [rbp + 0x50]
call fcn.1400506b0
lea rcx, [rbp + 0x50]
cmp qword [rbp + 0x68], 7
cmova rcx, qword [rbp + 0x50]
mov r9d, dword [rbx + 0x10]
cmp qword [rbx + 0x18], 0xf
jbe 0x140049dbe
mov rbx, qword [rbx]
mov eax, dword [rbp + 0x60]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r8, rbx
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov rcx, qword [r12]
add rcx, 0x18
lea rdx, [rbp + 0x50]
call fcn.14004ebe0
mov rdx, qword [rbp + 0x68]
cmp rdx, 7
jbe 0x140049e2e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140049e29
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140049e29
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400d8070
lea rbx, [r12 + 0x30]
mov r8, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x140049e40
mov r8, qword [rbx]
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], r14
mov r9d, dword [rbx + 0x10]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xorps xmm0, xmm0
movups xmmword [rbp + 0x50], xmm0
mov qword [rbp + 0x60], r14
mov qword [rbp + 0x68], r14
movsxd r8, eax
xor edx, edx
lea rcx, [rbp + 0x50]
call fcn.1400506b0
lea rcx, [rbp + 0x50]
cmp qword [rbp + 0x68], 7
cmova rcx, qword [rbp + 0x50]
mov r9d, dword [rbx + 0x10]
cmp qword [rbx + 0x18], 0xf
jbe 0x140049e94
mov rbx, qword [rbx]
mov eax, dword [rbp + 0x60]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r8, rbx
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov rcx, qword [r12]
add rcx, 0x38
lea rdx, [rbp + 0x50]
call fcn.14004ebe0
mov rdx, qword [rbp + 0x68]
cmp rdx, 7
jbe 0x140049f04
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140049eff
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140049eff
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400d8070
lea rbx, [r12 + 0x50]
mov r8, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x140049f16
mov r8, qword [rbx]
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], r14
mov r9d, dword [rbx + 0x10]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xorps xmm0, xmm0
movups xmmword [rbp + 0xb8], xmm0
mov qword [rbp + 0xc8], r14
mov qword [rbp + 0xd0], r14
movsxd r8, eax
xor edx, edx
lea rcx, [rbp + 0xb8]
call fcn.1400506b0
lea rcx, [rbp + 0xb8]
cmp qword [rbp + 0xd0], 7
cmova rcx, qword [rbp + 0xb8]
mov r9d, dword [rbx + 0x10]
cmp qword [rbx + 0x18], 0xf
jbe 0x140049f7f
mov rbx, qword [rbx]
mov eax, dword [rbp + 0xc8]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r8, rbx
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
nop
xorps xmm0, xmm0
movups xmmword [rbp + 0xd8], xmm0
lea rcx, [rbp + 0xd8]
call fcn.1400491c0
nop
cmp dword [r12 + 8], 2
jne 0x14004a3cd
movzx ecx, byte [0x1401589be]
test cl, cl
je 0x14004a10a
xorps xmm0, xmm0
movups xmmword [rbp + 0x70], xmm0
mov qword [rbp + 0x80], r14
mov qword [rbp + 0x88], r14
mov r8d, reloc.WS2_32.dll_recv
lea rdx, str.CoCreateInstance
lea rcx, [rbp + 0x70]
call fcn.140040980
nop
lea rdx, [rbp + 0x70]
cmp qword [rbp + 0x88], 0xf
cmova rdx, qword [rbp + 0x70]
mov rcx, qword [rbp + 0xd8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [rbp + 0xe8]
mov qword [rsp + 0x20], rcx
lea r9, [0x14010fcc8]
xor edx, edx
lea r8d, [rdx + 1]
lea rcx, [0x1400ddf60]
call rax
mov ebx, eax
mov rdx, qword [rbp + 0x88]
cmp rdx, 0xf
jbe 0x14004a080
inc rdx
mov rcx, qword [rbp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004a07b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004a07b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400d8070
test ebx, ebx
js 0x14004a103
movzx r9d, byte [r12 + 0x70]
shr r9b, 2
and r9b, 1
mov r8, qword [rbp + 0xe8]
mov rdx, r15
mov rcx, qword [r12]
call fcn.14004b250
nop
lea rcx, [rbp + 0xd8]
call fcn.140049320
nop
mov rdx, qword [rbp + 0xd0]
cmp rdx, 7
jbe 0x14004a804
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xb8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004a7ff
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004a7ff
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
movzx ecx, byte [0x1401589be]
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x78], r14
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x80], xmm0
mov qword [rbp - 0x70], r14
mov qword [rbp - 0x58], r14
lea rax, [0x14004b220]
mov qword [rbp - 0x68], rax
mov rax, qword [r12]
mov qword [rbp - 0x60], rax
test cl, cl
je 0x14004a150
mov eax, r14d
cmp dword [rbp + 0xe0], 1
ja 0x14004a14a
or eax, 0x40
or eax, 0x14
mov dword [rbp - 0x70], eax
lea rcx, [rsp + 0x70]
call qword [sym.imp.SHELL32.dll_SHBrowseForFolderW]
mov rdi, rax
xorps xmm0, xmm0
movups xmmword [rbp + 0x50], xmm0
mov qword [rbp + 0x60], r14
mov qword [rbp + 0x68], reloc.WS2_32.dll_ntohs
mov byte [rbp + 0x50], 0
test rax, rax
je 0x14004a35f
mov ecx, 0x208
call fcn.1400d874c
mov rbx, rax
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
xorps xmm0, xmm0
movups xmmword [rbp + 0x70], xmm0
mov qword [rbp + 0x80], r14
mov qword [rbp + 0x88], r14
mov r8d, reloc.WS2_32.dll_listen
lea rdx, str.CoTaskMemFree
lea rcx, [rbp + 0x70]
call fcn.140040980
nop
lea rdx, [rbp + 0x70]
cmp qword [rbp + 0x88], 0xf
cmova rdx, qword [rbp + 0x70]
mov rcx, qword [rbp + 0xd8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rdi
call rax
nop
mov rdx, qword [rbp + 0x88]
cmp rdx, 0xf
jbe 0x14004a228
inc rdx
mov rcx, qword [rbp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004a223
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004a223
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400d8070
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x58], r14
mov rsi, 0xffffffffffffffff
inc rsi
cmp word [rbx + rsi*2], 0
jne 0x14004a241
mov r8, rsi
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.140040840
nop
lea r8, [rsp + 0x40]
cmp qword [rsp + 0x58], 7
cmova r8, qword [rsp + 0x40]
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], r14
mov r9d, dword [rsp + 0x50]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rdx, eax
xor r8d, r8d
lea rcx, [rbp + 0x70]
call fcn.14004eef0
lea rdx, [rbp + 0x70]
cmp qword [rbp + 0x88], 0xf
cmova rdx, qword [rbp + 0x70]
lea r8, [rsp + 0x40]
cmp qword [rsp + 0x58], 7
cmova r8, qword [rsp + 0x40]
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov eax, dword [rbp + 0x80]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdx
mov r9d, dword [rsp + 0x50]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movups xmm6, xmmword [rbp + 0x70]
movups xmm7, xmmword [rbp + 0x80]
mov qword [rbp + 0x80], r14
mov qword [rbp + 0x88], reloc.WS2_32.dll_ntohs
mov byte [rbp + 0x70], 0
mov rdx, qword [rsp + 0x58]
cmp rdx, 7
jbe 0x14004a355
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004a350
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004a350
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400d8070
mov rcx, rbx
call fcn.1400d8070
jmp 0x14004a367
movups xmm7, xmmword [rbp + 0x60]
movups xmm6, xmmword [rbp + 0x50]
movups xmmword [r15], xmm6
movups xmmword [r15 + 0x10], xmm7
lea rcx, [rbp + 0xd8]
call fcn.140049320
nop
mov rdx, qword [rbp + 0xd0]
cmp rdx, 7
jbe 0x14004a804
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xb8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004a7ff
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004a7ff
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
movups xmmword [rbp], xmm0
movups xmmword [rbp + 0x10], xmm0
movups xmmword [rbp + 0x20], xmm0
movups xmmword [rbp + 0x30], xmm0
mov qword [rbp + 0x40], rax
mov dword [rbp - 0x50], 0x98
call qword [sym.imp.USER32.dll_GetActiveWindow]
mov qword [rbp - 0x48], rax
lea rax, [rbp + 0xb8]
cmp qword [rbp + 0xd0], 7
cmova rax, qword [rbp + 0xb8]
mov qword [rbp - 0x38], rax
xorps xmm0, xmm0
movups xmmword [rbp + 0x90], xmm0
mov qword [rbp + 0xa0], r14
mov qword [rbp + 0xa8], r14
xor edx, edx
mov r8d, 0x10400
lea rcx, [rbp + 0x90]
call fcn.1400506b0
nop
lea rax, [rbp + 0x90]
cmp qword [rbp + 0xa8], 7
cmova rax, qword [rbp + 0x90]
mov qword [rbp - 0x20], rax
mov eax, dword [rbp + 0xa0]
mov dword [rbp - 0x18], eax
mov rcx, qword [r12]
cmp qword [rcx + 0x48], 0
je 0x14004a542
add rcx, 0x38
cmp qword [rcx + 0x18], 7
jbe 0x14004a494
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14004a4be
test al, 0x10
je 0x14004a4be
mov rax, qword [r12]
add rax, 0x38
cmp qword [rax + 0x18], 7
jbe 0x14004a4b5
mov rax, qword [rax]
mov qword [rbp], rax
jmp 0x14004a542
mov rdx, qword [r12]
lea rcx, [rdx + 0x38]
mov rax, qword [rbp + 0xa0]
cmp qword [rdx + 0x48], rax
ja 0x14004a52e
cmp qword [rcx + 0x18], 7
jbe 0x14004a4dd
mov rcx, qword [rcx]
mov r8d, 0x10401
mov rdx, qword [rbp - 0x20]
nop word [rax + rax]
lea rax, [r8 + 0x7ffefbfd]
test rax, rax
je 0x14004a528
movzx eax, word [rcx]
test ax, ax
je 0x14004a51f
add rcx, 2
mov word [rdx], ax
add rdx, 2
sub r8, 1
jne 0x14004a4f0
sub rdx, 2
mov word [rdx], r14w
jmp 0x14004a542
test r8, r8
jne 0x14004a528
sub rdx, 2
mov word [rdx], r14w
jmp 0x14004a542
cmp qword [rcx + 0x18], 7
jbe 0x14004a538
mov rcx, qword [rcx]
mov qword [rbp - 0x10], rcx
mov eax, dword [rdx + 0x48]
mov dword [rbp - 8], eax
mov rax, qword [r12]
add rax, 0x18
cmp qword [rax + 0x18], 7
jbe 0x14004a554
mov rax, qword [rax]
mov qword [rbp + 8], rax
mov dword [rbp + 0x10], 0x80008
xorps xmm0, xmm0
movups xmmword [rbp + 0x50], xmm0
mov qword [rbp + 0x60], r14
mov qword [rbp + 0x68], r14
mov r8d, ntohs
lea rdx, str.comdlg32.dll
lea rcx, [rbp + 0x50]
call fcn.140040980
lea rcx, [rbp + 0x50]
cmp qword [rbp + 0x68], 0xf
cmova rcx, qword [rbp + 0x50]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rdi, rax
mov qword [rbp + 0xe8], rax
mov rdx, qword [rbp + 0x68]
cmp rdx, 0xf
jbe 0x14004a5e0
inc rdx
mov rcx, qword [rbp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004a5db
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004a5db
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400d8070
mov qword [rbp + 0x60], r14
mov qword [rbp + 0x68], reloc.WS2_32.dll_ntohs
mov byte [rbp + 0x50], 0
mov qword [rbp + 0xb0], r14
mov edx, 4
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x140158998], eax
jle 0x14004a640
lea rcx, [0x140158998]
call fcn.1400d8190
cmp dword [0x140158998], 0xffffffff
jne 0x14004a640
call fcn.1400493f0
mov qword [0x140158990], rax
lea rcx, [0x140158998]
call fcn.1400d8124
mov rcx, qword [0x140158990]
cmp rcx, 0xffffffffffffffff
je 0x14004a65b
lea rdx, [rbp + 0xb0]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
nop
movzx eax, byte [r12 + 0x70]
cmp dword [r12 + 8], 1
jne 0x14004aa4d
test al, 2
jne 0x14004a675
or dword [rbp + 0x10], 2
xorps xmm0, xmm0
movups xmmword [rbp + 0x50], xmm0
mov qword [rbp + 0x60], r14
mov qword [rbp + 0x68], r14
mov r8d, reloc.WS2_32.dll_recv
lea rdx, str.GetSaveFileNameW
lea rcx, [rbp + 0x50]
call fcn.140040980
lea rdx, [rbp + 0x50]
cmp qword [rbp + 0x68], 0xf
cmova rdx, qword [rbp + 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
mov rdx, qword [rbp + 0x68]
cmp rdx, 0xf
jbe 0x14004a6f2
inc rdx
mov rcx, qword [rbp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004a6ed
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004a6ed
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400d8070
mov qword [rbp + 0x60], r14
mov qword [rbp + 0x68], reloc.WS2_32.dll_ntohs
mov byte [rbp + 0x50], 0
lea rcx, [rbp - 0x50]
call rbx
xorps xmm0, xmm0
test eax, eax
jne 0x14004a83b
movups xmmword [r15], xmm0
mov qword [r15 + 0x10], r14
mov qword [r15 + 0x18], r14
xor r8d, r8d
lea rdx, [0x140108dfe]
mov rcx, r15
call fcn.140040980
nop
mov rdx, qword [rbp + 0xb0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
nop
test rdi, rdi
je 0x14004a751
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
mov rdx, qword [rbp + 0xa8]
cmp rdx, 7
jbe 0x14004a797
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x90]
cmp rdx, 0x1000
mov rax, rcx
jb 0x14004a792
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004aef5
call fcn.1400d8070
mov qword [rbp + 0xa0], r14
mov qword [rbp + 0xa8], 7
mov word [rbp + 0x90], r14w
lea rcx, [rbp + 0xd8]
call fcn.140049320
nop
mov rdx, qword [rbp + 0xd0]
cmp rdx, 7
jbe 0x14004a804
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xb8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004a7ff
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004af70
call fcn.1400d8070
mov rax, r15
mov rcx, qword [rbp + 0xf0]
xor rcx, rsp
call fcn.1400d7f80
lea r11, [rsp + 0x220]
mov rbx, qword [r11 + 0x50]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea rdx, [rbp + 0x90]
cmp qword [rbp + 0xa8], 7
cmova rdx, qword [rbp + 0x90]
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x58], r14
mov rsi, 0xffffffffffffffff
nop dword [rax + rax]
inc rsi
cmp word [rdx + rsi*2], 0
jne 0x14004a870
mov r8, rsi
lea rcx, [rsp + 0x40]
call fcn.140040840
nop
lea r8, [rsp + 0x40]
cmp qword [rsp + 0x58], 7
cmova r8, qword [rsp + 0x40]
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], r14
mov r9d, dword [rsp + 0x50]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rdx, eax
xor r8d, r8d
mov rcx, r15
call fcn.14004eef0
mov ecx, dword [r15 + 0x10]
mov rax, r15
cmp qword [r15 + 0x18], 0xf
jbe 0x14004a8de
mov rax, qword [r15]
lea r8, [rsp + 0x40]
cmp qword [rsp + 0x58], 7
cmova r8, qword [rsp + 0x40]
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x50]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 7
jbe 0x14004a95a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004a955
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004a955
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400d8070
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x58], 7
mov word [rsp + 0x40], r14w
mov rdx, qword [rbp + 0xb0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
nop
test rdi, rdi
je 0x14004a98d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
mov rdx, qword [rbp + 0xa8]
cmp rdx, 7
jbe 0x14004a9d6
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x90]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004a9d1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004a9d1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400d8070
mov qword [rbp + 0xa0], r14
mov qword [rbp + 0xa8], 7
mov word [rbp + 0x90], r14w
lea rcx, [rbp + 0xd8]
call fcn.140049320
nop
mov rdx, qword [rbp + 0xd0]
cmp rdx, 7
jbe 0x14004a804
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xb8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004a7ff
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004a7ff
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
test al, 1
mov eax, dword [rbp + 0x10]
je 0x14004aa58
bts eax, 9
bts eax, 0xb
mov dword [rbp + 0x10], eax
xorps xmm0, xmm0
movups xmmword [rbp + 0x50], xmm0
mov qword [rbp + 0x60], r14
mov qword [rbp + 0x68], r14
mov r8d, reloc.WS2_32.dll_recv
lea rdx, str.GetOpenFileNameW
lea rcx, [rbp + 0x50]
call fcn.140040980
lea rdx, [rbp + 0x50]
cmp qword [rbp + 0x68], 0xf
cmova rdx, qword [rbp + 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
mov rdx, qword [rbp + 0x68]
cmp rdx, 0xf
jbe 0x14004aadc
inc rdx
mov rcx, qword [rbp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004aad7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004aad7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400d8070
mov qword [rbp + 0x60], r14
mov qword [rbp + 0x68], reloc.WS2_32.dll_ntohs
mov byte [rbp + 0x50], 0
lea rcx, [rbp - 0x50]
call rbx
xorps xmm0, xmm0
test eax, eax
je 0x14004a713
movups xmmword [rbp + 0x70], xmm0
mov r13, r14
mov qword [rbp + 0x80], r14
mov r14d, reloc.WS2_32.dll_ntohs
mov qword [rbp + 0x88], r14
mov byte [rbp + 0x70], r13b
lea rbx, [rbp + 0x90]
cmp qword [rbp + 0xa8], 7
cmova rbx, qword [rbp + 0x90]
cmp word [rbx], 0
je 0x14004ae39
lea rsi, [r14 - 0x10]
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
xor eax, eax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov r8, rsi
nop dword [rax + rax]
inc r8
cmp word [rbx + r8*2], ax
jne 0x14004ab60
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.140040840
nop
lea r8, [rsp + 0x40]
cmp qword [rsp + 0x58], 7
cmova r8, qword [rsp + 0x40]
xor eax, eax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x50]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rdx, eax
xor r8d, r8d
lea rcx, [rbp + 0x50]
call fcn.14004eef0
lea rcx, [rbp + 0x50]
cmp qword [rbp + 0x68], 0xf
cmova rcx, qword [rbp + 0x50]
lea r8, [rsp + 0x40]
cmp qword [rsp + 0x58], 7
cmova r8, qword [rsp + 0x40]
xor eax, eax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov eax, dword [rbp + 0x60]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, dword [rsp + 0x50]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 7
jbe 0x14004ac4b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004ac46
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004ae1d
call fcn.1400d8070
xor eax, eax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 7
mov word [rsp + 0x40], ax
mov rax, rsi
lea rax, [rax + 1]
cmp word [rbx + rax*2], 0
jne 0x14004ac63
lea rbx, [rbx + rax*2]
test byte [r12 + 0x70], 1
je 0x14004ad33
add rbx, 2
cmp word [rbx], 0
je 0x14004ad33
test r13, r13
jne 0x14004ad33
movabs rax, 0x7fffffffffffffff
mov rcx, qword [rbp + 0x60]
sub rax, rcx
cmp rax, 1
jb 0x14004af77
lea r9, [rbp + 0x50]
cmp qword [rbp + 0x68], 0xf
cmova r9, qword [rbp + 0x50]
mov qword [rsp + 0x30], 1
lea rax, [0x14010f058]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
lea rcx, [rsp + 0x70]
call fcn.140051220
cmp r14, 0xf
jbe 0x14004ad1a
lea rdx, [r14 + 1]
mov rcx, qword [rbp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004ad15
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004ae24
call fcn.1400d8070
movups xmm0, xmmword [rsp + 0x70]
movups xmmword [rbp + 0x70], xmm0
movups xmm1, xmmword [rbp - 0x80]
movups xmmword [rbp + 0x80], xmm1
jmp 0x14004adcd
mov r14, qword [r12]
lea r8, [rbp + 0x50]
lea rdx, [rbp + 0x70]
lea rcx, [rsp + 0x70]
call fcn.14004fd50
nop
mov rdx, qword [r14 + 0x60]
cmp rdx, qword [r14 + 0x68]
je 0x14004ad87
xorps xmm0, xmm0
movups xmmword [rdx], xmm0
xor ecx, ecx
mov qword [rdx + 0x10], rcx
mov qword [rdx + 0x18], rcx
movups xmm0, xmmword [rax]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rdx + 0x10], xmm1
mov qword [rax + 0x10], rcx
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], cl
add qword [r14 + 0x60], 0x20
jmp 0x14004ad94
mov r8, rax
lea rcx, [r14 + 0x58]
call fcn.140051de0
nop
mov rdx, qword [rbp - 0x78]
cmp rdx, 0xf
jbe 0x14004adcd
inc rdx
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004adc7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004ae2b
call fcn.1400d8070
nop
mov rdx, qword [rbp + 0x68]
cmp rdx, 0xf
jbe 0x14004ae04
inc rdx
mov rcx, qword [rbp + 0x50]
cmp rdx, 0x1000
mov rax, rcx
jb 0x14004adff
mov rcx, qword [rcx - 8]
sub rax, rcx
add rdx, 0x27
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004ae32
call fcn.1400d8070
mov r14, qword [rbp + 0x88]
cmp word [rbx], 0
je 0x14004ae39
mov r13, qword [rbp + 0x80]
jmp 0x14004ab41
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]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
xorps xmm0, xmm0
movups xmmword [r15], xmm0
xor ebx, ebx
mov qword [r15 + 0x10], rbx
mov qword [r15 + 0x18], rbx
xor r8d, r8d
lea rdx, [0x140108dfe]
mov rcx, r15
call fcn.140040980
nop
cmp r14, 0xf
jbe 0x14004ae99
lea rdx, [r14 + 1]
mov rcx, qword [rbp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004ae93
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004ae93
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400d8070
nop
mov rdx, qword [rbp + 0xb0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
nop
test rdi, rdi
je 0x14004aeb8
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
mov rdx, qword [rbp + 0xa8]
cmp rdx, 7
jbe 0x14004af01
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x90]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004aefc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004aefc
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400d8070
mov qword [rbp + 0xa0], rbx
mov qword [rbp + 0xa8], 7
mov word [rbp + 0x90], bx
lea rcx, [rbp + 0xd8]
call fcn.140049320
nop
mov rdx, qword [rbp + 0xd0]
cmp rdx, 7
jbe 0x14004a804
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xb8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004a7ff
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004a7ff
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.14002d240
int3