Function at 0x45b22b
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4f2d1c
mov eax, dword fs:[0]
push eax
sub esp, 0x3c0
mov eax, dword [0x54b0c4]
xor eax, esp
mov dword [esp + 0x3b8], eax
push ebx
push esi
push edi
mov eax, dword [0x54b0c4]
xor eax, esp
push eax
lea eax, [esp + 0x3d0]
mov dword fs:[0], eax
cmp dword [0x550b8c], 0
jne 0x45b6bf
and dword [0x550b98], 0
xor esi, esi
inc esi
xor ebx, ebx
lea ecx, [esp + 0x28]
mov dword [0x550b8c], esi
call fcn.0048afb1
and dword [esp + 0x3d8], ebx
lea ecx, [esp + 0x24]
push str.dbshortcut.dat
push ecx
mov ecx, eax
call fcn.004062ff
pop ecx
pop ecx
mov byte [esp + 0x3d8], 2
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
call fcn.004012f9
push dword [esp + 0x24]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x45b5d5
mov eax, dword [0x550310]
mov ecx, 0x550310
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [esp + 0x18], ebx
mov byte [esp + 0x3d8], 3
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x45b5c3
lea eax, [esp + 0x18]
push eax
call fcn.0045b709
test eax, eax
mov ebx, dword [esp + 0x18]
je 0x45b5c3
cmp dword [ebx - 0xc], 3
jle 0x45b5c3
lea eax, [esp + 0x34c]
push eax
call fcn.004b8514
push esi
push 0
push ebx
lea ecx, [esp + 0x358]
mov byte [esp + 0x3e4], 4
call fcn.004b99fd
cmp byte [esp + 0x390], 0
jne 0x45b5af
lea eax, [esp + 0x34c]
call fcn.004b7f9d
test eax, eax
je 0x45b5af
push str.dbshortcut
call fcn.004b7fc1
mov edi, eax
test edi, edi
mov dword [esp + 0x14], edi
je 0x45b5af
or dword [esp + 0x1c], 0xffffffff
or dword [esp + 0x20], 0xffffffff
push str.enable
lea esi, [esp + 0x20]
call fcn.004b815a
push str.effectiveid
lea esi, [esp + 0x24]
mov eax, edi
call fcn.004b815a
push 0x50f330
mov eax, edi
call fcn.004b8131
mov edi, dword [esp + 0x1c]
cmp edi, 0xffffffff
mov dword [esp + 0x2c], eax
je 0x45b5af
mov esi, dword [esp + 0x20]
cmp esi, 0xffffffff
je 0x45b5af
test eax, eax
je 0x45b5af
push eax
call sub.MSVCR80.dll_strlen
test eax, eax
pop ecx
je 0x45b5af
mov dword [0x550b90], edi
call fcn.0045b830
push dword [esp + 0x2c]
mov dword [0x550b94], eax
push 0x550ba0
call fcn.004053c6
mov eax, dword [esp + 0x14]
push str.item
mov dword [0x550b9c], esi
call fcn.004b7fc1
test eax, eax
mov dword [esp + 0x14], eax
je 0x45b5af
mov edi, 0xfde9
mov eax, dword [esp + 0x14]
or dword [esp + 0x1c], 0xffffffff
push 0x503f6c
lea esi, [esp + 0x20]
call fcn.004b815a
mov eax, dword [esp + 0x14]
push 0x50f338
call fcn.004b8131
mov esi, eax
mov eax, dword [esp + 0x14]
push 0x50f33c
call fcn.004b8131
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x14]
push str.name
call fcn.004b8131
cmp dword [esp + 0x1c], 0xffffffff
je 0x45b595
test esi, esi
je 0x45b595
cmp dword [esp + 0x20], 0
je 0x45b595
test eax, eax
je 0x45b595
push edi
push eax
lea eax, [esp + 0x48]
lea ecx, [esp + 0x4c]
push eax
mov dword [esp + 0x4c], ecx
call fcn.00405fd8
push edi
mov byte [esp + 0x3dc], 5
push dword [esp + 0x24]
lea eax, [esp + 0x254]
mov dword [esp + 0x250], eax
lea eax, [esp + 0x250]
push eax
call fcn.00405fd8
lea eax, [esp + 0x148]
push edi
mov byte [esp + 0x3dc], 6
mov dword [esp + 0x148], eax
push esi
lea eax, [esp + 0x14c]
push eax
call fcn.00405fd8
mov byte [esp + 0x3d8], 7
push dword [esp + 0x40]
lea eax, [esp + 0x34]
push dword [esp + 0x24c]
push dword [esp + 0x14c]
push dword [esp + 0x28]
push eax
call fcn.0045b0b1
lea eax, [esp + 0x148]
cmp dword [esp + 0x144], eax
je 0x45b53a
push dword [esp + 0x144]
call dword [sym.imp.MSVCR80.dll_free]
pop ecx
lea eax, [esp + 0x24c]
cmp dword [esp + 0x248], eax
je 0x45b558
push dword [esp + 0x248]
call dword [sym.imp.MSVCR80.dll_free]
pop ecx
lea eax, [esp + 0x44]
mov byte [esp + 0x3d8], 0xb
cmp dword [esp + 0x40], eax
je 0x45b575
push dword [esp + 0x40]
call dword [sym.imp.MSVCR80.dll_free]
pop ecx
lea eax, [esp + 0x30]
push eax
mov eax, 0x550ba4
call fcn.0045b947
lea esi, [esp + 0x30]
mov byte [esp + 0x3d8], 4
call fcn.0045b6e8
mov eax, dword [esp + 0x14]
push str.item
call fcn.004b801a
test eax, eax
mov dword [esp + 0x14], eax
jne 0x45b426
lea ecx, [esp + 0x34c]
mov byte [esp + 0x3d8], 3
call fcn.00425ccb
add ebx, 0xfffffff0
mov eax, ebx
mov byte [esp + 0x3d8], 2
call fcn.004012f9
mov ebx, 0x550ba4
mov eax, ebx
call fcn.0045b8d6
test eax, eax
jbe 0x45b6b3
cmp dword [0x550b90], 0
je 0x45b6b3
mov eax, dword [0x550310]
mov ecx, 0x550310
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x3d8], 0xc
push dword [0x550b94]
lea eax, [esp + 0x1c]
push str.s_de
call fcn.00425497
pop ecx
pop ecx
push dword [esp + 0x18]
mov esi, 0x550ba0
call fcn.00454d8a
cmp eax, 0xffffffff
je 0x45b6a7
mov eax, ebx
call fcn.0045b8d6
mov edi, eax
xor esi, esi
test edi, edi
jle 0x45b6a7
push esi
mov eax, ebx
call fcn.0045b8e9
mov eax, dword [eax]
cmp eax, dword [0x550b9c]
je 0x45b663
inc esi
cmp esi, edi
jl 0x45b64a
jmp 0x45b6a7
push esi
mov eax, ebx
call fcn.0045b8e9
add eax, 4
mov eax, dword [eax]
xor edi, edi
cmp dword [eax - 0xc], edi
je 0x45b6a0
push esi
mov eax, ebx
call fcn.0045b8e9
add eax, 0xc
mov eax, dword [eax]
cmp dword [eax - 0xc], edi
je 0x45b6a0
push esi
mov eax, ebx
call fcn.0045b8e9
add eax, 8
mov eax, dword [eax]
cmp dword [eax - 0xc], edi
je 0x45b6a0
xor eax, eax
inc eax
jmp 0x45b6a2
xor eax, eax
mov dword [0x550b98], eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
call fcn.004012f9
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
call fcn.004012f9
mov eax, dword [0x550b8c]
mov ecx, dword [esp + 0x3d0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3b8]
xor ecx, esp
call fcn.004d0736
mov esp, ebp
pop ebp
ret