Function at 0x490740
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 0x6b892d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x258
mov eax, dword [0x7e500c]
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.004271d0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x228]
cmp eax, dword [ebp - 0x224]
je 0x490846
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 0x490859
lea ecx, [ebp - 0x244]
push ecx
push eax
lea ecx, [ebp - 0x22c]
call fcn.0043f2a0
lea ecx, [ebp - 0x244]
mov byte [ebp - 4], 0
call fcn.00427170
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.004271d0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x228]
cmp eax, dword [ebp - 0x224]
je 0x4908ed
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 0x490900
lea ecx, [ebp - 0x244]
push ecx
push eax
lea ecx, [ebp - 0x22c]
call fcn.0043f2a0
lea ecx, [ebp - 0x244]
mov byte [ebp - 4], 0
call fcn.00427170
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.004271d0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x228]
cmp eax, dword [ebp - 0x224]
je 0x490994
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 0x4909a7
lea ecx, [ebp - 0x244]
push ecx
push eax
lea ecx, [ebp - 0x22c]
call fcn.0043f2a0
lea ecx, [ebp - 0x244]
mov byte [ebp - 4], 0
call fcn.00427170
lea ecx, [ebp - 0x238]
call fcn.005ca0a0
cmp dword [ebp - 0x238], 6
jne 0x490a7e
cmp dword [ebp - 0x234], 1
jne 0x490a7e
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.004271d0
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x228]
cmp eax, dword [ebp - 0x224]
je 0x490a60
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 0x490a73
lea ecx, [ebp - 0x244]
push ecx
push eax
lea ecx, [ebp - 0x22c]
call fcn.0043f2a0
lea ecx, [ebp - 0x244]
call fcn.00427170
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 0x490ae2
lea ecx, [ebp - 0x220]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x490ac0
sub ecx, edx
lea eax, [ebp - 0x220]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x25c]
call fcn.004271d0
lea ecx, [ebp - 0x25c]
call fcn.005cc0b0
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 0x490ba5
xor edi, edi
nop dword [eax]
nop dword [eax + eax]
lea eax, [ebp - 0x25c]
push eax
lea ecx, [ebp - 0x244]
call fcn.00427050
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x22c]
push ecx
lea ecx, [ebp - 0x244]
lea edx, [edi + edx]
call fcn.005cc180
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 0x490be6
lea ecx, [ebp - 0x244]
mov byte [ebp - 4], 5
call fcn.00427170
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 0x490b20
mov byte [ebp - 0x25d], 0
lea ecx, [ebp - 0x25c]
call fcn.00427170
lea ecx, [ebp - 0x22c]
call fcn.0043f150
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.00650ddc
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 0x490c17
cmp dword [eax + 0x14], 8
mov edx, eax
jb 0x490c06
mov edx, dword [eax]
push dword [eax + 0x10]
mov ecx, edi
push edx
call fcn.004271d0
mov ecx, dword [ebp - 0x22c]
cmp dword [ecx + esi*8 + 0x14], 8
lea eax, [ecx + esi*8]
jb 0x490c23
mov eax, dword [eax]
push eax
push str.Found__s_dll_exe_in_current_Dir
call fcn.00432240
add esp, 8
lea ecx, [ebp - 0x244]
call fcn.00427170
mov byte [ebp - 0x25d], 1
jmp 0x490bac