Function at 0x50ba80
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x5ed284]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor esi, esi
lea eax, [ebp - 0x10c]
push 0x105
push esi
push eax
mov dword [ebp - 0x118], esi
call sub.VCRUNTIME140.dll_memset
push 0x784
push 0x5a4c78
mov dword [ebp - 0x110], esi
call sym.FLAMESLauncher.exe_FObjectArrayCreateWithTag
mov ebx, eax
add esp, 0x14
mov dword [ebp - 0x114], ebx
test ebx, ebx
jne 0x50bae3
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052bfb9
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edi, eax
lea eax, [ebp - 0x110]
push eax
push 0
push 0
push edi
mov dword [ebp - 0x120], edi
call sub.KERNEL32.dll_K32EnumProcessModules
test eax, eax
jne 0x50bb11
push 0x78f
jmp 0x50bd3f
push 0x795
push 0x5a4c78
push 1
push dword [ebp - 0x110]
call sym.FLAMESLauncher.exe_FUtilityMemAllocateWithTag
add esp, 0x10
mov dword [ebp - 0x11c], eax
test eax, eax
je 0x50bd3a
lea ecx, [ebp - 0x110]
push ecx
push dword [ebp - 0x110]
push eax
push edi
call sub.KERNEL32.dll_K32EnumProcessModules
mov eax, dword [ebp - 0x110]
xor edi, edi
shr eax, 2
mov dword [ebp - 0x124], eax
test eax, eax
je 0x50bce6
nop word [eax + eax]
push 0x105
lea eax, [ebp - 0x10c]
push eax
mov eax, dword [ebp - 0x11c]
push dword [eax + edi*4]
push dword [ebp - 0x120]
call sub.KERNEL32.dll_K32GetModuleFileNameExA
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionA]
mov esi, eax
test esi, esi
je 0x50bbb4
push 0x2e
push esi
call sub.VCRUNTIME140.dll_strchr
add esp, 8
neg eax
sbb eax, eax
and eax, esi
mov edx, str..exe
mov ecx, eax
nop dword [eax + eax]
mov bl, byte [ecx]
cmp bl, byte [edx]
jne 0x50bbe0
test bl, bl
je 0x50bbdc
mov bl, byte [ecx + 1]
cmp bl, byte [edx + 1]
jne 0x50bbe0
add ecx, 2
add edx, 2
test bl, bl
jne 0x50bbc0
xor ecx, ecx
jmp 0x50bbe5
sbb ecx, ecx
or ecx, 1
test ecx, ecx
je 0x50bc7c
mov ecx, str..EXE
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x50bc12
test dl, dl
je 0x50bc0e
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x50bc12
add eax, 2
add ecx, 2
test dl, dl
jne 0x50bbf2
xor eax, eax
jmp 0x50bc17
sbb eax, eax
or eax, 1
test eax, eax
je 0x50bc7c
lea ecx, [ebp - 0x10c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x50bc24
sub ecx, edx
push 0x7b4
push 0x5a4c78
lea eax, [ecx + 1]
push eax
push 1
call sym.FLAMESLauncher.exe_FUtilityMemAllocateWithTag
mov esi, eax
lea ecx, [ebp - 0x10c]
mov edx, esi
mov eax, ecx
add esp, 0x10
sub edx, eax
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x50bc53
mov ebx, dword [ebp - 0x114]
push 0x7bc
push 0x5a4c78
push esi
push ebx
call sym.FLAMESLauncher.exe_FObjectArrayAddObjectWithTag
add esp, 0x10
jmp 0x50bcd3
lea ecx, [ebp - 0x10c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x50bc85
sub ecx, edx
push 0x7ad
push 0x5a4c78
lea eax, [ecx + 1]
push eax
push 1
call sym.FLAMESLauncher.exe_FUtilityMemAllocateWithTag
lea edx, [ebp - 0x10c]
mov dword [ebp - 0x118], eax
mov esi, eax
add esp, 0x10
mov eax, edx
sub esi, eax
nop dword [eax + eax]
mov cl, byte [edx]
lea edx, [edx + 1]
mov byte [esi + edx - 1], cl
test cl, cl
jne 0x50bcc0
mov ebx, dword [ebp - 0x114]
inc edi
cmp edi, dword [ebp - 0x124]
jl 0x50bb70
mov esi, dword [ebp - 0x118]
push 0x7c0
push 0x5a4c78
push dword [ebp - 0x11c]
call sym.FLAMESLauncher.exe_FUtilityMemFreeWithTag
add esp, 0xc
test esi, esi
je 0x50bd29
push 0x855
push 0x5a4c78
push esi
push ebx
call sym.FLAMESLauncher.exe_FObjectArrayAddObjectWithTag
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052bfb9
mov esp, ebp
pop ebp
ret
push 0x859
push 0x5a4c78
push sym.FLAMESLauncher.exe_FUtilityMemFreeNoTag
jmp 0x50bd46
push 0x7c5
push 0x5a4c78
push 0
push ebx
call sym.FLAMESLauncher.exe_FObjectArrayDestroyWithTag
mov ecx, dword [ebp - 4]
add esp, 0x10
xor ecx, ebp
xor eax, eax
pop edi
pop esi
pop ebx
call fcn.0052bfb9
mov esp, ebp
pop ebp
ret