Function at 0x405870
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 0x408f19
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x8d0
mov eax, dword [0x40d00c]
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 - 0x468], esi
mov dword [ebp - 0x464], esi
mov dword [ebp - 0x464], esi
test edx, edx
je 0x4058e1
push edx
push 0x18
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
mov dword [ebp - 0x464], edi
cmp edi, 0xffffffff
jne 0x4058eb
mov ecx, esi
call fcn.00402a90
jmp 0x405b3a
xorps xmm0, xmm0
lea ecx, [ebp - 0x34]
movups xmmword [ebp - 0x34], xmm0
movups xmmword [ebp - 0x24], xmm0
call fcn.00402a90
push 0x424
lea eax, [ebp - 0x45c]
mov dword [ebp - 4], 0
push 0
push eax
mov dword [ebp - 0x460], 0x428
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x460]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Module32FirstW]
test eax, eax
je 0x405b20
nop dword [eax + eax]
xor eax, eax
mov dword [ebp - 0x470], 0
mov word [ebp - 0x480], ax
lea eax, [ebp - 0x440]
mov dword [ebp - 0x46c], 7
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x405966
sub eax, edx
lea ecx, [ebp - 0x480]
sar eax, 1
push eax
lea eax, [ebp - 0x440]
push eax
call fcn.004041b0
lea edx, [ebp - 0x480]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x498]
call fcn.004021a0
movups xmm0, xmmword [eax]
mov ecx, 0x10a
lea esi, [ebp - 0x460]
lea edi, [ebp - 0x8c8]
movups xmmword [ebp - 0x8e0], xmm0
movq xmm0, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
movq qword [ebp - 0x8d0], xmm0
mov byte [eax], 0
rep movsd dword es:[edi], dword [esi]
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x30]
mov esi, dword [eax]
lea eax, [ebp - 0x8e0]
push eax
mov edi, dword [esi + 4]
push edi
push esi
call fcn.004077d0
mov edx, dword [ebp - 0x2c]
mov ecx, 0x3bcbac
sub ecx, edx
cmp ecx, 1
jb 0x405b60
inc edx
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x2c], edx
mov dword [esi + 4], eax
mov dword [edi], eax
mov eax, dword [ebp - 0x30]
mov eax, dword [eax]
push eax
add eax, 8
push eax
lea eax, [ebp - 0x4a0]
push eax
call fcn.00407320
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x8cc]
cmp edx, 0x10
jb 0x405a65
mov ecx, dword [ebp - 0x8e0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x405a5b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405b5a
push edx
push ecx
call fcn.00407a25
add esp, 8
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x484]
cmp edx, 0x10
jb 0x405aa3
mov ecx, dword [ebp - 0x498]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x405a99
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405b5a
push edx
push ecx
call fcn.00407a25
add esp, 8
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x46c]
mov dword [ebp - 0x488], 0
mov dword [ebp - 0x484], 0xf
mov byte [ebp - 0x498], 0
cmp edx, 8
jb 0x405afe
mov ecx, dword [ebp - 0x480]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x405af4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405b5a
push edx
push ecx
call fcn.00407a25
add esp, 8
mov edi, dword [ebp - 0x464]
lea eax, [ebp - 0x460]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Module32NextW]
test eax, eax
jne 0x405940
mov esi, dword [ebp - 0x468]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x34]
mov ecx, esi
push eax
call fcn.00405d20
lea ecx, [ebp - 0x34]
call fcn.00401f20
mov eax, esi
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.00407a14
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push str.list_T__too_long
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const__]
int3