Function at 0x4963f0
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 0x6a074d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x258
mov eax, dword [0x7ca00c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x264], ecx
xorps xmm0, xmm0
mov dword [ebp - 0x224], 0
movq qword [ebp - 0x22c], xmm0
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x244]
push 7
xor eax, eax
mov dword [ebp - 0x234], 0
push str.pdm.dll
mov dword [ebp - 0x230], 7
mov word [ebp - 0x244], ax
call fcn.00428800
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x228]
cmp eax, dword [ebp - 0x224]
je 0x4964f6
movups xmm0, xmmword [ebp - 0x244]
mov dword [eax + 0x10], 0
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x234]
movq qword [eax + 0x10], xmm0
xor eax, eax
add dword [ebp - 0x228], 0x18
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x230], 7
mov word [ebp - 0x244], ax
jmp 0x496509
lea ecx, [ebp - 0x244]
push ecx
push eax
lea ecx, [ebp - 0x22c]
call fcn.004403b0
lea ecx, [ebp - 0x244]
mov byte [ebp - 4], 0
call fcn.00428770
push 9
xor eax, eax
mov dword [ebp - 0x234], 0
push str.ntdll.dll
lea ecx, [ebp - 0x244]
mov dword [ebp - 0x230], 7
mov word [ebp - 0x244], ax
call fcn.00428800
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x228]
cmp eax, dword [ebp - 0x224]
je 0x49659d
movups xmm0, xmmword [ebp - 0x244]
mov dword [eax + 0x10], 0
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x234]
movq qword [eax + 0x10], xmm0
xor eax, eax
add dword [ebp - 0x228], 0x18
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x230], 7
mov word [ebp - 0x244], ax
jmp 0x4965b0
lea ecx, [ebp - 0x244]
push ecx
push eax
lea ecx, [ebp - 0x22c]
call fcn.004403b0
lea ecx, [ebp - 0x244]
mov byte [ebp - 4], 0
call fcn.00428770
push 0xc
xor eax, eax
mov dword [ebp - 0x234], 0
push str.rundll32.exe
lea ecx, [ebp - 0x244]
mov dword [ebp - 0x230], 7
mov word [ebp - 0x244], ax
call fcn.00428800
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x228]
cmp eax, dword [ebp - 0x224]
je 0x496644
movups xmm0, xmmword [ebp - 0x244]
mov dword [eax + 0x10], 0
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x234]
movq qword [eax + 0x10], xmm0
xor eax, eax
add dword [ebp - 0x228], 0x18
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x230], 7
mov word [ebp - 0x244], ax
jmp 0x496657
lea ecx, [ebp - 0x244]
push ecx
push eax
lea ecx, [ebp - 0x22c]
call fcn.004403b0
lea ecx, [ebp - 0x244]
mov byte [ebp - 4], 0
call fcn.00428770
lea ecx, [ebp - 0x238]
call fcn.005d8640
cmp dword [ebp - 0x238], 6
jne 0x49672e
cmp dword [ebp - 0x234], 1
jne 0x49672e
push 0xd
xor eax, eax
mov dword [ebp - 0x234], 0
push str.dxgidebug.dll
lea ecx, [ebp - 0x244]
mov dword [ebp - 0x230], 7
mov word [ebp - 0x244], ax
call fcn.00428800
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x228]
cmp eax, dword [ebp - 0x224]
je 0x496710
movups xmm0, xmmword [ebp - 0x244]
mov dword [eax + 0x10], 0
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x234]
movq qword [eax + 0x10], xmm0
xor eax, eax
add dword [ebp - 0x228], 0x18
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x230], 7
mov word [ebp - 0x244], ax
jmp 0x496723
lea ecx, [ebp - 0x244]
push ecx
push eax
lea ecx, [ebp - 0x22c]
call fcn.004403b0
lea ecx, [ebp - 0x244]
call fcn.00428770
xor eax, eax
mov dword [ebp - 0x24c], 0
mov dword [ebp - 0x248], 7
mov word [ebp - 0x25c], ax
push 0x104
lea eax, [ebp - 0x220]
mov byte [ebp - 4], 5
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
test eax, eax
je 0x496792
lea ecx, [ebp - 0x220]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x496770
sub ecx, edx
lea eax, [ebp - 0x220]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x25c]
call fcn.00428800
lea ecx, [ebp - 0x25c]
call fcn.005da650
mov ecx, dword [ebp - 0x228]
mov eax, 0x2aaaaaab
sub ecx, dword [ebp - 0x22c]
xor esi, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x496855
xor edi, edi
nop dword [eax]
nop dword [eax + eax]
lea eax, [ebp - 0x25c]
push eax
lea ecx, [ebp - 0x244]
call fcn.00428650
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x22c]
push ecx
lea ecx, [ebp - 0x244]
lea edx, [edi + edx]
call fcn.005da720
add esp, 4
lea eax, [ebp - 0x244]
cmp dword [ebp - 0x230], 8
cmovae eax, dword [ebp - 0x244]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x496896
lea ecx, [ebp - 0x244]
mov byte [ebp - 4], 5
call fcn.00428770
mov ecx, dword [ebp - 0x228]
mov eax, 0x2aaaaaab
sub ecx, dword [ebp - 0x22c]
inc esi
imul ecx
add edi, 0x18
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jb 0x4967d0
mov byte [ebp - 0x25d], 0
lea ecx, [ebp - 0x25c]
call fcn.00428770
lea ecx, [ebp - 0x22c]
call fcn.00440260
mov al, byte [ebp - 0x25d]
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.0063de71
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov ecx, dword [ebp - 0x22c]
lea esi, [esi + esi*2]
mov edi, dword [ebp - 0x264]
lea eax, [ecx + esi*8]
cmp edi, eax
je 0x4968c7
cmp dword [eax + 0x14], 8
mov edx, eax
jb 0x4968b6
mov edx, dword [eax]
push dword [eax + 0x10]
mov ecx, edi
push edx
call fcn.00428800
mov ecx, dword [ebp - 0x22c]
cmp dword [ecx + esi*8 + 0x14], 8
lea eax, [ecx + esi*8]
jb 0x4968d3
mov eax, dword [eax]
push eax
push str.Found__s_dll_exe_in_current_Dir
call fcn.00433790
add esp, 8
lea ecx, [ebp - 0x244]
call fcn.00428770
mov byte [ebp - 0x25d], 1
jmp 0x49685c