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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x106c
call fcn.18186520
mov eax, dword [0x1820f00c]
xor eax, esp
mov dword [esp + 0x1068], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [esp + 0x30], eax
mov ebx, edx
mov eax, dword [ebp + 0x10]
push esi
mov dword [esp + 0x28], ecx
mov esi, 0x1000
mov ecx, dword [ebp + 0x18]
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 0x14]
push edi
mov dword [esp + 0x3c], eax
mov eax, dword [ecx]
push esi
mov dword [ecx + 4], eax
lea eax, [esp + 0x74]
push 0
push eax
mov dword [esp + 0x4c], ecx
call fcn.181620e0
and dword [esp + 0x2c], 0
lea eax, [esp + 0x2c]
add esp, 0xc
push eax
push esi
lea eax, [esp + 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_K32EnumProcesses]
test eax, eax
jne 0x180148de
call fcn.18017850
jmp 0x18014ac9
mov edi, dword [esp + 0x20]
shr edi, 2
mov dword [esp + 0xc], edi
call fcn.180158e5
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
xor esi, esi
mov eax, ebx
mov dword [esp + 0x24], ecx
and eax, 0x40
mov dword [esp + 0x1c], esi
mov dword [esp + 0x28], eax
je 0x1801493c
push ecx
lea ecx, [esp + 0x48]
call fcn.18014464
lea eax, [esp + 0x14]
mov dword [esp + 0x14], esi
push eax
lea ecx, [esp + 0x48]
call fcn.180146aa
test eax, eax
js 0x1801492f
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0x44]
mov dword [esp + 0x1c], esi
call fcn.180144d8
lea ecx, [esp + 0x14]
call fcn.18009c8e
lea eax, [esp + 0x14]
push eax
call fcn.18016000
mov esi, eax
pop ecx
test esi, esi
js 0x18014abb
test edi, edi
je 0x18014ab9
mov eax, dword [esp + 0xc]
lea edi, [esp + 0x70]
cmp dword [edi], 0
je 0x18014aa9
test bl, 1
je 0x18014984
mov ecx, dword [esp + 0x24]
cmp dword [edi], ecx
je 0x18014aa9
cmp dword [esp + 0x28], 0
je 0x18014997
mov ecx, dword [esp + 0x1c]
cmp dword [edi], ecx
je 0x18014aa9
mov esi, dword [esp + 0x2c]
cmp esi, 0xffffffff
je 0x180149c3
test bl, bl
js 0x180149c3
lea eax, [esp + 0x30]
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x18014aa5
cmp dword [esp + 0x30], esi
jne 0x18014aa5
test bl, 0xe
je 0x18014a40
lea ecx, [esp + 0x10]
call fcn.18009c8e
mov ecx, dword [edi]
lea edx, [esp + 0x10]
call fcn.1801513d
test bl, 8
je 0x18014a03
mov edx, dword [esp + 0x34]
lea ecx, [esp + 0x10]
call fcn.180099af
test al, al
je 0x18014a03
mov ecx, dword [esp + 0x10]
add ecx, 0xfffffff0
call fcn.1800687d
jmp 0x18014aa5
test bl, 2
je 0x18014a19
lea edx, [esp + 0x14]
lea ecx, [esp + 0x10]
call fcn.180099d0
test al, al
jne 0x180149f2
mov esi, dword [esp + 0x10]
test bl, 4
je 0x18014a38
push str.S_1_5_18
push esi
call fcn.181692e2
pop ecx
pop ecx
test eax, eax
jne 0x18014a38
lea ecx, [esi - 0x10]
jmp 0x180149f9
lea ecx, [esi - 0x10]
call fcn.1800687d
mov edx, dword [esp + 0x38]
push ecx
mov ecx, dword [edi]
call fcn.18014c0d
pop ecx
test al, al
je 0x18014aa5
test bl, 0x30
je 0x18014a9b
lea ecx, [esp + 0x18]
call fcn.18009c8e
mov ecx, dword [edi]
lea edx, [esp + 0x18]
call fcn.18014fed
test eax, eax
jns 0x18014a74
mov ecx, dword [esp + 0x18]
jmp 0x180149f6
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 0x18]
call fcn.1801480e
test al, al
je 0x18014a8a
test bl, 0x10
jmp 0x18014a8d
test bl, 0x20
jne 0x18014a6e
mov ecx, dword [esp + 0x18]
lea ecx, [ecx - 0x10]
call fcn.1800687d
mov ecx, dword [esp + 0x40]
push edi
call fcn.1801527e
mov eax, dword [esp + 0xc]
add edi, 4
sub eax, 1
mov dword [esp + 0xc], eax
jne 0x1801496a
xor esi, esi
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff0
call fcn.1800687d
mov eax, esi
mov ecx, dword [esp + 0x1074]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1814cf3d
mov esp, ebp
pop ebp
ret