Function at 0x140003490
Capabilities:
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x480
mov rax, qword [0x1400db800]
xor rax, rsp
mov qword [rsp + 0x470], rax
mov r12d, edx
mov rsi, rcx
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
call qword [sym.imp.USER32.dll_GetWindowLongPtrW]
mov r9d, 0x104
mov edx, 0x484
mov r8, rax
mov rcx, rsi
mov rdi, rax
call qword [sym.imp.USER32.dll_GetDlgItemTextW]
xor r14d, r14d
test r12d, r12d
je 0x1400036e8
xorps xmm0, xmm0
xor eax, eax
mov edx, 0x490
mov qword [rsp + 0x40], rax
mov rcx, rsi
movups xmmword [rsp + 0x30], xmm0
call qword [sym.imp.USER32.dll_GetDlgItem]
xor r9d, r9d
xor r8d, r8d
mov rcx, rax
mov edx, 0x147
mov rbp, rax
call qword [sym.imp.USER32.dll_SendMessageW]
mov r15, rax
cmp word [rdi], r14w
jne 0x14000354e
lea edx, [r14 + 1]
mov r8d, 0x205
mov rcx, rsi
call fcn.140091bf0
xor eax, eax
jmp 0x140003751
mov rcx, rdi
call fcn.140002fe0
test al, al
je 0x1400035aa
mov rax, qword [str.war3.exe]
mov rbx, r14
test rax, rax
je 0x1400035aa
lea r13, str.war3.exe
mov r9, rdi
mov qword [rsp + 0x20], rax
lea r8, [0x1400c5bf0]
mov edx, 0x104
lea rcx, [rsp + 0x50]
call fcn.140001040
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x1400035c4
mov rax, qword [r13 + rbx*8 + 8]
inc rbx
test rax, rax
jne 0x140003570
mov edx, 1
mov r8d, 0x206
mov rcx, rsi
call fcn.140091bf0
xor eax, eax
jmp 0x140003751
mov edx, 0x487
mov rcx, rsi
call qword [sym.imp.USER32.dll_IsDlgButtonChecked]
cmp eax, 1
jne 0x14000361b
xor r9d, r9d
xor r8d, r8d
mov edx, 0x146
mov rcx, rbp
call qword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x14000361b
cmp r15d, 0xffffffff
je 0x14000361b
movsxd r8, r15d
xor r9d, r9d
mov edx, 0x150
mov rcx, rbp
call qword [sym.imp.USER32.dll_SendMessageW]
or dword [rdi + 0x220], 5
mov dword [rdi + 0x224], eax
jmp 0x14000374c
lea rax, [rsp + 0x260]
mov qword [rsp + 0x38], 0x104
mov qword [rsp + 0x30], rax
mov rbx, r14
mov rax, qword [str.war3.exe]
test rax, rax
je 0x14000365e
lea rdx, [rsp + 0x30]
mov rcx, rax
call fcn.14008ea00
test al, al
jne 0x14000369d
mov rax, qword [r13 + rbx*8 + 8]
inc rbx
test rax, rax
jne 0x140003640
lea r8, str.MPQEditor_LiveScan_Event
xor edx, edx
mov ecx, 0x100000
call qword [sym.imp.KERNEL32.dll_OpenEventW]
mov rbx, rax
test rax, rax
je 0x1400036e8
mov edx, 1
mov r8d, 0x202
mov rcx, rsi
call fcn.140091bf0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x140003751
mov rax, qword [rsp + 0x30]
mov r9, rax
movzx ecx, word [rax]
test cx, cx
je 0x1400036d1
nop dword [rax]
cmp cx, 0x5c
je 0x1400036c2
cmp cx, 0x2f
je 0x1400036c2
add rax, 2
jmp 0x1400036c9
add rax, 2
mov r9, rax
movzx ecx, word [rax]
test cx, cx
jne 0x1400036b0
mov edx, 1
mov r8d, 0x201
mov rcx, rsi
call fcn.140091bf0
xor eax, eax
jmp 0x140003751
mov edx, 0x485
mov rcx, rsi
call qword [sym.imp.USER32.dll_IsDlgButtonChecked]
mov edx, 2
mov ecx, r14d
cmp eax, 1
mov eax, dword [rdi + 0x220]
cmove ecx, edx
and eax, 0xfffffffd
or ecx, eax
mov edx, 0x486
mov dword [rdi + 0x220], ecx
mov rcx, rsi
call qword [sym.imp.USER32.dll_IsDlgButtonChecked]
cmp eax, 1
lea ecx, [r12*4]
sete r14b
mov dword [0x1400e2ddc], r14d
mov eax, dword [rdi + 0x220]
xor ecx, eax
and ecx, 4
xor ecx, eax
mov dword [rdi + 0x220], ecx
mov eax, 1
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.140094850
lea r11, [rsp + 0x480]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret