Function at 0x42e1c0
Capabilities:
Enumerate process modules
Get disk information
Get process image filename

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x508ae0
mov eax, dword fs:[0]
push eax
sub esp, 0x634
mov eax, dword [0x542040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, edx
mov dword [ebp - 0x62c], eax
mov ebx, ecx
mov dword [ebp - 0x630], ebx
mov dword [ebp - 0x634], ebx
mov dword [ebp - 0x634], ebx
test eax, eax
jne 0x42e215
mov dword [ebx], edx
jmp 0x42e5d1
mov dword [ebp - 0x624], 0
mov ecx, 0x115
mov dword [ebp - 4], 0
call fcn.00425b20
mov esi, eax
mov ecx, 0x8b
xor eax, eax
mov dword [ebp - 0x624], esi
mov edi, esi
rep stosd dword es:[edi], eax
lea eax, [esi + 0x10]
mov dword [esi + 4], 1
push 0x104
push eax
push dword [ebp - 0x62c]
mov dword [esi + 0xc], 0x105
mov dword [esi + 8], eax
mov dword [esi], 0x104
call dword [sym.imp.KERNEL32.dll_K32GetProcessImageFileNameW]
mov eax, dword [esi + 8]
xor ecx, ecx
test eax, eax
je 0x42e28a
cmp word [eax], cx
je 0x42e28a
nop dword [eax]
lea eax, [eax + 2]
inc ecx
cmp word [eax], 0
jne 0x42e280
mov dword [esi], ecx
xor edi, edi
mov dword [ebp - 0x18], 0x3a0041
mov dword [ebp - 0x14], 0
nop dword [eax]
push 0x104
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x42e2f7
mov edx, dword [esi]
test edx, edx
je 0x42e2f7
xor ecx, ecx
lea eax, [ebp - 0x220]
cmp word [ebp - 0x220], cx
je 0x42e2db
lea eax, [eax + 2]
inc ecx
cmp word [eax], 0
jne 0x42e2d1
push 0
push 0
push ecx
mov ecx, dword [esi + 8]
push edx
lea edx, [ebp - 0x220]
call fcn.00424540
add esp, 0x10
cmp eax, 0xffffffff
jne 0x42e303
inc word [ebp - 0x18]
inc edi
cmp edi, 0x1a
jl 0x42e2a0
jmp 0x42e346
xor ecx, ecx
lea eax, [ebp - 0x220]
cmp word [ebp - 0x220], cx
je 0x42e31e
lea eax, [eax + 2]
inc ecx
cmp word [eax], 0
jne 0x42e314
mov edx, dword [esi + 8]
lea eax, [ebp - 0x18]
push 0
sub esp, 0xc
push ecx
push eax
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x624]
call fcn.0042e9d0
mov esi, dword [ebp - 0x624]
add esp, 0x1c
test esi, esi
je 0x42e353
cmp dword [esi], 0
jne 0x42e5a1
push 0x3fc
lea eax, [ebp - 0x620]
push 0
push eax
call fcn.004ded20
add esp, 0xc
mov dword [ebp - 0x628], 0
lea eax, [ebp - 0x628]
push 3
push eax
push 0xff
lea eax, [ebp - 0x620]
push eax
push dword [ebp - 0x62c]
call dword [sym.imp.KERNEL32.dll_K32EnumProcessModulesEx]
test eax, eax
je 0x42e5a1
test esi, esi
jne 0x42e3c2
push esi
push 0x104
lea ecx, [ebp - 0x624]
call fcn.00424620
mov esi, dword [ebp - 0x624]
mov dword [esi], 0x104
jmp 0x42e494
mov eax, dword [esi + 0xc]
mov ebx, dword [esi]
cmp eax, 0x104
jae 0x42e3e7
push 0
add eax, 0x1104
lea ecx, [ebp - 0x624]
push eax
call fcn.00424620
mov esi, dword [ebp - 0x624]
mov dword [esi], 0x104
xor ecx, ecx
mov eax, dword [esi + 8]
mov word [eax + 0x208], cx
cmp ebx, 0x104
jb 0x42e48e
mov ecx, 0x104
lea edi, [ebx - 0x104]
jbe 0x42e48e
cmp edi, 8
jb 0x42e480
mov eax, dword [esi + 8]
lea edx, [ebx - 1]
mov dword [ebp - 0x634], eax
lea edx, [eax + edx*2]
add eax, 0x208
mov dword [ebp - 0x638], edx
lea edx, [esi + 8]
cmp eax, edx
ja 0x42e440
cmp dword [ebp - 0x638], edx
jae 0x42e480
and edi, 7
mov eax, ebx
sub eax, edi
add ecx, 8
mov edx, ecx
cmp ecx, eax
jb 0x42e447
mov edi, dword [ebp - 0x634]
lea ecx, [eax - 0xfd]
shr ecx, 3
add edi, 0x208
shl ecx, 4
xor eax, eax
shr ecx, 1
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov ecx, edx
cmp edx, ebx
jae 0x42e48e
nop dword [eax + eax]
mov eax, dword [esi + 8]
xor edx, edx
mov word [eax + ecx*2], dx
inc ecx
cmp ecx, ebx
jb 0x42e480
mov ebx, dword [ebp - 0x630]
push dword [esi + 0xc]
push 0
push dword [esi + 8]
call fcn.004ded20
add esp, 0xc
mov dword [esi], 0
push 0x104
push dword [esi + 8]
push dword [ebp - 0x620]
push dword [ebp - 0x62c]
call dword [sym.imp.KERNEL32.dll_K32GetModuleFileNameExW]
mov eax, dword [esi + 8]
xor ecx, ecx
test eax, eax
je 0x42e4dc
cmp word [eax], cx
je 0x42e4dc
lea eax, [eax + 2]
inc ecx
cmp word [eax], 0
jne 0x42e4d2
push 0
mov dword [esi], ecx
lea ecx, [ebp - 0x62c]
push 0x51cd3c
mov dword [ebp - 0x62c], 0
call fcn.0042dfa0
mov ecx, dword [esi]
mov edi, dword [ebp - 0x62c]
test ecx, ecx
je 0x42e534
test edi, edi
je 0x42e50e
mov eax, dword [edi]
jmp 0x42e510
xor eax, eax
test edi, edi
je 0x42e519
mov edx, dword [edi + 8]
jmp 0x42e51b
xor edx, edx
push 1
push 0
push eax
push ecx
mov ecx, dword [esi + 8]
call fcn.00424540
add esp, 0x10
mov dword [ebp - 0x62c], eax
jmp 0x42e53e
mov dword [ebp - 0x62c], 0xffffffff
mov byte [ebp - 4], 1
test edi, edi
je 0x42e555
add dword [edi + 4], 0xffffffff
jne 0x42e555
push edi
call fcn.004eb01a
add esp, 4
mov byte [ebp - 4], 0
cmp dword [ebp - 0x62c], 0xffffffff
je 0x42e5a1
mov eax, 0x51cd3c
xor ecx, ecx
nop dword [eax]
lea eax, [eax + 2]
inc ecx
cmp word [eax], 0
jne 0x42e570
mov edx, dword [esi + 8]
push 1
sub esp, 0xc
push ecx
push 0x51b3ac
push 0x51cd3c
lea ecx, [ebp - 0x624]
call fcn.0042e9d0
mov esi, dword [ebp - 0x624]
add esp, 0x1c
lea eax, [ebp - 0x624]
mov dword [ebx], 0
cmp eax, ebx
je 0x42e5b7
mov eax, esi
xor esi, esi
mov dword [ebx], eax
mov dword [ebp - 4], 2
test esi, esi
je 0x42e5d1
add dword [esi + 4], 0xffffffff
jne 0x42e5d1
push esi
call fcn.004eb01a
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004dadd7
mov esp, ebp
pop ebp
ret