Function at 0x46d8b0
Capabilities:
Enumerate process modules

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d69f6
mov eax, dword fs:[0]
push eax
push ecx
push ebx
sub esp, 0xe0
mov eax, dword [0x68a140]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, ecx
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x88], eax
mov eax, dword [eax + 4]
cmp byte [eax + 0x40], 0
je 0x46db60
mov eax, dword fs:[0x2c]
xorps xmm0, xmm0
movlpd qword [ebp - 0x24], xmm0
mov ecx, dword [eax]
mov eax, dword [0x6efb20]
cmp eax, dword [ecx + 4]
jle 0x46d988
push 0x6efb20
call fcn.0059a388
add esp, 4
cmp dword [0x6efb20], 0xffffffff
jne 0x46d988
mov dword [ebp - 4], 0
call fcn.004421f0
push 0xe
push str.ToolsSvc.exe
mov ecx, 0x6efb24
lea edx, [eax + 0x3c]
call fcn.00439f90
push 0x5f2450
call fcn.0059a0a5
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
push 0x6efb20
call fcn.0059a337
add esp, 4
push 0x6efb24
lea ecx, [ebp - 0xf0]
call fcn.00422b20
mov dword [ebp - 4], 1
lea ecx, [ebp - 0xd8]
push 0xd
xorps xmm0, xmm0
mov dword [ebp - 0xc8], 0
push str.aswEngSrv.exe
movups xmmword [ebp - 0xd8], xmm0
mov dword [ebp - 0xc4], 0
call fcn.00428be0
mov dword [ebp - 4], 2
lea esi, [ebp - 0xf0]
push 0x28
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
call fcn.0059a103
mov edi, eax
add esp, 4
mov dword [edi], edi
mov dword [edi + 4], edi
mov dword [edi + 8], edi
mov word [edi + 0xc], 0x101
mov dword [ebp - 0x24], edi
lea eax, [ebp - 0xc0]
mov byte [ebp - 4], 3
cmp esi, eax
je 0x46da2c
push esi
push edi
lea ecx, [ebp - 0x24]
call fcn.00470630
add esi, 0x18
lea eax, [ebp - 0xc0]
cmp esi, eax
jne 0x46da15
push 0x402440
push 2
push 0x18
lea eax, [ebp - 0xf0]
mov byte [ebp - 4], 5
push eax
call fcn.0059a982
xorps xmm0, xmm0
mov dword [ebp - 0x2c], 0
movq qword [ebp - 0x34], xmm0
lea ecx, [ebp - 0x34]
push 0x200
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
call fcn.00445c20
mov eax, dword [ebp - 0x34]
push 0x800
push 0
push eax
lea edi, [eax + 0x800]
call fcn.0059bcc0
add esp, 0xc
mov dword [ebp - 0x30], edi
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x34]
nop dword [eax]
sub edi, ecx
lea edx, [ebp - 0x28]
sar edi, 2
push edx
lea eax, [edi*4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_K32EnumProcesses]
test eax, eax
jne 0x46db7e
call dword [sym.imp.KERNEL32.dll_GetLastError]
movq xmm0, qword [str.dump]
lea edx, [ebp - 0x74]
mov dword [ebp - 0x74], eax
mov eax, dword [0x629468]
mov dword [ebp - 0x64], 0x38383946
mov ecx, dword [ebp - 0x64]
movq qword [ebp - 0xb4], xmm0
xorps xmm0, xmm0
mov dword [ebp - 0x68], 0x32353739
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0xa4], ecx
lea ecx, [ebp - 0xb4]
push 0x2c
push str.Unable_to_enumerate_processes__error_code_
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0xa0], 0x19c
movups xmmword [ebp - 0x9c], xmm0
mov dword [ebp - 0x8c], 0
call fcn.0045e6d0
add esp, 8
lea ecx, [ebp - 0x34]
call fcn.00445700
mov eax, dword [ebp - 0x24]
push dword [eax + 4]
lea eax, [ebp - 0x24]
push eax
mov ecx, eax
call fcn.0043a7b0
push 0x28
push dword [ebp - 0x24]
call fcn.0059a0ba
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00599e5b
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov edi, dword [ebp - 0x30]
mov edx, edi
mov ecx, dword [ebp - 0x34]
sub edx, ecx
mov esi, dword [ebp - 0x28]
shr esi, 2
sar edx, 2
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x7c], ecx
cmp edx, esi
jbe 0x46de89
lea edi, [ecx + esi*4]
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x84], edi
mov dword [ebp - 0x74], ecx
cmp ecx, edi
je 0x46db3a
mov eax, dword [ecx]
push eax
push 0
push 0x1000
mov dword [ebp - 0x28], eax
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov dword [ebp - 0x50], esi
mov byte [ebp - 4], 7
test esi, esi
jne 0x46dbe4
mov ecx, dword [ebp - 0x7c]
add ecx, 4
mov byte [ebp - 4], 6
mov dword [ebp - 0x7c], ecx
jmp 0x46dbae
xorps xmm0, xmm0
mov dword [ebp - 0x54], 0x104
push 0x108
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x3c], 0
movups xmmword [ebp - 0x4c], xmm0
mov dword [ebp - 0x38], 7
call fcn.00428b80
mov edx, eax
mov dword [ebp - 0x3c], 0x104
xor eax, eax
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x38], 0x107
mov ecx, 0x82
mov edi, edx
rep stosd dword es:[edi], eax
mov word [edx + 0x208], ax
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x54]
cmp dword [ebp - 0x38], 7
lea eax, [ebp - 0x4c]
push ecx
cmova eax, dword [ebp - 0x4c]
push eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_QueryFullProcessImageNameW]
test eax, eax
je 0x46de65
mov ecx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x3c]
cmp ecx, eax
ja 0x46dc77
cmp dword [ebp - 0x38], 7
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x3c], ecx
cmova eax, dword [ebp - 0x4c]
xor edx, edx
mov word [eax + ecx*2], dx
jmp 0x46dc84
sub ecx, eax
push 0
push ecx
lea ecx, [ebp - 0x4c]
call fcn.004286f0
mov ecx, esi
mov dword [ebp - 0x5c], 0
mov byte [ebp - 4], 9
call fcn.00446430
mov edi, dword [ebp - 0x70]
mov dword [ebp - 0x80], eax
mov dword [ebp - 4], 8
jmp 0x46dcd9
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x80], eax
je 0x46dd49
cmp dword [ebp - 0x38], 7
lea eax, [ebp - 0x4c]
push dword [ebp - 0x3c]
cmova eax, dword [ebp - 0x4c]
lea ecx, [ebp - 0xa0]
push eax
call fcn.00452c90
add esp, 8
mov dword [ebp - 0x5c], eax
push eax
lea eax, [ebp - 0xc0]
mov byte [ebp - 4], 0xb
or dword [ebp - 0x6c], 1
lea ecx, [ebp - 0x24]
push eax
call fcn.0043de10
mov eax, dword [ebp - 0xb8]
cmp byte [eax + 0xd], 0
jne 0x46dd43
add eax, 0x10
push eax
push dword [ebp - 0x5c]
call fcn.0043de70
test al, al
jne 0x46dd43
mov eax, dword [ebp - 0xb8]
cmp eax, dword [ebp - 0x24]
jne 0x46dd49
mov byte [ebp - 0x55], 1
jmp 0x46dd4d
mov byte [ebp - 0x55], 0
mov dword [ebp - 4], 8
mov eax, dword [ebp - 0x6c]
test al, 1
je 0x46dd6c
and eax, 0xfffffffe
lea ecx, [ebp - 0xa0]
mov dword [ebp - 0x6c], eax
call fcn.00428f30
cmp byte [ebp - 0x55], 0
je 0x46dd93
lea ecx, [ebp - 0x4c]
call fcn.00428f30
push esi
mov byte [ebp - 4], 6
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x7c]
add ecx, 4
mov dword [ebp - 0x7c], ecx
jmp 0x46dbae
mov eax, dword [ebp - 0x78]
push 1
push dword [ebp - 0x28]
mov eax, dword [eax]
push 0
mov dword [ebp - 0x5c], eax
push str.Cause:_Process_watcher__connected_to_previous_dump
mov eax, dword [eax]
push 0
push 0
mov edi, dword [eax + 0x2c]
mov ecx, edi
call dword [0x5f3508]
mov ecx, dword [ebp - 0x5c]
call edi
test eax, eax
je 0x46de65
mov eax, dword [ebp - 0x78]
push 1
push dword [ebp - 0x28]
mov eax, dword [eax]
mov dword [ebp - 0x5c], eax
push str.Cause:_Process_watcher__connected_to_previous_dump
push 0
mov eax, dword [eax]
push 0
mov edi, dword [eax + 0x28]
mov ecx, edi
call dword [0x5f3508]
mov ecx, dword [ebp - 0x5c]
call edi
test eax, eax
je 0x46de65
movq xmm0, qword [str.dump]
lea edx, [ebp - 0x5c]
mov dword [ebp - 0x5c], eax
mov eax, dword [0x629468]
mov dword [ebp - 0x64], 0x38383946
mov ecx, dword [ebp - 0x64]
movq qword [ebp - 0xb4], xmm0
xorps xmm0, xmm0
mov dword [ebp - 0x68], 0x32353739
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0xa4], ecx
lea ecx, [ebp - 0xb4]
push 0x32
push str.Connected_process_dump_unsuccessful__error_code_
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0xa0], 0x1c8
movups xmmword [ebp - 0x9c], xmm0
mov dword [ebp - 0x8c], 0
call fcn.00470130
add esp, 8
lea ecx, [ebp - 0x4c]
call fcn.00428f30
push esi
mov byte [ebp - 4], 6
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x7c]
mov edi, dword [ebp - 0x70]
add ecx, 4
mov dword [ebp - 0x7c], ecx
jmp 0x46dbae
add esi, 0xa
cmp esi, edx
jae 0x46de9b
lea edi, [ecx + esi*4]
mov dword [ebp - 0x30], edi
jmp 0x46daa0
jbe 0x46daa0
mov eax, dword [ebp - 0x2c]
sub eax, ecx
sar eax, 2
cmp esi, eax
jbe 0x46debf
push ecx
push esi
lea ecx, [ebp - 0x34]
call fcn.00470540
mov edi, dword [ebp - 0x30]
jmp 0x46da96
sub esi, edx
shl esi, 2
push esi
push 0
push edi
call fcn.0059bcc0
add esp, 0xc
add edi, esi
mov dword [ebp - 0x30], edi
jmp 0x46da96