Function at 0x4498f0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d8e50
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x513330]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, dword [ebp + 8]
push str.____________________Entrance____________________
lea ecx, [ebp - 0x2c]
lea eax, [ebx + 0x8c]
push ecx
push eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], str.RestoreSelectedItem
call fcn.00471a00
add esp, 0xc
mov dword [ebp - 4], 0
mov byte [ebp - 4], 1
mov edx, dword [0x51856c]
mov eax, dword [edx + 0xc]
mov ecx, 0x51856c
call eax
add eax, 0x10
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebx + 0x788]
cmp dword [ecx - 0xc], 0
je 0x449a98
lea edx, [ebp - 0x18]
push edx
call fcn.00405a00
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x449a5d
lea esi, [ebp - 0x18]
call fcn.0043a140
mov ecx, dword [ebx + 0x88]
push 0
push 0
lea edi, [ebx + 0x88]
push 0x18b
push ecx
mov dword [ebp - 0x1c], edi
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x24], eax
xor esi, esi
cmp esi, dword [ebp - 0x24]
jge 0x449a41
push edi
lea edi, [ebp - 0x20]
mov ebx, esi
call fcn.0044c130
mov ecx, dword [ebp - 0x18]
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x4499e8
push 0x80004005
call fcn.00405ef0
mov eax, dword [ebp - 0x20]
jmp 0x4499f0
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x449a16
test dx, dx
je 0x449a12
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x449a16
add eax, 4
add ecx, 4
test dx, dx
jne 0x4499f0
xor eax, eax
jmp 0x449a1b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
je 0x449a51
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
push 0
push esi
push 0x186
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ebx, dword [ebp + 8]
mov edi, dword [ebp - 0x1c]
cmp esi, dword [ebp - 0x24]
jne 0x449a73
mov ecx, dword [edi]
push 0
push 0
push 0x186
push ecx
jmp 0x449a6d
mov ebx, dword [ebp + 8]
mov edi, dword [ebp - 0x1c]
inc esi
jmp 0x4499c0
mov edx, dword [ebx + 0x88]
push 0
push 0
push 0x186
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x449aae
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x449aae
mov ecx, dword [ebx + 0x88]
push 0
push 0
push 0x186
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
lea edx, [ebp - 0x1c]
push edx
push ebx
call fcn.00449dd0
mov byte [ebp - 4], 4
mov ecx, dword [eax]
mov esi, dword [ebx + 0x788]
lea edi, [ebx + 0x788]
lea eax, [ecx - 0x10]
sub esi, 0x10
cmp eax, esi
je 0x449b18
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x449b0d
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x449b0d
call fcn.00408230
mov dword [ebp - 0x24], eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x449b03
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [ebp - 0x24]
add ecx, 0x10
mov dword [edi], ecx
jmp 0x449b18
mov ebx, dword [ecx - 0xc]
push ecx
mov eax, edi
call fcn.00405e30
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x449b3b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x449b5e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.______________________Exit______________________
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x28]
push eax
push ecx
call fcn.00471a00
add esp, 0xc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4