Function at 0x4a8080
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 0x6e1f8d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x258
mov eax, dword [0x82f084]
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.0042fe00
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x228]
cmp eax, dword [ebp - 0x224]
je 0x4a8186
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 0x4a8199
lea ecx, [ebp - 0x244]
push ecx
push eax
lea ecx, [ebp - 0x22c]
call fcn.00448540
lea ecx, [ebp - 0x244]
mov byte [ebp - 4], 0
call fcn.0042fd70
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.0042fe00
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x228]
cmp eax, dword [ebp - 0x224]
je 0x4a822d
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 0x4a8240
lea ecx, [ebp - 0x244]
push ecx
push eax
lea ecx, [ebp - 0x22c]
call fcn.00448540
lea ecx, [ebp - 0x244]
mov byte [ebp - 4], 0
call fcn.0042fd70
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.0042fe00
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x228]
cmp eax, dword [ebp - 0x224]
je 0x4a82d4
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 0x4a82e7
lea ecx, [ebp - 0x244]
push ecx
push eax
lea ecx, [ebp - 0x22c]
call fcn.00448540
lea ecx, [ebp - 0x244]
mov byte [ebp - 4], 0
call fcn.0042fd70
lea ecx, [ebp - 0x238]
call fcn.0060d8f0
cmp dword [ebp - 0x238], 6
jne 0x4a83be
cmp dword [ebp - 0x234], 1
jne 0x4a83be
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.0042fe00
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x228]
cmp eax, dword [ebp - 0x224]
je 0x4a83a0
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 0x4a83b3
lea ecx, [ebp - 0x244]
push ecx
push eax
lea ecx, [ebp - 0x22c]
call fcn.00448540
lea ecx, [ebp - 0x244]
call fcn.0042fd70
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 0x4a8422
lea ecx, [ebp - 0x220]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a8400
sub ecx, edx
lea eax, [ebp - 0x220]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x25c]
call fcn.0042fe00
lea ecx, [ebp - 0x25c]
call fcn.0060f900
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 0x4a84e5
xor edi, edi
nop dword [eax]
nop dword [eax + eax]
lea eax, [ebp - 0x25c]
push eax
lea ecx, [ebp - 0x244]
call fcn.0042fc50
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x22c]
push ecx
lea ecx, [ebp - 0x244]
lea edx, [edi + edx]
call fcn.0060f9d0
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 0x4a8526
lea ecx, [ebp - 0x244]
mov byte [ebp - 4], 5
call fcn.0042fd70
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 0x4a8460
mov byte [ebp - 0x25d], 0
lea ecx, [ebp - 0x25c]
call fcn.0042fd70
lea ecx, [ebp - 0x22c]
call fcn.004483f0
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.0067d681
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 0x4a8557
cmp dword [eax + 0x14], 8
mov edx, eax
jb 0x4a8546
mov edx, dword [eax]
push dword [eax + 0x10]
mov ecx, edi
push edx
call fcn.0042fe00
mov ecx, dword [ebp - 0x22c]
cmp dword [ecx + esi*8 + 0x14], 8
lea eax, [ecx + esi*8]
jb 0x4a8563
mov eax, dword [eax]
push eax
push str.Found__s_dll_exe_in_current_Dir
call fcn.0043af50
add esp, 8
lea ecx, [ebp - 0x244]
call fcn.0042fd70
mov byte [ebp - 0x25d], 1
jmp 0x4a84ec