Function at 0x402895
Capabilities:
Check if file exists
Enumerate process modules
Get file attributes

Disassembly:
push 0x458
mov eax, 0x432338
call fcn.0042d976
xor ebx, ebx
mov dword [ebp - 0x444], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x440], ebx
mov esi, 0x4408c8
mov byte [ebp - 4], 1
call fcn.00402cc4
push dword [ebp + 8]
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x450], eax
cmp eax, ebx
je 0x402ad4
push 0x420
lea eax, [ebp - 0x434]
push ebx
push eax
mov dword [ebp - 0x43c], 0x428
mov dword [ebp - 0x438], ebx
call fcn.0041aab0
add esp, 0xc
lea eax, [ebp - 0x43c]
push eax
push dword [ebp - 0x450]
call sub.KERNEL32.dll_Module32FirstW
jmp 0x402ac0
lea eax, [ebp - 0x41c]
push 0x43605c
push eax
call fcn.00418178
pop ecx
pop ecx
test eax, eax
je 0x402a01
lea eax, [ebp - 0x41c]
push 0x436078
push eax
call fcn.00418178
pop ecx
pop ecx
test eax, eax
je 0x402a01
lea eax, [ebp - 0x41c]
push 0x436088
push eax
call fcn.00418178
pop ecx
pop ecx
test eax, eax
je 0x402a01
lea eax, [ebp - 0x41c]
push 0x4360b4
push eax
call fcn.00418178
pop ecx
pop ecx
test eax, eax
jne 0x402aae
lea eax, [ebp - 0x21c]
push 0x5c
push eax
call fcn.00417b94
pop ecx
pop ecx
xor ecx, ecx
push 0x4360cc
lea edi, [ebp - 0x458]
mov word [eax], cx
call fcn.004015ab
lea eax, [ebp - 0x21c]
push eax
lea edi, [ebp - 0x460]
mov byte [ebp - 4], 4
call fcn.004015ab
lea ecx, [ebp - 0x458]
push ecx
lea ecx, [ebp - 0x464]
push ecx
push eax
mov byte [ebp - 4], 5
call fcn.004016e0
mov esi, eax
lea eax, [ebp - 0x440]
call fcn.00401600
lea edi, [ebp - 0x464]
call fcn.0040174e
lea edi, [ebp - 0x460]
call fcn.0040174e
lea edi, [ebp - 0x458]
jmp 0x402a7d
lea eax, [ebp - 0x21c]
push 0x5c
push eax
call fcn.00417b94
pop ecx
pop ecx
xor ecx, ecx
push 0x4360a0
lea edi, [ebp - 0x454]
mov word [eax], cx
call fcn.004015ab
lea eax, [ebp - 0x21c]
push eax
lea edi, [ebp - 0x448]
mov byte [ebp - 4], 2
call fcn.004015ab
lea ecx, [ebp - 0x454]
push ecx
lea ecx, [ebp - 0x45c]
push ecx
push eax
mov byte [ebp - 4], 3
call fcn.004016e0
mov esi, eax
lea eax, [ebp - 0x440]
call fcn.00401600
lea edi, [ebp - 0x45c]
call fcn.0040174e
lea edi, [ebp - 0x448]
call fcn.0040174e
lea edi, [ebp - 0x454]
mov byte [ebp - 4], 1
call fcn.0040174e
mov eax, dword [ebp - 0x440]
cmp eax, ebx
je 0x402a94
mov eax, dword [eax]
jmp 0x402a96
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x402ac8
push ebx
lea ecx, [ebp - 0x440]
call fcn.00401622
lea eax, [ebp - 0x43c]
push eax
push dword [ebp - 0x450]
call sub.KERNEL32.dll_Module32NextW
test eax, eax
jne 0x402917
push dword [ebp - 0x450]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x440]
call fcn.00401737
test eax, eax
je 0x402c10
mov esi, 0x440420
call fcn.0040275a
test al, al
je 0x402c10
mov eax, dword [0x440638]
mov dword [ebp - 0x44c], ebx
mov dword [ebp - 0x448], ebx
mov esi, dword [eax]
lea eax, [ebp - 0x44c]
push eax
push ebx
lea eax, [ebp - 0x440]
call fcn.0040171a
push eax
push dword [0x440638]
call dword [esi + 0x128]
test eax, eax
jne 0x402bfe
push 0x10
call fcn.0041a35c
pop ecx
cmp eax, ebx
je 0x402b57
mov dword [eax], vtable.COutput.0
mov dword [eax + 4], 1
mov dword [eax + 8], ebx
mov byte [eax + 0xc], bl
mov edi, eax
jmp 0x402b59
xor edi, edi
mov eax, dword [0x44063c]
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0x88]
test eax, eax
jne 0x402be4
mov eax, dword [0x44063c]
mov ecx, dword [eax]
push 1
push dword [ebp + 8]
push ebx
push ebx
push eax
call dword [ecx + 0x30]
test eax, eax
jne 0x402bde
mov eax, dword [0x440638]
mov ecx, dword [eax]
push 0x3e8
push ebx
push eax
call dword [ecx + 0x174]
test eax, eax
jne 0x402bd3
push 0x4360ea
mov byte [edi + 0xc], 1
mov eax, dword [0x440638]
mov ecx, dword [eax]
push 0x4360ec
push dword [ebp - 0x448]
push dword [ebp - 0x44c]
push eax
call dword [ecx + 0x134]
lea esi, [edi + 8]
lea eax, [ebp - 0x444]
call fcn.00401600
mov byte [edi + 0xc], bl
mov eax, dword [0x44063c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x64]
mov eax, dword [edi]
push edi
call dword [eax + 8]
push dword [ebp - 0x448]
mov eax, dword [0x440638]
push dword [ebp - 0x44c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x12c]
lea eax, [ebp - 0x444]
call fcn.0040171a
mov ecx, eax
call fcn.00401a66
lea eax, [ebp - 0x444]
call fcn.00401737
test eax, eax
lea edi, [ebp - 0x440]
setne bl
call fcn.0040174e
lea edi, [ebp - 0x444]
call fcn.0040174e
mov al, bl
call fcn.0042d9f9
ret