Function at 0x40228f
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x40927d
call fcn.00403df0
sub esp, 0x258
mov eax, dword [0x40d0f8]
push ebx
push edi
mov dword [ebp - 0x10], eax
call fcn.0040117f
push 0x40
pop ecx
xor eax, eax
mov byte [ebp - 0x23c], 0
lea edi, [ebp - 0x23b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x104
lea eax, [ebp - 0x23c]
push eax
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
push str.KKLVASensor_Now.dll
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea eax, [ebp - 0x23c]
push eax
call fcn.00402cf0
inc eax
mov dword [ebp - 0x244], eax
pop ecx
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40256d
push esi
push 0x49
pop ecx
push ebx
xor eax, eax
mov dword [ebp - 0x138], ebx
lea edi, [ebp - 0x134]
push 2
rep stosd dword es:[edi], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x40256c
lea eax, [ebp - 0x138]
push eax
xor edi, edi
push esi
mov dword [ebp - 0x138], 0x128
mov dword [ebp - 0x240], edi
call sub.KERNEL32.dll_Process32First
jmp 0x402382
mov eax, dword [ebp + 8]
cmp dword [ebp - 0x130], eax
je 0x402388
lea eax, [ebp - 0x138]
push eax
push esi
call sub.KERNEL32.dll_Process32Next
cmp eax, ebx
jne 0x40236a
jmp 0x402394
mov edi, dword [ebp - 0x120]
mov dword [ebp - 0x240], edi
lea eax, [ebp - 0x138]
push eax
push esi
call sub.KERNEL32.dll_Process32First
jmp 0x4023d3
cmp dword [ebp - 0x130], edi
jne 0x4023c6
lea eax, [ebp - 0x114]
push str.explorer.exe
push eax
call fcn.00403625
test eax, eax
pop ecx
pop ecx
je 0x40256c
lea eax, [ebp - 0x138]
push eax
push esi
call sub.KERNEL32.dll_Process32Next
cmp eax, ebx
jne 0x4023a3
mov dword [ebp - 0x254], ebx
mov dword [ebp - 0x250], ebx
mov dword [ebp - 0x24c], ebx
lea eax, [ebp - 0x240]
push eax
lea ecx, [ebp - 0x258]
mov dword [ebp - 4], ebx
call fcn.00401fdd
lea eax, [ebp - 0x138]
push eax
push esi
call sub.KERNEL32.dll_Process32First
jmp 0x40243f
mov eax, dword [ebp + 8]
cmp dword [ebp - 0x130], eax
je 0x402432
cmp dword [ebp - 0x120], edi
jne 0x402432
lea eax, [ebp - 0x130]
push eax
lea ecx, [ebp - 0x258]
call fcn.00401fdd
lea eax, [ebp - 0x138]
push eax
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x40240d
push 0x40a31c
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
mov dword [ebp - 0x25c], eax
je 0x402561
mov eax, dword [ebp - 0x254]
cmp eax, dword [ebp - 0x250]
mov dword [ebp - 0x240], eax
je 0x402561
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x240]
push dword [eax]
push 1
push 0x2a
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
cmp edi, 0xffffffff
je 0x402545
cmp edi, ebx
je 0x402545
push 4
push 0x1000
push dword [ebp - 0x244]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
cmp eax, ebx
mov dword [ebp - 0x248], eax
je 0x402545
push ebx
push dword [ebp - 0x244]
lea ecx, [ebp - 0x23c]
push ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x402545
lea eax, [ebp - 0x260]
push eax
push ebx
push dword [ebp - 0x248]
mov dword [ebp - 0x260], ebx
push dword [ebp - 0x25c]
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov ebx, eax
push 0x7530
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x264]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push 0x4000
push dword [ebp - 0x244]
push dword [ebp - 0x248]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push ebx
call esi
push edi
call esi
xor ebx, ebx
jmp 0x402548
push edi
call esi
add dword [ebp - 0x240], 4
mov eax, dword [ebp - 0x240]
cmp eax, dword [ebp - 0x250]
jne 0x402486
lea ecx, [ebp - 0x258]
call fcn.0040194d
pop esi
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.00402ce0
leave
ret