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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa10
mov eax, dword [0x5a0b04]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor esi, esi
push 0x5a9d00
mov dword [ebp - 0xa10], esi
mov edi, esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x413c53
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push esi
push esi
push 0x7d6
push dword [0x5adacc]
call ebx
test eax, eax
jne 0x413c0c
lea edi, [eax + 1]
jmp 0x413c53
cmp eax, 0x3ff
jge 0x413c53
lea eax, [ebp - 0xa0c]
push eax
push 0x7ff
push 0x886
push dword [0x5adacc]
call ebx
push str.__t_n_r
lea eax, [ebp - 0xa0c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrTrimA]
lea eax, [ebp - 0xa0c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
push 1
pop eax
cmove edi, eax
cmp dword [ebp + 8], esi
jne 0x413c7a
cmp dword [0x5a9c94], esi
jne 0x413c6d
mov eax, dword [0x5a9c90]
cmp eax, dword [0x5a9c8c]
je 0x413c71
test edi, edi
je 0x413c7a
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x413ce3
jmp 0x413c7d
mov ebx, dword [ebp + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
cmp dword [ebp + 0xc], esi
je 0x413ceb
push 0x5a9d00
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
lea eax, [ebp - 0x414]
je 0x413ca7
push 0x5a9d00
push eax
call edi
jmp 0x413cbe
push 0x104
push eax
push 0x2713
push dword [0x5adad4]
call dword [sym.imp.USER32.dll_LoadStringW]
lea eax, [ebp - 0x414]
push eax
push 0xc363
push 4
call fcn.004097b0
add esp, 0xc
dec eax
sub eax, 1
je 0x414098
sub eax, 5
jne 0x413ceb
xor eax, eax
inc eax
jmp 0x41409a
test ebx, ebx
mov ebx, dword [ebp + 0x14]
jne 0x413dad
test ebx, ebx
jne 0x413dad
push 0x5a9d00
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x413e14
push 0x5a9d00
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor edx, edx
mov ecx, eax
inc edx
cmp ecx, 0xffffffff
je 0x413d30
and ecx, edx
mov dword [0x5a54d4], ecx
jmp 0x413d36
mov ecx, dword [0x5a54d4]
test ecx, ecx
je 0x413e14
cmp dword [0x5a9c94], esi
jne 0x413d55
mov eax, dword [0x5a9c90]
cmp eax, dword [0x5a9c8c]
mov eax, esi
je 0x413d57
mov eax, edx
push 0x5a54e0
push ecx
push 0x2715
push eax
push dword [0x5aa174]
push 0x5a9d00
push 0x2713
push dword [0x5a6e20]
push dword [0x57af18]
push dword [0x5adab4]
call fcn.00412b1f
push 0x5a9d00
push 0xc370
push 3
call fcn.004097b0
add esp, 0x34
cmp eax, 6
jne 0x414098
xor eax, eax
inc eax
mov dword [ebp + 0x10], eax
push 0x208
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.004bd230
add esp, 0xc
test ebx, ebx
je 0x413e60
push 0x5a52b0
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x413e60
push 0x5a52b0
lea eax, [ebp - 0x414]
push eax
call edi
push 0x5a52b0
lea eax, [ebp - 0x20c]
push eax
call edi
push 0x5a9d00
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
jmp 0x413e6e
push 0x5a9d00
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x413dad
push esi
lea eax, [ebp - 0xa10]
push eax
push esi
push esi
push 0x5a9c88
push 0x5a9c90
push esi
push 0x5a9d00
push esi
call fcn.00413a79
mov ebx, eax
add esp, 0x24
mov eax, dword [ebp + 0x10]
mov dword [ebp + 0x10], eax
test ebx, ebx
je 0x414001
mov edi, 0x5a9d00
jmp 0x413f38
push 0x5a9d00
lea eax, [ebp - 0x20c]
push eax
call edi
lea eax, [ebp - 0x414]
push eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
push dword [0x5adab4]
call fcn.00416c76
add esp, 0x10
test eax, eax
je 0x414098
push ebx
lea eax, [ebp - 0xa10]
push eax
push esi
push esi
push 0x5a9c88
push 0x5a9c90
push esi
lea eax, [ebp - 0x20c]
push eax
push esi
call fcn.00413a79
mov ebx, eax
add esp, 0x24
test ebx, ebx
je 0x414001
lea eax, [ebp - 0x20c]
push eax
cmp dword [ebp + 0x14], esi
jne 0x413fed
push 0x5a9d00
call edi
push 0x5a9d00
push 0xfb05
push dword [0x5adab4]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
push esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push 0xfb06
push dword [0x5adab4]
call dword [sym.imp.USER32.dll_SetDlgItemInt]
cmp dword [0x5a54dc], esi
jne 0x413f20
push 0x5209bc
push 0x5a54e0
call edi
mov edi, 0x5a9d00
push edi
push dword [0x5adacc]
call fcn.0041a1c5
pop ecx
pop ecx
call fcn.004175b5
push dword [0x5a7088]
mov eax, dword [0x5a9c90]
push dword [0x5a7084]
mov dword [0x5a9c94], esi
push edi
push dword [0x5a9f64]
mov dword [0x5a9c8c], eax
call fcn.00412253
add esp, 0x10
cmp dword [0x5a70d0], 2
jne 0x413f75
push edi
push 3
call dword [sym.imp.SHELL32.dll_SHAddToRecentDocs]
cmp dword [0x5a9c94], esi
jne 0x413f8a
mov eax, dword [0x5a9c90]
cmp eax, dword [0x5a9c8c]
je 0x413f8f
xor eax, eax
lea esi, [eax + 1]
push 0x5a54e0
push dword [0x5a54d4]
push 0x2715
push esi
push dword [0x5aa174]
push edi
push 0x2713
push dword [0x5a6e20]
push dword [0x57af18]
push dword [0x5adab4]
call fcn.00412b1f
add esp, 0x28
cmp dword [ebp + 0x10], 0
je 0x413fe1
mov eax, dword [0x5aa09c]
xor ecx, ecx
cmp dword [0x5aa098], ecx
cmovne eax, ecx
mov dword [0x5aa09c], eax
push edi
call fcn.004143f7
pop ecx
jmp 0x414094
mov esi, 0x5a52b0
push esi
call edi
push esi
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
jmp 0x414094
cmp dword [ebp - 0xa10], esi
jne 0x414094
push 0x5a9d00
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x41402a
push 0x5a9d00
lea eax, [ebp - 0x20c]
push eax
call edi
cmp dword [0x5a9c94], esi
jne 0x41403f
mov eax, dword [0x5a9c90]
cmp eax, dword [0x5a9c8c]
je 0x414044
xor eax, eax
lea esi, [eax + 1]
push 0x5a54e0
push dword [0x5a54d4]
push 0x2715
push esi
push dword [0x5aa174]
push 0x5a9d00
push 0x2713
push dword [0x5a6e20]
push dword [0x57af18]
push dword [0x5adab4]
call fcn.00412b1f
lea eax, [ebp - 0x20c]
push eax
xor eax, eax
inc eax
push 0xc351
push eax
call fcn.004097b0
add esp, 0x34
mov eax, ebx
jmp 0x41409a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049badb
leave
ret