Function at 0xbf8bd7
Capabilities:
Check if file exists

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xb05c93
mov eax, dword fs:[0]
push eax
sub esp, 0x26c
mov eax, dword [0xc940a0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, edx
mov dword [ebp - 0x248], ebx
mov edi, ecx
mov dword [ebp - 0x250], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x254], eax
xor ecx, ecx
mov dword [eax], ecx
mov byte [edi + 0x14], cl
push 0x208
push ecx
lea eax, [ebp - 0x220]
push eax
call fcn.00ab4bf6
add esp, 0xc
or dword [ebp - 0x24c], 0xffffffff
and dword [ebp - 0x244], 0
mov eax, dword [ebx]
mov esi, dword [eax + 0xc]
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x24c]
push eax
push 0x104
lea eax, [ebp - 0x220]
push eax
push dword [ebp + 8]
push ebx
mov ecx, esi
call dword [0xc99200]
call esi
test eax, eax
js 0xbf90da
mov eax, dword [ebp - 0x244]
or eax, dword [ebp + 8]
mov dword [ebp - 0x244], eax
push 0x2a
pop ecx
cmp cx, word [ebp - 0x220]
jne 0xbf8e5f
xor ecx, ecx
cmp cx, word [ebp - 0x21e]
jne 0xbf8e5f
mov eax, dword [ebp - 0x24c]
xor edx, edx
mov dword [ebp - 0x23c], edx
mov dword [ebp - 4], edx
lea ecx, [ebp - 0x23c]
mov dword [ebp - 0x260], ecx
mov dword [ebp - 0x25c], edx
xor ebx, ebx
inc ebx
mov byte [ebp - 0x258], bl
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x25c]
push ecx
lea ecx, [ebp - 0x24c]
push ecx
lea ecx, [ebp - 0x220]
push ecx
push 0x104
push eax
call dword [sym.imp.SHELL32.dll_Ordinal_907]
mov esi, eax
mov byte [ebp - 4], 0
cmp byte [ebp - 0x258], 0
je 0xbf8d2a
mov edx, dword [ebp - 0x260]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x25c]
mov dword [edx], ecx
test eax, eax
je 0xbf8d2a
push eax
call dword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
test esi, esi
jns 0xbf8d53
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x23c]
and dword [ebp - 0x23c], 0
test eax, eax
je 0xbf90d8
push eax
call dword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
jmp 0xbf90d8
mov ax, word [ebp - 0x220]
cmp dword [ebp - 0x23c], 0
je 0xbf8e1f
test ax, ax
jne 0xbf8e1f
xor ebx, ebx
mov dword [ebp - 0x248], ebx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x248]
call fcn.00a39d42
lea eax, [ebp - 0x248]
push eax
push 0x9efee4
push dword [ebp - 0x23c]
call dword [sym.imp.api_ms_win_shell_namespace_l1_1_0.dll_SHCreateItemFromIDList]
mov esi, eax
test esi, esi
jns 0xbf8ddb
push esi
push 0xa223c8
mov edx, 0x18b
mov ecx, dword [ebp + 4]
call fcn.00aa4c55
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x248]
call fcn.00a39d42
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x23c]
mov dword [ebp - 0x23c], ebx
jmp 0xbf8d3f
push dword [ebp - 0x254]
push dword [ebp + 8]
mov edx, dword [ebp - 0x248]
mov ecx, edi
call fcn.00bf95ca
mov esi, eax
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x248]
call fcn.00a39d42
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x23c]
mov dword [ebp - 0x23c], ebx
test ecx, ecx
je 0xbf90d8
push ecx
jmp 0xbf8d48
push 0x40
pop esi
cmp ax, si
mov eax, dword [ebp - 0x244]
jne 0xbf8e32
or eax, 0x20
jmp 0xbf8e35
and eax, 0xfffffff7
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x244], eax
mov ecx, dword [ebp - 0x23c]
and dword [ebp - 0x23c], 0
test ecx, ecx
je 0xbf8e65
push ecx
call dword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
mov eax, dword [ebp - 0x244]
jmp 0xbf8e65
xor ebx, ebx
inc ebx
push 0x40
pop esi
lea ecx, [edi + 4]
mov dword [ebp - 0x23c], ecx
push ecx
push eax
push dword [ebp - 0x24c]
lea eax, [ebp - 0x220]
push eax
mov edx, dword [ebp - 0x248]
lea ecx, [ebp - 0x240]
call fcn.00bfb189
mov dword [ebp - 4], 3
cmp dword [ebp - 0x240], 0
jne 0xbf9025
test byte [edi + 0x10], 0x20
je 0xbf9025
cmp word [ebp - 0x220], si
je 0xbf9025
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
jne 0xbf9025
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.api_ms_win_core_shlwapi_legacy_l1_1_0.dll_PathFileExistsW]
test eax, eax
jne 0xbf9025
mov byte [ebp - 4], 4
push ecx
lea edx, [ebp - 0x220]
lea ecx, [ebp - 0x238]
call fcn.00bfb55e
mov byte [ebp - 4], 7
mov byte [ebp - 4], 6
mov byte [ebp - 4], 5
cmp dword [ebp - 0x228], 0
je 0xbf8f10
xor bl, bl
test bl, bl
jne 0xbf900a
mov byte [ebp - 4], 8
mov byte [ebp - 4], 5
lea eax, [ebp - 0x238]
cmp dword [ebp - 0x224], 8
jb 0xbf8f35
mov eax, dword [ebp - 0x238]
push eax
call dword [sym.imp.api_ms_win_core_shlwapi_legacy_l1_1_0.dll_PathFileExistsW]
test eax, eax
je 0xbf900a
mov ecx, dword [ebp - 0x244]
mov esi, dword [ebp - 0x24c]
mov byte [ebp - 4], 9
mov byte [ebp - 4], 5
lea eax, [ebp - 0x238]
cmp dword [ebp - 0x224], 8
jb 0xbf8f6d
mov eax, dword [ebp - 0x238]
push dword [ebp - 0x23c]
push ecx
push esi
push eax
mov edx, dword [ebp - 0x248]
lea ecx, [ebp - 0x268]
call fcn.00bfb189
mov edi, eax
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x240]
cmp eax, edi
je 0xbf8fd9
mov ebx, dword [edi]
mov ecx, dword [ebp - 0x240]
test ecx, ecx
je 0xbf8fd0
mov dword [ebp - 0x264], ecx
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov esi, eax
mov ecx, dword [sym.imp.USER32.dll_DestroyIcon]
mov dword [ebp - 0x26c], ecx
push dword [ebp - 0x264]
call dword [sym.imp.USER32.dll_DestroyIcon]
push esi
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
mov dword [ebp - 0x240], ebx
and dword [edi], 0
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x268]
test eax, eax
je 0xbf9000
mov dword [ebp - 0x270], eax
mov ecx, dword [sym.imp.USER32.dll_DestroyIcon]
mov dword [ebp - 0x274], ecx
push eax
call dword [sym.imp.USER32.dll_DestroyIcon]
mov byte [ebp - 4], 5
mov edi, dword [ebp - 0x250]
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x238]
call fcn.00a34c33
mov byte [ebp - 4], 0xd
mov byte [ebp - 4], 0xe
mov byte [ebp - 4], 4
mov dword [ebp - 4], 3
mov edx, dword [ebp - 0x240]
test edx, edx
jne 0xbf90a9
mov dword [ebp - 4], 0x11
cmp dword [ebp - 0x240], edx
je 0xbf9051
push dword [ebp - 0x240]
call dword [sym.imp.USER32.dll_DestroyIcon]
or dword [ebp - 4], 0xffffffff
mov eax, 0x80070490
jmp 0xbf90da
push dword [ebp - 0x254]
mov ecx, dword [edi]
call fcn.00b82e90
mov esi, eax
mov dword [ebp - 4], 0x12
cmp dword [ebp - 0x240], 0
je 0xbf90d4
push dword [ebp - 0x240]
call dword [sym.imp.USER32.dll_DestroyIcon]
or dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00ab3c50
leave
ret 8