Function at 0x40a4b0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x864
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
mov eax, dword [esi]
mov dword [ebp - 4], edi
cmp eax, edi
jne 0x40a62c
cmp dword [esi + 0x10], edi
je 0x40a620
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ebx, eax
mov dword [ebp - 0x10], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp ebx, edi
je 0x40a620
mov eax, dword [esi + 0x10]
push str.EnumProcessModules
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, eax
mov dword [ebp - 8], edi
mov ecx, 0x100
xor eax, eax
lea edi, [ebp - 0x864]
test edx, edx
rep stosd dword es:[edi], eax
je 0x40a620
lea ecx, [ebp - 8]
lea eax, [ebp - 0x864]
push ecx
push 0x400
push eax
push ebx
call edx
test eax, eax
mov dword [ebp - 4], eax
je 0x40a620
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], 0
shr eax, 2
mov dword [ebp - 8], eax
je 0x40a620
lea ebx, [ebp - 0x864]
mov ecx, 0x89
xor eax, eax
lea edi, [ebp - 0x240]
rep stosd dword es:[edi], eax
xor ecx, ecx
mov dword [ebp - 0x240], 0x224
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x238], eax
mov eax, dword [ebx]
lea edx, [ebp - 0x120]
push 0x104
push edx
push eax
mov dword [ebp - 0x224], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov eax, dword [esi + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetModuleBaseNameA
push eax
call edi
test eax, eax
je 0x40a5c9
mov edx, dword [ebx]
lea ecx, [ebp - 0x220]
push 0xff
push ecx
mov ecx, dword [ebp - 0x10]
push edx
push ecx
call eax
mov edx, dword [esi + 0x10]
push str.GetModuleInformation
push edx
call edi
test eax, eax
je 0x40a5fd
mov edx, dword [ebx]
lea ecx, [ebp - 0x1c]
push 0xc
push ecx
mov ecx, dword [ebp - 0x10]
push edx
push ecx
call eax
test eax, eax
je 0x40a5fd
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x22c], edx
mov dword [ebp - 0x228], eax
lea ecx, [ebp - 0x240]
push ecx
push esi
call dword [ebp + 8]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
add esp, 8
inc eax
add ebx, 4
cmp eax, ecx
mov dword [ebp - 0xc], eax
jb 0x40a554
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 8]
cmp eax, edi
je 0x40a6d1
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.Module32First
push eax
call edi
mov edx, dword [esi + 8]
push str.Module32Next
push edx
mov ebx, eax
call edi
test ebx, ebx
mov dword [ebp - 4], eax
je 0x40a6d1
test eax, eax
je 0x40a6d1
mov ecx, 0x89
xor eax, eax
lea edi, [ebp - 0x464]
rep stosd dword es:[edi], eax
mov ecx, dword [esi]
lea eax, [ebp - 0x464]
push eax
push ecx
mov dword [ebp - 0x464], 0x224
call ebx
mov ebx, dword [ebp + 8]
mov edi, eax
test edi, edi
je 0x40a698
lea edx, [ebp - 0x464]
push edx
push esi
call ebx
add esp, 8
test edi, edi
je 0x40a6c6
mov ecx, dword [esi]
lea eax, [ebp - 0x464]
push eax
push ecx
mov dword [ebp - 0x464], 0x224
call dword [ebp - 4]
test eax, eax
je 0x40a6c6
lea edx, [ebp - 0x464]
push edx
push esi
call ebx
add esp, 8
jmp 0x40a69c
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4