Function at 0x4025b0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x40982b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x254
mov eax, dword [0x40d0f8]
push esi
push edi
mov dword [esp + 0x258], eax
call fcn.004011e0
xor eax, eax
mov byte [esp + 0x154], 0
mov ecx, 0x40
lea edi, [esp + 0x155]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x104
lea eax, [esp + 0x158]
push eax
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x154]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
push str.KKLVASensor_Now.dll
lea edx, [esp + 0x158]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea eax, [esp + 0x154]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402640
sub eax, edx
inc eax
mov dword [esp + 0xc], eax
lea eax, [esp + 0x154]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x4028c7
push esi
xor eax, eax
mov dword [esp + 0x30], esi
mov ecx, 0x49
lea edi, [esp + 0x34]
push 2
rep stosd dword es:[edi], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x4028c7
push ebp
lea ecx, [esp + 0x30]
push ecx
xor ebp, ebp
push edi
mov dword [esp + 0x38], 0x128
mov dword [esp + 0x14], ebp
call sub.KERNEL32.dll_Process32First
cmp eax, esi
je 0x4026d6
jmp 0x4026b0
mov edx, dword [esp + 0x38]
cmp edx, dword [esp + 0x270]
je 0x4026ce
lea eax, [esp + 0x30]
push eax
push edi
call sub.KERNEL32.dll_Process32Next
cmp eax, esi
jne 0x4026b0
jmp 0x4026d6
mov ebp, dword [esp + 0x48]
mov dword [esp + 0xc], ebp
lea ecx, [esp + 0x30]
push ecx
push edi
call sub.KERNEL32.dll_Process32First
cmp eax, esi
je 0x402714
cmp dword [esp + 0x38], ebp
jne 0x402705
lea edx, [esp + 0x54]
push str.explorer.exe
push edx
call fcn.004037e1
add esp, 8
test eax, eax
je 0x4028c6
lea eax, [esp + 0x30]
push eax
push edi
call sub.KERNEL32.dll_Process32Next
cmp eax, esi
jne 0x4026e5
push ebx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
lea ecx, [esp + 0x10]
push ecx
xor eax, eax
push 1
push eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x278], esi
call fcn.00401fa0
lea edx, [esp + 0x34]
push edx
push edi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x4027b0
lea ebx, [ebx]
mov ebx, dword [esp + 0x3c]
cmp ebx, dword [esp + 0x274]
je 0x40279f
cmp dword [esp + 0x4c], ebp
jne 0x40279f
mov esi, dword [esp + 0x1c]
test esi, esi
mov edx, dword [esp + 0x20]
je 0x40278e
mov ecx, dword [esp + 0x24]
mov eax, edx
sub eax, esi
sub ecx, esi
sar eax, 2
sar ecx, 2
cmp eax, ecx
jae 0x40278e
mov dword [edx], ebx
add edx, 4
mov dword [esp + 0x20], edx
jmp 0x40279f
lea eax, [esp + 0x3c]
push eax
push 1
push edx
lea ecx, [esp + 0x24]
call fcn.00401fa0
lea ecx, [esp + 0x34]
push ecx
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x402750
xor esi, esi
push 0x40a31c
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
cmp edi, esi
mov dword [esp + 0x28], edi
je 0x4028b4
mov eax, dword [esp + 0x1c]
cmp eax, dword [esp + 0x20]
mov dword [esp + 0x10], eax
je 0x4028b4
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ecx]
mov edx, dword [eax]
push edx
push 1
push 0x2a
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, 0xffffffff
je 0x40289a
test esi, esi
je 0x40289a
mov eax, dword [esp + 0x14]
push 4
push 0x1000
push eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov ebp, eax
test ebp, ebp
je 0x40289a
mov ecx, dword [esp + 0x14]
push 0
push ecx
lea edx, [esp + 0x164]
push edx
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x40289a
lea eax, [esp + 0x2c]
push eax
push 0
push ebp
push edi
push 0
push 0
push esi
mov dword [esp + 0x48], 0
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov edi, eax
push 0x7530
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [esp + 0x30]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov edx, dword [esp + 0x14]
push 0x4000
push edx
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push edi
call ebx
push esi
call ebx
mov edi, dword [esp + 0x28]
jmp 0x40289d
push esi
call ebx
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
add eax, 4
cmp eax, ecx
mov dword [esp + 0x10], eax
jne 0x4027f0
mov eax, dword [esp + 0x1c]
test eax, eax
pop ebx
je 0x4028c6
push eax
call fcn.00403aad
add esp, 4
pop ebp
mov ecx, dword [esp + 0x25c]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x254]
pop esi
call fcn.0040322e
add esp, 0x260
ret