Function at 0x412090
Capabilities:
Enumerate process modules
Get process image filename

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 0x4374bb
mov eax, dword fs:[0]
push eax
push ebx
mov eax, 0x1230
call fcn.00434ff0
mov eax, dword [0x451008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x123c], ecx
mov dword [ebp - 0x1224], 0
test ecx, ecx
je 0x4122f3
lea eax, [ebp - 0x1234]
push eax
push 0x1000
lea eax, [ebp - 0x1220]
push eax
call dword [sym.imp.KERNEL32.dll_K32EnumProcesses]
test eax, eax
je 0x4122eb
xor ecx, ecx
test dword [ebp - 0x1234], 0xfffffffc
mov dword [ebp - 0x1230], ecx
jbe 0x4122eb
nop word [eax + eax]
push dword [ebp + ecx*4 - 0x1220]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
mov dword [ebp - 0x1238], edi
test edi, edi
je 0x4122cd
mov eax, dword [0x44b830]
movups xmm0, xmmword [str._Unknown_]
push 0x1f4
mov dword [ebp - 0x210], eax
lea eax, [ebp - 0x20c]
push 0
push eax
movups xmmword [ebp - 0x220], xmm0
call fcn.0041c390
add esp, 0xc
lea eax, [ebp - 0x220]
push 0x104
push eax
push edi
call dword [sym.imp.KERNEL32.dll_K32GetProcessImageFileNameW]
lea esi, [ebp - 0x220]
lea ecx, [esi + 2]
nop
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4121a0
sub esi, ecx
mov edx, 2
sar esi, 1
xor ecx, ecx
mov dword [ebp - 0x1228], esi
lea eax, [esi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041b26a
mov ecx, eax
add esp, 4
mov dword [ebp - 0x122c], ecx
test ecx, ecx
je 0x41220b
xor eax, eax
xor edx, edx
mov word [ecx + esi*2], ax
test esi, esi
je 0x412215
lea edi, [ebp - 0x220]
mov eax, ecx
sub edi, ecx
mov cx, word [edi + eax]
lea eax, [eax + 2]
inc edx
mov word [eax - 2], cx
cmp edx, esi
jb 0x4121f3
mov edi, dword [ebp - 0x1238]
jmp 0x412215
mov dword [ebp - 0x1228], 0
lea ecx, [ebp - 0x122c]
mov dword [ebp - 4], 0
call fcn.004114a0
mov esi, eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x122c]
test eax, eax
je 0x41224f
push 2
push eax
call fcn.0041aef0
add esp, 8
mov dword [ebp - 0x122c], 0
mov dword [ebp - 0x1228], 0
test esi, esi
je 0x4122cd
mov ecx, dword [esi]
test ecx, ecx
je 0x4122a4
cmp dword [esi + 4], 0
jbe 0x4122a4
mov edx, dword [ebp - 0x123c]
mov eax, dword [edx]
test eax, eax
je 0x4122a4
cmp dword [edx + 4], 0
jbe 0x4122a4
push eax
push ecx
call fcn.0041e7f3
add esp, 8
test eax, eax
jne 0x4122a4
mov ecx, edi
call fcn.00411fc0
test eax, eax
je 0x4122a4
lea eax, [ebp - 0x1224]
push eax
push 0xc
push edi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov eax, dword [esi]
test eax, eax
je 0x4122bb
push 2
push eax
call fcn.0041aef0
add esp, 8
mov dword [esi], 0
push 8
push esi
mov dword [esi + 4], 0
call fcn.0041aef0
add esp, 8
mov ecx, dword [ebp - 0x1230]
mov eax, dword [ebp - 0x1234]
inc ecx
shr eax, 2
mov dword [ebp - 0x1230], ecx
cmp ecx, eax
jb 0x412130
mov eax, dword [ebp - 0x1224]
jmp 0x4122f5
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041ab17
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret