Function at 0x4021b0
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x439251
mov eax, dword fs:[0]
push eax
mov eax, 0x1474
call fcn.004340a0
mov eax, dword [0x449570]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x1438], edi
lea eax, [ebp - 0x1424]
push eax
push 0x1000
lea eax, [ebp - 0x1420]
push eax
call dword [sym.imp.PSAPI.DLL_EnumProcesses]
test eax, eax
jne 0x4022d1
push 0x30
push str.EnumProcesses___failed_in_AddonChecker::check___
lea ecx, [ebp - 0x1480]
mov dword [ebp - 0x146c], 7
mov dword [ebp - 0x1470], eax
mov word [ebp - 0x1480], ax
call fcn.00404220
mov dword [ebp - 4], 0
push 5
xor eax, eax
push str.ERROR
lea ecx, [ebp - 0x1450]
mov dword [ebp - 0x143c], 7
mov dword [ebp - 0x1440], 0
mov word [ebp - 0x1450], ax
call fcn.00404220
lea edx, [ebp - 0x1480]
lea ecx, [ebp - 0x1450]
mov byte [ebp - 4], 1
call fcn.004157f0
cmp dword [ebp - 0x143c], 8
jb 0x402296
push dword [ebp - 0x1450]
call fcn.0041df62
add esp, 4
xor eax, eax
cmp dword [ebp - 0x146c], 8
mov dword [ebp - 0x143c], 7
mov dword [ebp - 0x1440], 0
mov word [ebp - 0x1450], ax
jb 0x4022ca
push dword [ebp - 0x1480]
call fcn.0041df62
add esp, 4
xor al, al
jmp 0x4024af
mov eax, dword [ebp - 0x1424]
shr eax, 2
xor esi, esi
mov dword [ebp - 0x1434], eax
mov dword [ebp - 0x1430], esi
test eax, eax
je 0x4024ad
mov eax, dword [ebp + esi*4 - 0x1420]
test eax, eax
je 0x40249a
push eax
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x402493
lea eax, [ebp - 0x1424]
push eax
push 4
lea eax, [ebp - 0x142c]
push eax
push ebx
call dword [sym.imp.PSAPI.DLL_EnumProcessModules]
test eax, eax
je 0x402493
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push eax
call fcn.004219e0
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x104
push eax
push dword [ebp - 0x142c]
push ebx
call dword [sym.imp.PSAPI.DLL_GetModuleBaseNameW]
lea eax, [ebp - 0x1428]
push eax
push 0x18
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x402493
mov ecx, dword [ebp - 0x1428]
call fcn.00417060
test al, al
je 0x402487
mov esi, dword [edi]
cmp esi, dword [edi + 4]
je 0x402481
mov edi, dword [esi]
cmp dword [edi + 0x48], 8
lea eax, [edi + 0x34]
jb 0x4023b0
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.0041e6d6
add esp, 8
test eax, eax
jne 0x40246f
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.004219e0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push dword [ebp - 0x142c]
push ebx
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExW]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x1468]
call fcn.00402eb0
lea ecx, [edi + 0x64]
lea eax, [ebp - 0x1468]
mov dword [ebp - 4], 2
cmp ecx, eax
je 0x40242d
push 0xffffffffffffffff
push 0
push eax
call fcn.00403ba0
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x1454], 8
mov byte [edi + 0x95], 1
jb 0x402452
push dword [ebp - 0x1468]
call fcn.0041df62
add esp, 4
xor eax, eax
mov dword [ebp - 0x1454], 7
mov dword [ebp - 0x1458], 0
mov word [ebp - 0x1468], ax
mov edi, dword [ebp - 0x1438]
add esi, 4
cmp esi, dword [edi + 4]
jne 0x4023a3
mov esi, dword [ebp - 0x1430]
push dword [ebp - 0x1428]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
mov dword [ebp - 0x1430], esi
cmp esi, dword [ebp - 0x1434]
jb 0x4022f0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041ddb7
mov esp, ebp
pop ebp
ret