Function at 0x402fd0
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 0x403037
cmp edi, dword [ebp - 0xb2c]
je 0x40304a
lea eax, [ebp - 0xb34]
mov dword [ebp - 0xb34], 0x128
push eax
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x403014
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042d1c3
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0xb1c]
test eax, eax
je 0x403037
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 0x403037
push 0x208
call fcn.0042d445
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 0x403037
lea eax, [ebx + 2]
push 0x5c
push eax
call fcn.0042efa2
add esp, 8
test eax, eax
je 0x403168
add eax, 2
push 0x5c
push eax
call fcn.0042efa2
add esp, 8
mov dword [ebp - 0xb38], eax
test eax, eax
je 0x403168
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.0042f120
add esp, 0xc
mov edi, 0x41
push 0x204
lea eax, [ebp - 0xa08]
mov esi, 0x3a
push 0
push eax
call fcn.0042f120
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.00431e41
add esp, 8
test esi, esi
je 0x403152
test eax, eax
je 0x40319b
inc edi
cmp di, 0x5a
jb 0x4030ed
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 0x4031fd
push ebx
call fcn.0042d44e
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042d1c3
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 0x4031a4
sub ecx, edx
sar ecx, 1
push 0x45949c
lea eax, [ecx + ecx]
push eax
lea eax, [ebp - 0xa0c]
push eax
call fcn.00431c70
mov eax, dword [ebp - 0xb38]
add eax, 2
push eax
lea eax, [ebp - 0xa0c]
push 0x208
push eax
call fcn.00431c70
lea eax, [ebp - 0xa0c]
push eax
push 0x104
push ebx
call fcn.00431cdf
add esp, 0x24
jmp 0x403168
push esi
call fcn.0042d445
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 0x45949c
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40324b
cmp dword [ebp - 0xb44], esi
je 0x40324b
mov eax, dword [ebp - 0xb48]
cmp dword [eax], 0xfeef04bd
jne 0x40324b
movzx esi, word [eax + 0xa]
push ebx
call fcn.0042d44e
push edi
call fcn.0042d44e
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.0042d1c3
mov esp, ebp
pop ebp
ret