Function at 0x10005160
Capabilities:
Enumerate process modules

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 0x10013cd9
mov eax, dword fs:[0]
push eax
push ebx
mov eax, 0x11e0
call fcn.10013700
mov eax, dword [0x1001b00c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x1150], esi
mov dword [ebp - 0x115c], esi
mov dword [ebp - 0x1180], esi
xorps xmm0, xmm0
mov dword [ebp - 0x1154], 0
movq qword [esi], xmm0
mov dword [esi + 8], 0
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
lea eax, [ebp - 0x1124]
mov dword [ebp - 4], 0
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
push 0x1000
lea eax, [ebp - 0x1120]
mov dword [ebp - 0x1154], 1
push eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_K32EnumProcessModules]
test eax, eax
je 0x10005489
xor ecx, ecx
test dword [ebp - 0x1124], 0xfffffffc
mov dword [ebp - 0x1158], ecx
jbe 0x10005489
nop dword [eax + eax]
mov esi, dword [ebp + ecx*4 - 0x1120]
call edi
push 0x104
lea ecx, [ebp - 0x120]
push ecx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_K32GetModuleFileNameExA]
test eax, eax
je 0x100056f9
mov esi, dword [ebp - 0x1158]
mov esi, dword [ebp + esi*4 - 0x1120]
call edi
push 0xc
lea ecx, [ebp - 0x1148]
push ecx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_K32GetModuleInformation]
test eax, eax
je 0x100056f9
mov byte [ebp - 0x1178], 0
lea edx, [ebp - 0x120]
push dword [ebp - 0x1178]
lea ecx, [ebp - 0x113c]
call fcn.1000be30
add esp, 4
lea ecx, [ebp - 0x113c]
mov dword [ebp - 4], 1
call fcn.10004ee0
mov dword [ebp - 0x117c], eax
lea ecx, [ebp - 0x113c]
lea eax, [ebp - 0x1174]
mov dword [ebp - 0x115c], edx
push eax
call fcn.100044b0
push ecx
lea ecx, [ebp - 0x1198]
mov byte [ebp - 4], 2
push ecx
mov ecx, eax
call fcn.10009ad0
or dword [ebp - 0x1154], 8
lea eax, [ebp - 0x1198]
cmp dword [ebp - 0x1184], 0x10
mov edi, dword [ebp - 0x1198]
setae byte [ebp - 0x114a]
cmovae eax, edi
cmp dword [ebp - 0x1188], 0xa
jne 0x10005370
mov edx, str.gta_sa.exe
mov esi, 6
mov ecx, dword [eax]
cmp ecx, dword [edx]
jne 0x10005339
add eax, 4
add edx, 4
sub esi, 4
jae 0x10005328
mov cl, byte [eax]
cmp cl, byte [edx]
jne 0x10005360
mov cl, byte [eax + 1]
cmp cl, byte [edx + 1]
jne 0x10005360
cmp esi, 0xfffffffe
je 0x1000535c
mov cl, byte [eax + 2]
cmp cl, byte [edx + 2]
jne 0x10005360
mov al, byte [eax + 3]
cmp al, byte [edx + 3]
jne 0x10005360
xor eax, eax
jmp 0x10005365
sbb eax, eax
or eax, 1
mov byte [ebp - 0x1149], 1
test eax, eax
je 0x10005377
mov byte [ebp - 0x1149], 0
cmp byte [ebp - 0x114a], 0
je 0x100053af
mov ecx, dword [ebp - 0x1184]
mov eax, edi
inc ecx
cmp ecx, 0x1000
jb 0x100053a5
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10005704
push ecx
push edi
call fcn.10012893
add esp, 8
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x1160]
mov dword [ebp - 0x1188], 0
mov dword [ebp - 0x1184], 0xf
mov byte [ebp - 0x1198], 0
cmp ecx, 8
jb 0x1000540e
mov edx, dword [ebp - 0x1174]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10005404
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10005704
push ecx
push edx
call fcn.10012893
add esp, 8
cmp byte [ebp - 0x1149], 0
je 0x100054da
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x1128]
cmp ecx, 8
jb 0x1000545f
mov edx, dword [ebp - 0x113c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10005455
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10005704
push ecx
push edx
call fcn.10012893
add esp, 8
mov esi, dword [ebp - 0x1150]
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ecx, dword [ebp - 0x1158]
mov eax, dword [ebp - 0x1124]
inc ecx
shr eax, 2
mov dword [ebp - 0x1158], ecx
cmp ecx, eax
jb 0x10005240
mov edi, dword [esi + 4]
mov eax, 0x92492493
mov ecx, dword [esi]
mov esi, edi
push dword [ebp - 0x1180]
sub esi, ecx
imul esi
add edx, esi
sar edx, 4
mov esi, edx
shr esi, 0x1f
add esi, edx
mov edx, edi
push esi
call fcn.1000be70
mov eax, dword [ebp - 0x1150]
add esp, 8
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.1001241c
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
lea eax, [ebp - 0x11f0]
push eax
lea ecx, [ebp - 0x113c]
call fcn.100044b0
push ecx
lea ecx, [ebp - 0x1174]
mov byte [ebp - 4], 3
push ecx
mov ecx, eax
call fcn.10009ad0
or dword [ebp - 0x1154], 0x80
movups xmm1, xmmword [ebp - 0x1174]
mov edx, dword [ebp - 0x117c]
movq xmm2, qword [ebp - 0x1164]
xorps xmm0, xmm0
mov eax, dword [ebp - 0x115c]
movups xmmword [ebp - 0x11d8], xmm0
mov dword [ebp - 0x1164], 0
movups xmmword [ebp - 0x11d8], xmm1
mov dword [ebp - 0x1160], 0xf
movq qword [ebp - 0x11c8], xmm2
mov byte [ebp - 0x1174], 0
mov dword [ebp - 0x11c0], edx
mov dword [ebp - 0x11bc], eax
movups xmmword [ebp - 0x11b4], xmm0
mov dword [ebp - 0x11c8], 0
movups xmmword [ebp - 0x11b4], xmm1
mov dword [ebp - 0x11c4], 0xf
movq qword [ebp - 0x11a4], xmm2
mov byte [ebp - 0x11d8], 0
mov dword [ebp - 0x119c], edx
mov byte [ebp - 4], 6
mov esi, dword [ebp - 0x1150]
mov eax, dword [esi + 4]
cmp eax, dword [esi + 8]
je 0x100055ca
movups xmmword [eax], xmm1
mov ecx, 0xf
mov byte [ebp - 0x11b4], 0
movq qword [eax + 0x10], xmm2
mov dword [eax + 0x18], edx
add dword [esi + 4], 0x1c
jmp 0x100055df
lea ecx, [ebp - 0x11b4]
push ecx
push eax
mov ecx, esi
call fcn.1000c490
mov ecx, dword [ebp - 0x11a0]
mov byte [ebp - 4], 5
cmp ecx, 0x10
jb 0x10005617
mov edx, dword [ebp - 0x11b4]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1000560d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10005704
push ecx
push edx
call fcn.10012893
add esp, 8
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x1160]
cmp ecx, 0x10
jb 0x10005655
mov edx, dword [ebp - 0x1174]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1000564b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10005704
push ecx
push edx
call fcn.10012893
add esp, 8
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x11dc]
mov dword [ebp - 0x1164], 0
mov dword [ebp - 0x1160], 0xf
mov byte [ebp - 0x1174], 0
cmp ecx, 8
jb 0x100056b0
mov edx, dword [ebp - 0x11f0]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x100056a6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10005704
push ecx
push edx
call fcn.10012893
add esp, 8
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x1128]
cmp ecx, 8
jb 0x10005465
mov edx, dword [ebp - 0x113c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x100056ea
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10005704
push ecx
push edx
call fcn.10012893
add esp, 8
jmp 0x10005465
mov esi, dword [ebp - 0x1150]
jmp 0x1000546b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3