Function at 0x104d5ec
Capabilities:
Check if file exists

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
lea eax, [ebp - 4]
push eax
push 0x1004c60
push 0x17
xor ebx, ebx
push ebx
push 0x1004f34
mov dword [ebp - 4], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
cmp esi, ebx
mov eax, dword [ebp - 4]
jge 0x104d62c
cmp eax, ebx
je 0x104d625
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, esi
jmp 0x104d9d6
cmp eax, ebx
jne 0x104d63a
mov eax, 0x80004003
jmp 0x104d9d6
push dword [ebp + 0x18]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
mov esi, eax
cmp esi, ebx
jge 0x104d64e
mov eax, dword [ebp - 4]
jmp 0x104d61b
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
cmp dword [ecx - 8], ebx
je 0x104d668
mov eax, dword [ebp - 4]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x44]
mov esi, eax
cmp esi, ebx
jl 0x104d649
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
cmp dword [ecx - 8], ebx
je 0x104d682
mov eax, dword [ebp - 4]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x58]
mov esi, eax
cmp esi, ebx
jl 0x104d649
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi]
cmp dword [eax - 8], ebx
je 0x104d71d
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x104d6ee
mov eax, dword [edi]
lea ecx, [ebp + 0x18]
push ecx
push 0x1004c98
push ebx
push eax
mov dword [ebp + 0x18], ebx
call dword [sym.imp.SHELL32.dll_SHCreateItemFromParsingName]
mov esi, eax
cmp esi, ebx
jge 0x104d6c0
mov eax, dword [ebp + 0x18]
jmp 0x104d964
mov eax, dword [ebp - 4]
cmp dword [ebp + 0x18], ebx
je 0x104d994
push dword [ebp + 0x18]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x6c]
mov esi, eax
cmp esi, ebx
mov eax, dword [ebp + 0x18]
jl 0x104d964
cmp eax, ebx
je 0x104d71d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x104d71d
push dword [edi]
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea ecx, [ebp + 0x18]
call fcn.01010421
mov eax, dword [ebp - 4]
push dword [ebp + 0x18]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x3c]
lea ecx, [ebp + 0x18]
mov esi, eax
call fcn.010061d0
cmp esi, ebx
jl 0x104d96e
mov eax, dword [ebp + 0x20]
mov ecx, dword [eax]
cmp dword [ecx - 8], ebx
je 0x104d73b
mov eax, dword [ebp - 4]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x48]
mov esi, eax
cmp esi, ebx
jl 0x104d96e
mov esi, dword [ebp + 0x14]
mov eax, dword [esi]
cmp dword [eax - 8], ebx
je 0x104d818
push 1
push 0x7f02
push 1
lea ecx, [ebp - 0x18]
call fcn.0101dd6a
push dword [esi]
call dword [sym.imp.SHELL32.dll_ILCreateFromPathW]
mov esi, eax
cmp esi, ebx
je 0x104d7b3
lea eax, [ebp + 0x18]
push eax
push esi
push ebx
push ebx
mov dword [ebp + 0x18], ebx
call dword [sym.imp.SHELL32.dll_SHCreateShellItem]
push esi
mov edi, eax
call dword [sym.imp.SHELL32.dll_ILFree]
cmp edi, ebx
jge 0x104d7ae
mov eax, dword [ebp + 0x18]
cmp eax, ebx
je 0x104d792
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x18]
call fcn.0101d5c1
mov eax, dword [ebp - 4]
cmp eax, ebx
je 0x104d7a7
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, edi
jmp 0x104d9d5
cmp dword [ebp + 0x18], ebx
jne 0x104d7c0
lea ecx, [ebp - 0x18]
call fcn.0101d5c1
jmp 0x104d991
mov eax, dword [ebp - 4]
push dword [ebp + 0x18]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
mov esi, eax
cmp esi, ebx
jge 0x104d7d7
mov eax, dword [ebp + 0x18]
jmp 0x104d7ec
mov eax, dword [ebp - 4]
push dword [ebp + 0x18]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x30]
mov esi, eax
cmp esi, ebx
mov eax, dword [ebp + 0x18]
jge 0x104d803
cmp eax, ebx
je 0x104d7f6
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x18]
call fcn.0101d5c1
jmp 0x104d96e
cmp eax, ebx
je 0x104d80d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x18]
call fcn.0101d5c1
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0x1c]
mov ecx, dword [eax]
cmp dword [ecx - 8], ebx
je 0x104d915
push eax
lea ecx, [ebp + 0x18]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
call fcn.010103e4
mov eax, dword [ebp + 0x18]
mov eax, dword [eax - 8]
push ebx
lea ecx, [ebp + 0x18]
mov dword [ebp + 0x10], eax
call fcn.01007539
xor esi, esi
cmp dword [ebp + 0x10], ebx
mov edi, eax
mov dword [ebp + 0x20], ebx
mov dword [ebp + 0xc], ebx
jle 0x104d902
mov eax, dword [ebp + 0x10]
cmp esi, eax
jge 0x104d8c6
cmp word [edi + esi*2], 0x7c
je 0x104d872
inc esi
cmp esi, eax
jl 0x104d864
jmp 0x104d887
xor ecx, ecx
mov word [edi + esi*2], cx
mov ecx, dword [ebp + 0x20]
lea ecx, [edi + ecx*2]
mov dword [ebp - 0xc], ecx
lea ecx, [esi + 1]
mov dword [ebp + 0xc], ecx
cmp esi, eax
jge 0x104d8c6
cmp word [edi + esi*2], 0x7c
je 0x104d899
inc esi
cmp esi, eax
jl 0x104d88b
jmp 0x104d8ae
xor ecx, ecx
mov word [edi + esi*2], cx
mov ecx, dword [ebp + 0xc]
lea ecx, [edi + ecx*2]
mov dword [ebp - 8], ecx
lea ecx, [esi + 1]
mov dword [ebp + 0x20], ecx
cmp esi, eax
jge 0x104d8c6
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x18]
call fcn.0104cc50
cmp word [edi + esi*2 + 2], 0x7c
jne 0x104d85d
cmp dword [ebp - 0x14], ebx
je 0x104d902
push dword [ebp - 0x18]
mov eax, dword [ebp - 4]
push dword [ebp - 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
mov esi, eax
cmp esi, ebx
jl 0x104d8f0
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ebx
push eax
call dword [ecx + 0x14]
mov esi, eax
cmp esi, ebx
jge 0x104d902
lea ecx, [ebp + 0x18]
call fcn.010061d0
lea ecx, [ebp - 0x18]
call fcn.0104b08e
jmp 0x104d96e
lea ecx, [ebp + 0x18]
call fcn.010061d0
lea ecx, [ebp - 0x18]
call fcn.0104b08e
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 4]
push dword [ebp + 0x24]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
mov dword [ebp + 0x10], eax
cmp eax, ebx
jne 0x104d9c5
mov eax, dword [ebp - 4]
lea edx, [ebp + 8]
push edx
mov dword [ebp + 0x18], ebx
mov dword [ebp + 8], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
mov esi, eax
cmp esi, ebx
mov eax, dword [ebp + 8]
jl 0x104d964
cmp eax, ebx
je 0x104d991
mov ecx, dword [eax]
lea edx, [ebp + 0x18]
push edx
push 0x80028000
push eax
call dword [ecx + 0x14]
mov esi, eax
cmp esi, ebx
jge 0x104d97f
mov eax, dword [ebp + 8]
cmp eax, ebx
je 0x104d96e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 4]
cmp eax, ebx
je 0x104d97b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, esi
jmp 0x104d9d5
cmp dword [ebp + 0x18], ebx
jne 0x104d9a5
mov eax, dword [ebp + 8]
cmp eax, ebx
je 0x104d991
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 4]
cmp eax, ebx
je 0x104d99e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, 0x80004003
jmp 0x104d9d5
push dword [ebp + 0x18]
mov ecx, edi
call fcn.0100864e
push dword [ebp + 0x18]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [ebp + 8]
cmp eax, ebx
je 0x104d9c5
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 4]
cmp eax, ebx
je 0x104d9d2
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp + 0x10]
pop edi
pop esi
pop ebx
leave
ret 0x20