Function at 0x4fbb16
Capabilities:
Check if file exists

Disassembly:
push 0x90
mov eax, 0x5d8a34
call fcn.0056df1d
mov esi, ecx
test esi, esi
je 0x4fbd89
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4fbd89
xor ebx, ebx
mov dword [ebp - 0x38], 0xaac56b
xor eax, eax
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x34], 0x11d0cd44
mov dword [ebp - 0x30], 0xc000c28c
mov dword [ebp - 0x2c], 0xee95c24f
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], 7
mov word [ebp - 0x50], ax
push ecx
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], ebx
call fcn.004437aa
pop ecx
push 8
pop edi
test al, al
je 0x4fbd49
xor eax, eax
mov dword [ebp - 0x28], ebx
push 0x614af8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.004089a4
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x40]
test edx, edx
jne 0x4fbbcd
cmp dword [ebp - 0x14], edi
lea eax, [ebp - 0x28]
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x50]
push eax
call fcn.00407684
jmp 0x4fbc4e
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x4fbc4e
cmp dword [ebp - 0x3c], edi
lea eax, [ebp - 0x50]
push 0x5c
cmovae eax, dword [ebp - 0x50]
mov dword [ebp - 0x54], 0x2f
movzx eax, word [eax + edx*2 - 2]
pop edx
mov dword [ebp - 0x58], edx
cmp word [ebp - 0x54], ax
je 0x4fbc0b
cmp dx, ax
je 0x4fbc0b
push 0x6058cc
lea ecx, [ebp - 0x50]
call fcn.004092d1
mov ecx, dword [ebp - 0x18]
cmp dword [ebp - 0x14], edi
lea eax, [ebp - 0x28]
mov edx, ebx
cmovae eax, dword [ebp - 0x28]
movzx eax, word [eax]
cmp word [ebp - 0x54], ax
je 0x4fbc26
cmp word [ebp - 0x58], ax
jne 0x4fbc29
xor edx, edx
inc edx
cmp dword [ebp - 0x14], edi
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
lea ecx, [eax + ecx*2]
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
lea eax, [eax + edx*2]
sub ecx, eax
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x50]
call fcn.004092f8
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x14]
cmp eax, edi
jb 0x4fbc8d
mov ecx, dword [ebp - 0x28]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x58], ecx
cmp eax, 0x1000
jb 0x4fbc84
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.0040379f
mov eax, dword [ebp - 0x54]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x58]
push eax
push ecx
call fcn.0056d0c8
pop ecx
pop ecx
cmp dword [ebp - 0x3c], edi
lea eax, [ebp - 0x50]
cmovae eax, dword [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
mov edi, eax
test edi, edi
jne 0x4fbcb1
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, eax
jmp 0x4fbd3f
push str.WinVerifyTrust
push edi
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
test eax, eax
jne 0x4fbcc9
call dword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x4fbd36
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x68], 0x10
mov dword [ebp - 0x84], ecx
lea ecx, [ebp - 0x9c]
push ecx
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x64], esi
push ecx
push ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x94], ebx
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x9c], 0x34
mov dword [ebp - 0x98], ebx
mov dword [ebp - 0x90], 2
mov dword [ebp - 0x8c], ebx
mov dword [ebp - 0x88], 1
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x74], 0x100
mov dword [ebp - 0x70], ebx
call eax
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
xor ebx, ebx
test esi, esi
push 8
sete bl
pop edi
mov eax, dword [ebp - 0x3c]
cmp eax, edi
jb 0x4fbd85
mov ecx, dword [ebp - 0x50]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], ecx
cmp eax, 0x1000
jb 0x4fbd7c
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x54]
push eax
call fcn.0040379f
mov eax, dword [ebp - 0x58]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x54]
push eax
push ecx
call fcn.0056d0c8
pop ecx
pop ecx
mov eax, ebx
jmp 0x4fbd8b
xor eax, eax
call fcn.0056decc
ret