Function at 0x100170b0
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10087441
mov eax, dword fs:[0]
push eax
sub esp, 0xa40
mov eax, dword [0x100c90c0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
push 0x7fc
lea eax, [ebp - 0xa48]
push 0
push eax
mov dword [ebp - 0x234], ebx
mov dword [ebp - 0xa4c], 0
call fcn.10074d40
add esp, 0xc
test ebx, ebx
je 0x1001733a
push str.Psapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x10017153
push str.EnumProcessModulesEx
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10017153
push 3
lea ecx, [ebp - 0x230]
push ecx
push 0x800
lea ecx, [ebp - 0xa4c]
push ecx
push ebx
call eax
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x1001716f
lea eax, [ebp - 0x230]
push eax
push 0x800
lea eax, [ebp - 0xa4c]
push eax
push ebx
call dword [sym.imp.PSAPI.DLL_EnumProcessModules]
mov edi, eax
test edi, edi
je 0x1001733a
mov eax, dword [ebp - 0x230]
shr eax, 2
xor ebx, ebx
mov dword [ebp - 0x238], eax
test eax, eax
je 0x1001733a
push 0x208
lea eax, [ebp - 0x21c]
push eax
push dword [ebp + ebx*4 - 0xa4c]
push dword [ebp - 0x234]
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExW]
test eax, eax
je 0x1001732d
mov dword [ebp - 4], 0
xor edi, edi
lea esi, [ebp - 0x21c]
mov dword [ebp - method.CStringBufferW.virtual_0], vtable.CStringBufferW.0
mov dword [ebp - 0x220], edi
mov dword [ebp - 0x224], edi
mov dword [ebp - 0x228], edi
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x100171e5
sub esi, ecx
sar esi, 1
je 0x1001722e
push esi
lea ecx, [ebp - 0x22c]
call fcn.1003f120
mov edi, dword [ebp - 0x220]
push esi
lea eax, [ebp - 0x21c]
push eax
push dword [ebp - 0x224]
push edi
call fcn.1006fb74
lea eax, [esi + 1]
add esp, 0x10
mov dword [ebp - 0x228], esi
mov dword [ebp - 0x224], eax
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x22c]
mov dword [ebp - 4], 1
call fcn.1003fe30
mov esi, eax
mov byte [ebp - 4], 2
cmp edi, dword [esi + 0xc]
je 0x10017294
test edi, edi
je 0x1001725f
push edi
call fcn.1006eaef
add esp, 4
push dword [esi + 4]
lea ecx, [ebp - 0x22c]
push dword [esi + 0xc]
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x228], 0
call fcn.1003ea90
mov edi, dword [ebp - 0x220]
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x23c]
mov dword [ebp - method.CStringBufferW.virtual_0], vtable.CStringBufferW.0
test eax, eax
je 0x100172b5
push eax
call fcn.1006eaef
add esp, 4
push str.Kernel32.dll
lea ecx, [ebp - 0x22c]
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x240], 0
mov dword [ebp - 0x244], 0
mov dword [ebp - method.CSeed.virtual_0], vtable.CSeed.0
call fcn.1003fa00
test eax, eax
jne 0x1001735a
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x10017305
push edi
call fcn.1006eaef
add esp, 4
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x228], 0
mov dword [ebp - method.CSeed.virtual_0], vtable.CSeed.0
inc ebx
cmp ebx, dword [ebp - 0x238]
jb 0x10017190
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1006daee
mov esp, ebp
pop ebp
ret 4
mov esi, dword [ebp + ebx*4 - 0xa4c]
test edi, edi
je 0x1001736e
push edi
call fcn.1006eaef
add esp, 4
mov eax, esi
jmp 0x1001733c