Function at 0x402ed0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [0x4ae480]
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 0x40312f
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 0x402f81
push 0x205
push 1
push ebx
call fcn.00479dc0
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047c26b
mov esp, ebp
pop ebp
ret
mov ecx, edi
call fcn.00402b40
test al, al
je 0x402fcf
mov eax, dword [0x4a3f44]
xor esi, esi
test eax, eax
je 0x402fcf
push eax
push edi
push 0x4a4458
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00401670
add esp, 0x14
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x402ff2
mov eax, dword [esi*4 + 0x4a3f48]
inc esi
test eax, eax
jne 0x402f97
push 0x206
push 1
push ebx
call fcn.00479dc0
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047c26b
mov esp, ebp
pop ebp
ret
push 0x487
push ebx
call dword [sym.imp.USER32.dll_IsDlgButtonChecked]
cmp eax, 1
jne 0x403049
mov esi, dword [ebp - 0x418]
push 0
push 0
push 0x146
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x403049
mov eax, dword [ebp - 0x41c]
cmp eax, 0xffffffff
je 0x403049
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 0x403184
lea eax, [ebp - 0x414]
mov dword [ebp - 0x428], 0x104
mov dword [ebp - 0x42c], eax
xor esi, esi
mov eax, dword [0x4a3f44]
test eax, eax
je 0x40308d
nop word [eax + eax]
lea ecx, [ebp - 0x42c]
push ecx
push eax
call fcn.004770e0
test al, al
jne 0x4030d3
mov eax, dword [esi*4 + 0x4a3f48]
inc esi
test eax, eax
jne 0x403070
push str.MPQEditor_LiveScan_Event
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov esi, eax
test esi, esi
je 0x403129
push 0x202
push 1
push ebx
call fcn.00479dc0
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.0047c26b
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x42c]
mov esi, ecx
movzx eax, word [ecx]
test ax, ax
je 0x403105
mov edx, eax
cmp dx, 0x5c
je 0x4030f6
cmp word [ecx], 0x2f
je 0x4030f6
add ecx, 2
jmp 0x4030fb
add ecx, 2
mov esi, ecx
movzx eax, word [ecx]
mov edx, eax
test ax, ax
jne 0x4030e5
push esi
push 0x201
push 1
push ebx
call fcn.00479dc0
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047c26b
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 [0x4b3dfc], 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.0047c26b
mov esp, ebp
pop ebp
ret