Function at 0x18017adb
Capabilities:
Enumerate process modules
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x106c
call fcn.181580c0
mov eax, dword [0x181d100c]
xor eax, esp
mov dword [esp + 0x1068], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [esp + 0x20], eax
mov ebx, edx
mov eax, dword [ebp + 0x10]
push esi
mov dword [esp + 0x1c], ecx
mov esi, 0x1000
mov ecx, dword [ebp + 0x18]
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0x14]
push edi
mov dword [esp + 0x2c], eax
mov eax, dword [ecx]
push esi
mov dword [ecx + 4], eax
lea eax, [esp + 0x74]
push 0
push eax
mov dword [esp + 0x3c], ecx
call fcn.181312b0
and dword [esp + 0x48], 0
lea eax, [esp + 0x48]
add esp, 0xc
push eax
push esi
lea eax, [esp + 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_K32EnumProcesses]
test eax, eax
jne 0x18017b5c
call fcn.1801b8b5
jmp 0x18017d86
mov edi, dword [esp + 0x3c]
shr edi, 2
mov dword [esp + 0x10], edi
call fcn.18018d60
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
and dword [esp + 0x14], 0
mov esi, eax
mov eax, ebx
mov dword [esp + 0x18], esi
and eax, 0x40
mov dword [esp + 0x1c], eax
je 0x18017bd2
push 0x2c
lea eax, [esp + 0x48]
push 0
push eax
call fcn.181312b0
add esp, 0xc
lea ecx, [esp + 0x44]
push esi
call fcn.18017642
and dword [esp + 0x14], 0
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x48]
call fcn.18017913
test eax, eax
js 0x18017bc4
mov esi, dword [esp + 0x14]
mov dword [esp + 0x14], esi
jmp 0x18017bc9
and dword [esp + 0x14], 0
lea ecx, [esp + 0x44]
call fcn.180176c8
and dword [esp + 0x38], 0
call fcn.18006f7b
push eax
lea ecx, [esp + 0x3c]
call fcn.1800768f
lea eax, [esp + 0x38]
push eax
call fcn.1801941f
mov esi, eax
pop ecx
test esi, esi
js 0x18017d78
test edi, edi
je 0x18017d76
mov eax, dword [esp + 0x10]
lea edi, [esp + 0x70]
cmp dword [edi], 0
je 0x18017d66
test bl, 1
je 0x18017c25
mov ecx, dword [esp + 0x18]
cmp dword [edi], ecx
je 0x18017d66
cmp dword [esp + 0x1c], 0
je 0x18017c38
mov ecx, dword [esp + 0x14]
cmp dword [edi], ecx
je 0x18017d66
mov esi, dword [esp + 0x20]
cmp esi, 0xffffffff
je 0x18017c64
test bl, bl
js 0x18017c64
lea eax, [esp + 0x40]
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x18017d62
cmp dword [esp + 0x40], esi
jne 0x18017d62
test bl, 0xe
je 0x18017cf0
and dword [esp + 0x34], 0
call fcn.18006f7b
push eax
lea ecx, [esp + 0x38]
call fcn.1800768f
mov ecx, dword [edi]
lea edx, [esp + 0x34]
call fcn.18018439
test bl, 8
je 0x18017cb3
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x34]
call fcn.18009bef
test al, al
je 0x18017cb3
mov ecx, dword [esp + 0x34]
add ecx, 0xfffffff0
call fcn.18006f52
jmp 0x18017d62
test bl, 2
je 0x18017cc9
lea edx, [esp + 0x38]
lea ecx, [esp + 0x34]
call fcn.18009c10
test al, al
jne 0x18017ca2
mov esi, dword [esp + 0x34]
test bl, 4
je 0x18017ce8
push str.S_1_5_18
push esi
call fcn.18138c82
pop ecx
pop ecx
test eax, eax
jne 0x18017ce8
lea ecx, [esi - 0x10]
jmp 0x18017ca9
lea ecx, [esi - 0x10]
call fcn.18006f52
mov edx, dword [esp + 0x28]
push ecx
mov ecx, dword [edi]
call fcn.18017efa
pop ecx
test al, al
je 0x18017d62
test bl, 0x30
je 0x18017d58
and dword [esp + 0x34], 0
call fcn.18006f7b
push eax
lea ecx, [esp + 0x38]
call fcn.1800768f
mov ecx, dword [edi]
lea edx, [esp + 0x34]
call fcn.180182f6
test eax, eax
js 0x18017ca2
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x34]
call fcn.18017a8c
test al, al
je 0x18017d43
test bl, 0x10
jmp 0x18017d46
test bl, 0x20
jne 0x18017ca2
mov ecx, dword [esp + 0x34]
lea ecx, [ecx - 0x10]
call fcn.18006f52
mov ecx, dword [esp + 0x30]
push edi
call fcn.180185a0
mov eax, dword [esp + 0x10]
add edi, 4
sub eax, 1
mov dword [esp + 0x10], eax
jne 0x18017c0b
xor esi, esi
mov ecx, dword [esp + 0x38]
add ecx, 0xfffffff0
call fcn.18006f52
mov eax, esi
mov ecx, dword [esp + 0x1074]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1811c608
mov esp, ebp
pop ebp
ret