Function at 0x40a800
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, 0x1728
call fcn.0040cd60
push ebx
push ebp
push esi
push edi
mov edi, 0x41b85c
or ecx, 0xffffffff
xor eax, eax
mov ebx, dword [esp + 0x173c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x34], 0x94
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x40a85e
pop edi
pop esi
pop ebp
mov eax, 0x25e
pop ebx
add esp, 0x1728
ret
mov eax, dword [esp + 0x44]
cmp eax, 2
je 0x40a880
cmp eax, 1
je 0x40aaae
pop edi
pop esi
pop ebp
mov eax, 0x25f
pop ebx
add esp, 0x1728
ret
push str.PSAPI.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
mov dword [esp + 0x18], esi
jne 0x40a8a5
pop edi
pop esi
pop ebp
mov eax, 0x25d
pop ebx
add esp, 0x1728
ret
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.EnumProcesses
push esi
call ebp
push str.EnumProcessModules
push esi
mov edi, eax
call ebp
push str.GetModuleBaseNameA
push esi
mov dword [esp + 0x18], eax
call ebp
test edi, edi
mov dword [esp + 0x1c], eax
je 0x40aa97
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x40aa97
test eax, eax
je 0x40aa97
lea edx, [esp + 0x20]
lea eax, [esp + 0x798]
push edx
push 0x3e8
push eax
call edi
test eax, eax
jne 0x40a918
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebp
mov eax, 0x2bd
pop ebx
add esp, 0x1728
ret
mov eax, dword [esp + 0x20]
shr eax, 2
je 0x40aa83
lea ebp, [esp + 0x798]
mov dword [esp + 0x14], eax
push 0x1f3
lea ecx, [esp + 0x5a8]
push str.Unknown
push ecx
call fcn.0040c880
mov edx, dword [ebp]
add esp, 0xc
push edx
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x40a98d
lea eax, [esp + 0x20]
lea ecx, [esp + 0x28]
push eax
push 4
push ecx
push esi
call dword [esp + 0x20]
test eax, eax
je 0x40a98d
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x5a4]
push 0x104
push edx
push eax
push esi
call dword [esp + 0x2c]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x5a4]
push ecx
call fcn.0040a500
add esp, 4
test al, al
je 0x40a9bb
mov edx, dword [ebp]
lea eax, [esp + 0x1f0]
push edx
push str._PID_ld__
push eax
jmp 0x40a9cc
mov ecx, dword [ebp]
lea edx, [esp + 0x1f0]
push ecx
push str._PID_ld_
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [esp + 0x5a4]
push 0x12c
push eax
push ebx
call fcn.0040cc30
or ecx, 0xffffffff
mov edi, 0x417cf4
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
add ebp, 4
mov edx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x1f0]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x417aa0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x14]
mov ecx, edx
and ecx, 3
dec eax
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 0x14], eax
jne 0x40a930
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [esp + 0x44], 1
jne 0x40ad0a
jmp 0x40aab4
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebp
mov eax, 0x2bc
pop ebx
add esp, 0x1728
ret
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.Kernel32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
mov dword [esp + 0x18], esi
jne 0x40aad9
pop edi
pop esi
pop ebp
mov eax, 0x2be
pop ebx
add esp, 0x1728
ret
push str.CreateToolhelp32Snapshot
push esi
call ebp
push str.Process32First
push esi
mov dword [esp + 0x18], eax
call ebp
push str.Process32Next
push esi
mov dword [esp + 0x1c], eax
call ebp
mov edi, eax
push str.Module32First
push esi
mov dword [esp + 0x34], edi
call ebp
push str.Module32Next
push esi
mov dword [esp + 0x24], eax
call ebp
test edi, edi
mov dword [esp + 0x30], eax
je 0x40acf3
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x40acf3
test eax, eax
je 0x40acf3
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x40acf3
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40acf3
push 0
push 2
call eax
mov edi, eax
cmp edi, 0xffffffff
mov dword [esp + 0x24], edi
jne 0x40ab73
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebp
mov eax, 0x2c0
pop ebx
add esp, 0x1728
ret
lea eax, [esp + 0xc8]
mov dword [esp + 0xc8], 0x128
push eax
push edi
call dword [esp + 0x1c]
test eax, eax
je 0x40acc8
mov ecx, dword [esp + 0xd0]
push ecx
push 8
call dword [esp + 0x18]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x40acd5
lea edx, [esp + 0x380]
mov dword [esp + 0x380], 0x224
push edx
push ebp
call dword [esp + 0x24]
test eax, eax
je 0x40aca1
mov eax, dword [esp + 0xd0]
lea ecx, [esp + 0x1f0]
push eax
push str._PID_ld_
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
lea edx, [esp + 0x3ac]
push 0x12c
push edx
push ebx
call fcn.0040cc30
or ecx, 0xffffffff
mov edi, 0x417cf4
xor eax, eax
add esp, 0x18
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x380], 0x224
mov edx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x1f0]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x417aa0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x380]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push ebp
call dword [esp + 0x38]
test eax, eax
jne 0x40abcc
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x18]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0xc8]
mov dword [esp + 0xc8], 0x128
push ecx
push edi
call dword [esp + 0x34]
test eax, eax
jne 0x40ab93
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x18]
jmp 0x40ad0a
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebp
mov eax, 0x2c0
pop ebx
add esp, 0x1728
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebp
mov eax, 0x2bf
pop ebx
add esp, 0x1728
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebp
mov eax, 0x25b
pop ebx
add esp, 0x1728
ret