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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa1c
mov eax, dword [0x5bd344]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push edi
push 0x5f05e0
mov dword [ebp - 0xa1c], edx
xor esi, esi
mov dword [ebp - 0xa14], ecx
mov dword [ebp - 0xa18], 0
call ebx
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jne 0x482cc6
push esi
push esi
push 0x7d6
push dword [0x5e9fbc]
call edi
test eax, eax
jne 0x482c7d
lea esi, [eax + 1]
jmp 0x482cc6
cmp eax, 0x3ff
jge 0x482cc6
lea eax, [ebp - 0xa10]
push eax
push 0x7ff
push 0x886
push dword [0x5e9fbc]
call edi
push 0x420a54
lea eax, [ebp - 0xa10]
push eax
call dword [sym.imp.SHLWAPI.dll_StrTrimA]
lea eax, [ebp - 0xa10]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
mov eax, 1
cmove esi, eax
cmp dword [ebp - 0xa14], 0
jne 0x482cf2
cmp dword [0x5ed5f0], 0
jne 0x482ce5
mov eax, dword [0x5e95cc]
cmp eax, dword [0x5e95b0]
je 0x482ce9
test esi, esi
je 0x482cf2
mov edi, dword [ebp + 8]
test edi, edi
je 0x482d5e
jmp 0x482cf5
mov edi, dword [ebp + 8]
cmp dword [ebp - 0xa1c], 0
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
je 0x482d74
push 0x5f05e0
call ebx
test eax, eax
lea eax, [ebp - 0x418]
je 0x482d1f
push 0x5f05e0
push eax
call esi
jmp 0x482d36
push 0x104
push eax
push 0x2713
push dword [0x5f0394]
call dword [sym.imp.USER32.dll_LoadStringW]
push 1
lea eax, [ebp - 0x418]
push eax
push 0x502
push dword [0x5f0848]
call dword [sym.imp.USER32.dll_SendMessageW]
sub eax, 2
je 0x4830ce
sub eax, 5
jne 0x482d74
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057e93d
mov esp, ebp
pop ebp
ret
test edi, edi
mov edi, dword [ebp + 0xc]
jne 0x482e1e
test edi, edi
jne 0x482e1e
push 0x5f05e0
call ebx
test eax, eax
je 0x482e7a
push 0x5f05e0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x482db0
and eax, 1
mov dword [0x5e9fa8], eax
jmp 0x482db5
mov eax, dword [0x5e9fa8]
test eax, eax
je 0x482e7a
cmp dword [0x5ed5f0], 0
jne 0x482dd7
mov eax, dword [0x5e95cc]
cmp eax, dword [0x5e95b0]
jne 0x482dd7
xor eax, eax
jmp 0x482ddc
mov eax, 1
mov edx, dword [0x5be124]
sub esp, 0xc
push eax
push ecx
mov ecx, dword [0x5f0848]
push 0x5f05e0
sub esp, 8
call fcn.00473260
push 0x5f05e0
push 0xc370
push 3
call fcn.00458d80
add esp, 0x2c
cmp eax, 6
jne 0x4830ce
mov dword [ebp + 8], 1
push 0x208
lea eax, [ebp - 0x418]
push 0
push eax
call fcn.00583650
add esp, 0xc
test edi, edi
je 0x482eaf
push 0x5e8f88
call ebx
test eax, eax
je 0x482eaf
push 0x5e8f88
lea eax, [ebp - 0x418]
push eax
call esi
push 0x5e8f88
lea eax, [ebp - 0x210]
push eax
call esi
push 0x5f05e0
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
jmp 0x482ebd
push 0x5f05e0
call ebx
test eax, eax
je 0x482e1e
push 0
lea eax, [ebp - 0xa18]
mov edx, 0x5f05e0
push eax
push 0
push 0
sub esp, 0xc
xor ecx, ecx
call fcn.00482300
add esp, 0x1c
mov dword [ebp - 0xa14], eax
jmp 0x482f91
push 0x5f05e0
lea eax, [ebp - 0x210]
push eax
call esi
lea eax, [ebp - 0x418]
push eax
push ecx
lea edx, [ebp - 0x210]
call fcn.004832e0
add esp, 8
test eax, eax
je 0x4830ce
push edi
lea eax, [ebp - 0xa18]
xor ecx, ecx
push eax
push 0
push 0
sub esp, 0xc
lea edx, [ebp - 0x210]
call fcn.00482300
add esp, 0x1c
mov dword [ebp - 0xa14], eax
test eax, eax
je 0x483042
lea eax, [ebp - 0x210]
push eax
test edi, edi
jne 0x482f79
push 0x5f05e0
call esi
push 0x5f05e0
push 0xfb05
push dword [0x5f0848]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
push edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push 0xfb06
push dword [0x5f0848]
call dword [sym.imp.USER32.dll_SetDlgItemInt]
cmp dword [0x5e9d98], edi
jne 0x482f5d
push 0x41bcc8
push 0x5e9a58
call esi
mov ecx, dword [0x5e9fbc]
mov edx, 0x5f05e0
call fcn.0048bf90
call fcn.00481d90
call fcn.00482240
jmp 0x482f8b
push 0x5e8f88
call esi
push 0x5e8f88
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov eax, dword [ebp - 0xa14]
test eax, eax
je 0x483042
test edi, edi
jne 0x4830b7
cmp dword [0x5e95b4], 2
mov eax, dword [0x5e95cc]
mov dword [0x5ed5f0], edi
mov dword [0x5e95b0], eax
jne 0x482fe3
push 0x5f05e0
push 3
call dword [sym.imp.SHELL32.dll_SHAddToRecentDocs]
cmp dword [0x5ed5f0], edi
jne 0x482fdc
mov eax, dword [0x5e95cc]
cmp eax, dword [0x5e95b0]
je 0x482fe3
mov eax, 1
jmp 0x482fe5
xor eax, eax
mov edx, dword [0x5be124]
sub esp, 0xc
push eax
push ecx
mov ecx, dword [0x5f0848]
push 0x5f05e0
sub esp, 8
call fcn.00473260
add esp, 0x20
cmp dword [ebp + 8], 0
je 0x483021
mov eax, dword [0x5f03a4]
xor edx, edx
cmp dword [0x5f0a68], edx
cmovne eax, edx
mov dword [0x5f03a4], eax
mov ecx, 0x5f05e0
call fcn.004842b0
mov eax, dword [ebp - 0xa14]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057e93d
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0xa18], 0
jne 0x4830b7
push 0x5f05e0
call ebx
test eax, eax
je 0x483064
push 0x5f05e0
lea eax, [ebp - 0x210]
push eax
call esi
cmp dword [0x5ed5f0], 0
jne 0x48307e
mov eax, dword [0x5e95cc]
cmp eax, dword [0x5e95b0]
jne 0x48307e
xor eax, eax
jmp 0x483083
mov eax, 1
mov edx, dword [0x5be124]
sub esp, 0xc
push eax
push ecx
mov ecx, dword [0x5f0848]
push 0x5f05e0
sub esp, 8
call fcn.00473260
lea eax, [ebp - 0x210]
push eax
push 0xc351
push 1
call fcn.00458d80
add esp, 0x2c
mov eax, dword [ebp - 0xa14]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057e93d
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0057e93d
mov esp, ebp
pop ebp
ret