Function at 0x10055ef0
Capabilities:
Check if file exists

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005fde8
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x650
mov eax, dword [0x1007b00c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov dword [ebp - 0x654], edi
mov esi, ecx
mov eax, dword [ebx + 0xc]
and eax, 1
mov dword [ebp - 0x658], 0
push 0x618
mov dword [ebp - 0x65c], eax
lea eax, [ebp - 0x630]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
xorps xmm0, xmm0
mov dword [ebp - 0x648], 0
movq qword [ebp - 0x650], xmm0
add esp, 0xc
mov dword [ebp - method.QMFileCmdHelper::CQMAutorunsEnumerImp.virtual_0], vtable.QMFileCmdHelper::CQMAutorunsEnumerImp.0
mov dword [ebp - 0x64c], 0
mov dword [ebp - 0x648], 0
mov dword [ebp - 4], 0
movups xmmword [ebp - 0x644], xmm0
mov dword [ebp - 0x634], 0
mov dword [ebp - fcn.1004eee0], vtable.QMFileCmdHelper::CQMCmdlineImp.0
mov dword [ebp - method.CQMArray_wchar_t__.virtual_0], vtable.CQMArray_wchar_t__.0
mov dword [ebp - 0x63c], 0
mov dword [ebp - 0x638], 0
mov dword [ebp - 0x634], 0
lea ecx, [ebp - 0x644]
mov byte [ebp - 4], 1
call fcn.1004ed50
test byte [ebx + 0xc], 2
mov byte [ebp - 4], 2
jne 0x10056043
xor edi, edi
cmp word [esi], di
je 0x1005603d
movzx eax, word [esi]
cmp ax, 0x20
je 0x10056019
cmp ax, 9
je 0x10056019
cmp ax, 0x22
jne 0x10056026
movzx eax, word [esi + edi*2 + 2]
inc edi
test ax, ax
jne 0x10056007
jmp 0x1005603d
push 0x1006748c
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
lea ecx, [esi + edi*2]
cmp eax, ecx
je 0x1005623f
mov edi, dword [ebp - 0x654]
test esi, esi
je 0x10056249
cmp word [esi], 0
je 0x10056249
test edi, edi
je 0x10056249
cmp dword [ebx + 8], 0
jbe 0x10056249
push 4
push 0x1006c578
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncmp]
add esp, 0xc
test eax, eax
jne 0x10056084
push 0xffffffffffffffff
lea eax, [esi + 8]
push eax
jmp 0x100560ed
mov edi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
push 0xb
push str.SystemRoot
push esi
call edi
add esp, 0xc
test eax, eax
jne 0x100560d3
mov edi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
lea eax, [ebp - 0x630]
push 0xffffffffffffffff
push str._SystemRoot_
push 0x30c
push eax
call edi
push 0xffffffffffffffff
lea eax, [esi + 0x16]
push eax
lea eax, [ebp - 0x630]
push 0x30c
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat_s]
add esp, 0x20
jmp 0x10056104
push 6
push str.res:__
push esi
call edi
add esp, 0xc
push 0xffffffffffffffff
test eax, eax
jne 0x100560ec
lea eax, [esi + 0xc]
push eax
jmp 0x100560ed
push esi
mov edi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
lea eax, [ebp - 0x630]
push 0x30c
push eax
call edi
add esp, 0x10
lea eax, [ebp - 0x630]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
lea eax, [ebp - 0x630]
je 0x10056131
push 0xffffffffffffffff
push eax
push dword [ebx + 8]
push dword [ebp - 0x654]
call edi
add esp, 0x10
jmp 0x1005623f
mov esi, dword [ebx + 8]
lea ecx, [ebp - 0x650]
push esi
push dword [ebp - 0x654]
push eax
call fcn.10055e20
test eax, eax
jne 0x1005623f
push 0x2f
push eax
lea eax, [ebp - 0x630]
push eax
call dword [sym.imp.SHLWAPI.dll_StrRChrW]
test eax, eax
je 0x100561c5
xor ecx, ecx
mov word [eax], cx
sub eax, 2
cmp word [eax], 0x20
jne 0x10056180
xor ecx, ecx
lea eax, [eax - 2]
mov word [eax + 2], cx
cmp word [eax], 0x20
je 0x10056171
lea eax, [ebp - 0x630]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100561c5
lea ecx, [ebp - 0x630]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100561a0
sub ecx, edx
lea eax, [ebp - 0x630]
sar ecx, 1
push ecx
push eax
push esi
push dword [ebp - 0x654]
call edi
add esp, 0x10
jmp 0x1005623f
lea eax, [ebp - 0x630]
push eax
lea ecx, [ebp - 0x644]
call fcn.1004eee0
test eax, eax
je 0x10056249
cmp dword [ebp - 0x638], 0
jle 0x10056249
cmp dword [ebp - 0x65c], 0
jne 0x10056249
push 0xffffffffffffffff
push 0x1006b8c8
push esi
push dword [ebp - 0x654]
call edi
add esp, 0x10
cmp dword [ebp - 0x638], 0
jle 0x1005621e
mov eax, dword [ebp - 0x63c]
lea ecx, [ebp - 0x634]
test eax, eax
cmovne ecx, eax
mov eax, dword [ecx]
jmp 0x10056220
xor eax, eax
push esi
mov esi, dword [ebp - 0x654]
lea ecx, [ebp - 0x650]
push esi
push eax
call fcn.10055e20
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10056249
mov dword [ebp - 0x658], 1
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x644]
mov dword [ebp - fcn.1004eee0], vtable.QMFileCmdHelper::CQMCmdlineImp.0
call fcn.1004ed50
mov esi, dword [ebp - 0x63c]
test esi, esi
je 0x10056291
mov eax, dword [ebp - 0x638]
test eax, eax
jle 0x10056291
lea edi, [eax*4]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10056291
push edi
push esi
call dword [sym.imp.KERNEL32.dll_IsBadWritePtr]
push esi
call fcn.1005be17
mov eax, dword [ebp - 0x658]
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1005b6db
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret