Function at 0x4c4dc0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56be98
mov eax, dword fs:[0]
push eax
sub esp, 0x1f4
mov eax, dword [0x61308c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x200], ecx
lea eax, [ebp - 0x148]
push eax
call fcn.004c46f0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x148]
cmp dword [ebp - 0x134], 8
cmovae eax, dword [ebp - 0x148]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4c5235
lea ecx, [ebp - 0x1ac]
call fcn.0044d7e0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x148]
cmp dword [ebp - 0x134], 8
cmovae ecx, dword [ebp - 0x148]
push ecx
mov eax, esp
mov dword [eax], ecx
lea ecx, [ebp - 0x1ac]
call fcn.0046fe60
mov ebx, dword [sym.imp.ole32.dll_CLSIDFromString]
cmp dword [ebp - 0x150], 0
je 0x4c4ede
push str.BadDevInfo
push dword [ebp - 0x178]
lea ecx, [ebp - 0x1ac]
push dword [ebp - 0x17c]
call fcn.004723f0
mov esi, eax
test esi, esi
je 0x4c4ede
mov ecx, dword [ebp - 0x154]
mov edx, esi
sar edx, 0x10
movzx eax, si
shl eax, 5
mov ecx, dword [ecx + edx*4]
mov eax, dword [ecx + eax + 0x10]
mov dword [ebp - 0x17c], eax
mov al, 1
mov dword [ebp - 0x178], esi
mov dword [ebp - 0x174], 0
mov dword [ebp - 0x164], 0
mov dword [ebp - 0x160], 0
mov dword [ebp - 0x168], 1
jmp 0x4c4ee0
xor al, al
test al, al
je 0x4c5226
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x118], 0
mov byte [ebp - 4], 3
lea eax, [ebp - 0x110]
push 0x100
push 0
push eax
call fcn.0052d340
add esp, 8
lea ecx, [ebp - 0x1ac]
mov eax, esp
mov dword [eax], str.guid
lea eax, [ebp - 0x1c4]
push eax
call fcn.00474880
mov byte [ebp - 4], 4
cmp dword [eax + 0x14], 8
jb 0x4c4f46
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x110]
push 0x80
push eax
call fcn.0053531f
add esp, 0xc
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x1b0]
cmp eax, 8
jb 0x4c4f7d
inc eax
lea ecx, [ebp - 0x1c4]
push eax
push dword [ebp - 0x1c4]
call fcn.00404be0
xor eax, eax
mov dword [ebp - 0x1b0], 7
mov word [ebp - 0x1c4], ax
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x110]
mov dword [ebp - 0x1b4], 0
push eax
call ebx
nop word [eax + eax]
mov eax, dword [ebp - 0x178]
test eax, eax
jne 0x4c4fd4
push ecx
mov eax, esp
lea ecx, [ebp - 0x1ac]
mov dword [eax], 0
call fcn.004708b0
mov eax, dword [ebp - 0x178]
push str.devbadindex
push dword [ebp - 0x174]
lea ecx, [ebp - 0x1ac]
push eax
call fcn.004723f0
mov edi, eax
test edi, edi
je 0x4c5052
mov esi, dword [ebp - 0x154]
mov ecx, edi
sar ecx, 0x10
movzx edx, di
shl edx, 5
mov ecx, dword [esi + ecx*4]
mov edx, dword [ecx + edx + 0x10]
mov eax, edx
sar eax, 0x10
movzx ecx, dx
shl ecx, 5
mov eax, dword [esi + eax*4]
mov eax, dword [eax + ecx + 0x10]
mov dword [ebp - 0x17c], eax
xor eax, eax
test edx, edx
mov dword [ebp - 0x178], edx
mov dword [ebp - 0x174], edi
setne al
mov dword [ebp - 0x164], 0
mov dword [ebp - 0x168], eax
mov al, 1
mov dword [ebp - 0x160], 0
jmp 0x4c5054
xor al, al
test al, al
je 0x4c514a
lea eax, [ebp - 0x1dc]
push eax
lea ecx, [ebp - 0x1ac]
call fcn.0044d540
mov byte [ebp - 4], 5
cmp dword [eax + 0x14], 8
jb 0x4c507a
mov eax, dword [eax]
push eax
call fcn.005351a0
mov ecx, dword [ebp - 0x11c]
mov esi, eax
lea eax, [ebp - 0x1f8]
mov dword [ebp - 0x1f8], esi
add esp, 4
cmp eax, ecx
jae 0x4c50d7
mov edx, dword [ebp - 0x120]
cmp edx, eax
ja 0x4c50d7
mov esi, eax
sub esi, edx
sar esi, 2
cmp ecx, dword [ebp - 0x118]
jne 0x4c50cc
push ecx
lea ecx, [ebp - 0x120]
call fcn.0044f4c0
mov ecx, dword [ebp - 0x11c]
mov edx, dword [ebp - 0x120]
test ecx, ecx
je 0x4c50fd
mov eax, dword [edx + esi*4]
mov dword [ecx], eax
jmp 0x4c50f7
cmp ecx, dword [ebp - 0x118]
jne 0x4c50f1
push ecx
lea ecx, [ebp - 0x120]
call fcn.0044f4c0
mov ecx, dword [ebp - 0x11c]
test ecx, ecx
je 0x4c50fd
mov dword [ecx], esi
mov ecx, dword [ebp - 0x11c]
add ecx, 4
mov dword [ebp - 0x11c], ecx
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x1c8]
cmp eax, 8
jb 0x4c5128
inc eax
lea ecx, [ebp - 0x1dc]
push eax
push dword [ebp - 0x1dc]
call fcn.00404be0
xor eax, eax
mov dword [ebp - 0x1c8], 7
mov dword [ebp - 0x1cc], 0
mov word [ebp - 0x1dc], ax
jmp 0x4c4fb0
push ecx
mov eax, esp
lea ecx, [ebp - 0x1ac]
mov dword [eax], str.devlastindex
call fcn.00470920
lea eax, [ebp - 0x1f4]
push eax
lea ecx, [ebp - 0x1ac]
call fcn.0044d540
mov byte [ebp - 4], 6
cmp dword [eax + 0x14], 8
jb 0x4c517c
mov eax, dword [eax]
push eax
call fcn.005351a0
add esp, 4
mov dword [ebp - 0x114], eax
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x1e0]
cmp eax, 8
jb 0x4c51ad
inc eax
lea ecx, [ebp - 0x1f4]
push eax
push dword [ebp - 0x1f4]
call fcn.00404be0
xor eax, eax
mov dword [ebp - 0x1e0], 7
mov word [ebp - 0x1f4], ax
lea eax, [ebp - 0x130]
push eax
mov eax, dword [ebp - 0x200]
mov dword [ebp - 0x1e4], 0
lea ecx, [eax + 0x18]
call fcn.004c52b0
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x120]
test ecx, ecx
je 0x4c4e63
mov eax, dword [ebp - 0x118]
sub eax, ecx
sar eax, 2
push eax
push ecx
call fcn.0041d6d0
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x118], 0
jmp 0x4c4e63
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1ac]
call fcn.0044d5a0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x134]
cmp eax, 8
jb 0x4c525a
inc eax
lea ecx, [ebp - 0x148]
push eax
push dword [ebp - 0x148]
call fcn.00404be0
xor eax, eax
mov dword [ebp - 0x134], 7
mov dword [ebp - 0x138], 0
mov word [ebp - 0x148], ax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005120a1
mov esp, ebp
pop ebp
ret