Function at 0x402eb0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [0x4af480]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, ecx
mov esi, edx
push 8
push ebx
mov dword [ebp - 0x420], esi
call dword [sym.imp.USER32.dll_GetWindowLongW]
push 0x104
mov edi, eax
push edi
push 0x484
push ebx
call dword [sym.imp.USER32.dll_GetDlgItemTextW]
test esi, esi
mov esi, dword [sym.imp.USER32.dll_IsDlgButtonChecked]
je 0x40310f
push 0x490
xorps xmm0, xmm0
mov dword [ebp - 0x424], 0
push ebx
movq qword [ebp - 0x42c], xmm0
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push 0
push 0x147
push eax
mov dword [ebp - 0x418], eax
call dword [sym.imp.USER32.dll_SendMessageW]
cmp word [edi], 0
mov dword [ebp - 0x41c], eax
jne 0x402f61
push 0x205
push 1
push ebx
call fcn.0047aec0
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047d2db
mov esp, ebp
pop ebp
ret
mov ecx, edi
call fcn.00402b50
test al, al
je 0x402faf
mov eax, dword [0x4a4ed0]
xor esi, esi
test eax, eax
je 0x402faf
push eax
push edi
push 0x4a54c0
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00401040
add esp, 0x14
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x402fd2
mov eax, dword [esi*4 + 0x4a4ed4]
inc esi
test eax, eax
jne 0x402f77
push 0x206
push 1
push ebx
call fcn.0047aec0
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047d2db
mov esp, ebp
pop ebp
ret
push 0x487
push ebx
call dword [sym.imp.USER32.dll_IsDlgButtonChecked]
cmp eax, 1
jne 0x403029
mov esi, dword [ebp - 0x418]
push 0
push 0
push 0x146
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x403029
mov eax, dword [ebp - 0x41c]
cmp eax, 0xffffffff
je 0x403029
push 0
push eax
push 0x150
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
or dword [edi + 0x214], 5
mov dword [edi + 0x218], eax
jmp 0x403164
lea eax, [ebp - 0x414]
mov dword [ebp - 0x428], 0x104
mov dword [ebp - 0x42c], eax
xor esi, esi
mov eax, dword [0x4a4ed0]
test eax, eax
je 0x40306d
nop word [eax + eax]
lea ecx, [ebp - 0x42c]
push ecx
push eax
call fcn.00478530
test al, al
jne 0x4030b3
mov eax, dword [esi*4 + 0x4a4ed4]
inc esi
test eax, eax
jne 0x403050
push str.MPQEditor_LiveScan_Event
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov esi, eax
test esi, esi
je 0x403109
push 0x202
push 1
push ebx
call fcn.0047aec0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047d2db
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x42c]
mov esi, ecx
movzx eax, word [ecx]
test ax, ax
je 0x4030e5
mov edx, eax
cmp dx, 0x5c
je 0x4030d6
cmp dx, 0x2f
je 0x4030d6
add ecx, 2
jmp 0x4030db
add ecx, 2
mov esi, ecx
movzx eax, word [ecx]
mov edx, eax
test ax, ax
jne 0x4030c5
push esi
push 0x201
push 1
push ebx
call fcn.0047aec0
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047d2db
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.USER32.dll_IsDlgButtonChecked]
push 0x485
push ebx
call esi
xor ecx, ecx
mov edx, 2
cmp eax, 1
mov eax, dword [edi + 0x214]
push 0x486
cmove ecx, edx
and eax, 0xfffffffd
or ecx, eax
push ebx
mov dword [edi + 0x214], ecx
call esi
mov ecx, dword [ebp - 0x420]
dec eax
neg eax
sbb eax, eax
shl ecx, 2
inc eax
mov dword [0x4b4dec], eax
mov eax, dword [edi + 0x214]
xor ecx, eax
and ecx, 4
xor ecx, eax
mov dword [edi + 0x214], ecx
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047d2db
mov esp, ebp
pop ebp
ret