Function at 0x40a2d0
Capabilities:
Enumerate process modules

Disassembly:
push 0xffffffffffffffff
push 0x4464b1
mov eax, dword fs:[0]
push eax
mov eax, 0x1488
call fcn.00431280
mov eax, dword [0x45b970]
xor eax, esp
mov dword [esp + 0x1480], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x45b970]
xor eax, esp
push eax
lea eax, [esp + 0x149c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x14ac]
xor edi, edi
xor ecx, ecx
mov word [esp + 0x1050], cx
mov ebx, 7
mov ecx, eax
mov dword [esp + 0x1064], ebx
mov dword [esp + 0x1060], edi
lea esi, [ecx + 2]
lea ebx, [ebx]
mov dx, word [ecx]
add ecx, 2
cmp dx, di
jne 0x40a340
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [esp + 0x1050]
call fcn.0040a910
mov dword [esp + 0x14a4], edi
xor edx, edx
mov eax, 0x44eb3c
mov word [esp + 0x1034], dx
mov dword [esp + 0x1048], ebx
mov dword [esp + 0x1044], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x40a383
sub eax, edx
sar eax, 1
push eax
mov eax, 0x44eb3c
lea esi, [esp + 0x1034]
call fcn.0040a910
mov byte [esp + 0x14a4], 1
mov dword [esp + 0x18], edi
cmp dword [esp + 0x1060], edi
jne 0x40a418
cmp dword [esp + 0x1044], edi
jne 0x40a418
mov esi, 8
cmp dword [esp + 0x1048], esi
jb 0x40a3e0
mov eax, dword [esp + 0x1034]
push eax
call fcn.0041069a
add esp, 4
xor ecx, ecx
mov dword [esp + 0x1048], ebx
mov dword [esp + 0x1044], edi
mov word [esp + 0x1034], cx
cmp dword [esp + 0x1064], esi
jb 0x40a411
mov edx, dword [esp + 0x1050]
push edx
call fcn.0041069a
add esp, 4
xor eax, eax
jmp 0x40a515
lea eax, [esp + 0x24]
push eax
push 0x1000
lea ecx, [esp + 0x34]
push ecx
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
jne 0x40a486
mov esi, 8
cmp dword [esp + 0x1048], esi
jb 0x40a44e
mov edx, dword [esp + 0x1034]
push edx
call fcn.0041069a
add esp, 4
xor eax, eax
mov dword [esp + 0x1048], ebx
mov dword [esp + 0x1044], edi
mov word [esp + 0x1034], ax
cmp dword [esp + 0x1064], esi
jb 0x40a411
mov ecx, dword [esp + 0x1050]
push ecx
call fcn.0041069a
add esp, 4
xor eax, eax
jmp 0x40a515
lea ebx, [esp + 0x104c]
call fcn.00410020
lea ebx, [esp + 0x1030]
call fcn.00410020
mov eax, dword [esp + 0x24]
shr eax, 2
mov ecx, 1
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], ecx
cmp eax, ecx
ja 0x40a542
mov ebp, 8
cmp dword [esp + 0x1048], ebp
jb 0x40a4d8
mov ecx, dword [esp + 0x1034]
push ecx
call fcn.0041069a
add esp, 4
xor edx, edx
mov dword [esp + 0x1048], 7
mov dword [esp + 0x1044], 0
mov word [esp + 0x1034], dx
cmp dword [esp + 0x1064], ebp
jb 0x40a511
mov eax, dword [esp + 0x1050]
push eax
call fcn.0041069a
add esp, 4
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x149c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1480]
xor ecx, esp
call fcn.0042e9e7
add esp, 0x1494
ret
xor edi, edi
cmp dword [esp + ecx*4 + 0x2c], edi
je 0x40a787
mov edx, dword [0x450c00]
mov esi, dword [0x450bf0]
mov edi, dword [str.nknown_]
mov ebx, dword [0x450bf8]
mov ebp, dword [0x450bfc]
push 0x1f4
lea eax, [esp + 0x12a4]
push 0
push eax
mov dword [esp + 0x1298], esi
mov dword [esp + 0x129c], edi
mov dword [esp + 0x12a0], ebx
mov dword [esp + 0x12a4], ebp
mov dword [esp + 0x12a8], edx
call fcn.00431760
mov ecx, dword [0x450c00]
add esp, 0xc
push 0x1f4
lea edx, [esp + 0x109c]
push 0
push edx
mov dword [esp + 0x1090], esi
mov dword [esp + 0x1094], edi
mov dword [esp + 0x1098], ebx
mov dword [esp + 0x109c], ebp
mov dword [esp + 0x10a0], ecx
call fcn.00431760
mov eax, dword [esp + 0x20]
mov eax, dword [esp + eax*4 + 0x38]
add esp, 0xc
push eax
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x40a646
lea ecx, [esp + 0x28]
push ecx
push 4
lea edx, [esp + 0x24]
push edx
push esi
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x40a646
mov ecx, dword [esp + 0x1c]
push 0x104
lea eax, [esp + 0x1290]
push eax
push ecx
push esi
call sub.PSAPI.DLL_GetModuleBaseNameW
mov eax, dword [esp + 0x1c]
push 0x104
lea edx, [esp + 0x1088]
push edx
push eax
push esi
call sub.PSAPI.DLL_GetModuleFileNameExW
xor ecx, ecx
mov dword [esp + 0x1080], 7
mov dword [esp + 0x107c], 0
mov word [esp + 0x106c], cx
mov byte [esp + 0x14a4], 2
cmp dword [esp + 0x1060], ecx
je 0x40a708
lea edx, [esp + 0x128c]
push edx
push 0x44e3c0
lea ecx, [esp + 0x1070]
call fcn.00410090
add esp, 8
lea ebx, [esp + 0x1068]
call fcn.00410020
mov eax, dword [esp + 0x1050]
mov ebp, 8
cmp dword [esp + 0x1064], ebp
jae 0x40a6bf
lea eax, [esp + 0x1050]
mov edi, dword [esp + 0x1060]
push eax
mov eax, dword [esp + 0x1080]
lea ecx, [esp + 0x106c]
call fcn.0040ad60
test eax, eax
jne 0x40a70d
mov dword [esp + 0x18], 1
cmp dword [esp + 0x1080], ebp
jb 0x40a4bf
mov eax, dword [esp + 0x106c]
push eax
call fcn.0041069a
add esp, 4
jmp 0x40a4bf
mov ebp, 8
cmp dword [esp + 0x1044], 0
je 0x40a75b
lea eax, [esp + 0x1084]
push eax
push 0x44e3c0
lea ecx, [esp + 0x1070]
call fcn.00410090
lea ebx, [esp + 0x1070]
call fcn.00410020
mov ecx, ebx
push ecx
lea ecx, [esp + 0x103c]
call fcn.00410270
add esp, 0xc
cmp eax, 0xffffffff
je 0x40a75b
mov dword [esp + 0x18], 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [esp + 0x14a4], 1
cmp dword [esp + 0x1080], ebp
jb 0x40a783
mov edx, dword [esp + 0x106c]
push edx
call fcn.0041069a
add esp, 4
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
inc ecx
mov dword [esp + 0x14], ecx
cmp ecx, eax
jb 0x40a540
jmp 0x40a4ba