Function at 0x4028c0
Capabilities:
Enumerate processes
Get disk information
Get file version info
Get process image filename

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb4c
mov eax, dword [0x47110c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0
push 2
mov edi, eax
mov dword [ebp - 0xb34], 0x128
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
lea eax, [ebp - 0xb34]
push eax
push esi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x402927
cmp edi, dword [ebp - 0xb2c]
je 0x40293a
lea eax, [ebp - 0xb34]
mov dword [ebp - 0xb34], 0x128
push eax
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x402904
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042ca43
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0xb1c]
test eax, eax
je 0x402927
push eax
push 0
push 0x100410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov dword [ebp - 0xb4c], esi
test esi, esi
je 0x402927
push 0x208
call fcn.0042ccc5
add esp, 4
mov ebx, eax
push 0x104
push ebx
push esi
call sub.KERNEL32.dll_K32GetProcessImageFileNameW
mov dword [ebp - 0xb40], eax
test eax, eax
je 0x402927
lea eax, [ebx + 2]
push 0x5c
push eax
call fcn.0042e822
add esp, 8
test eax, eax
je 0x402a58
add eax, 2
push 0x5c
push eax
call fcn.0042e822
add esp, 8
mov dword [ebp - 0xb38], eax
test eax, eax
je 0x402a58
movzx ecx, word [eax]
mov dword [ebp - 0xb3c], ecx
xor ecx, ecx
push 0x7fa
mov word [eax], cx
lea eax, [ebp - 0xa06]
push ecx
push eax
call fcn.0042e9a0
add esp, 0xc
mov edi, 0x41
push 0x204
lea eax, [ebp - 0xa08]
mov esi, 0x3a
push 0
push eax
call fcn.0042e9a0
add esp, 0xc
mov word [ebp - 0xa0a], si
xor eax, eax
mov word [ebp - 0xa0c], di
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20c]
push 0x104
push eax
lea eax, [ebp - 0xa0c]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
mov esi, eax
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.004316c2
add esp, 8
test esi, esi
je 0x402a42
test eax, eax
je 0x402a8b
inc edi
cmp di, 0x5a
jb 0x4029dd
mov eax, dword [ebp - 0xb38]
mov ecx, dword [ebp - 0xb3c]
mov word [eax], cx
lea eax, [ebp - 0xb40]
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
jne 0x402aed
push ebx
call fcn.0042ccce
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042ca43
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0xa0c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402a94
sub ecx, edx
sar ecx, 1
push 0x459464
lea eax, [ecx + ecx]
push eax
lea eax, [ebp - 0xa0c]
push eax
call fcn.004314f1
mov eax, dword [ebp - 0xb38]
add eax, 2
push eax
lea eax, [ebp - 0xa0c]
push 0x208
push eax
call fcn.004314f1
lea eax, [ebp - 0xa0c]
push eax
push 0x104
push ebx
call fcn.00431560
add esp, 0x24
jmp 0x402a58
push esi
call fcn.0042ccc5
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
lea eax, [ebp - 0xb44]
xor esi, esi
push eax
lea eax, [ebp - 0xb48]
push eax
push 0x459464
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x402b3b
cmp dword [ebp - 0xb44], esi
je 0x402b3b
mov eax, dword [ebp - 0xb48]
cmp dword [eax], 0xfeef04bd
jne 0x402b3b
movzx esi, word [eax + 0xa]
push ebx
call fcn.0042ccce
push edi
call fcn.0042ccce
add esp, 8
push dword [ebp - 0xb4c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042ca43
mov esp, ebp
pop ebp
ret