Function at 0x40b080
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, 0x1728
call fcn.0040d880
push ebx
push ebp
push esi
push edi
mov edi, 0x41b8cc
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 0x40b0de
pop edi
pop esi
pop ebp
mov eax, 0x25e
pop ebx
add esp, 0x1728
ret
mov eax, dword [esp + 0x44]
cmp eax, 2
je 0x40b100
cmp eax, 1
je 0x40b32e
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 0x40b125
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 0x40b317
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x40b317
test eax, eax
je 0x40b317
lea edx, [esp + 0x20]
lea eax, [esp + 0x798]
push edx
push 0x3e8
push eax
call edi
test eax, eax
jne 0x40b198
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 0x40b303
lea ebp, [esp + 0x798]
mov dword [esp + 0x14], eax
push 0x1f3
lea ecx, [esp + 0x5a8]
push str.Unknown
push ecx
call fcn.0040d1a0
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 0x40b20d
lea eax, [esp + 0x20]
lea ecx, [esp + 0x28]
push eax
push 4
push ecx
push esi
call dword [esp + 0x20]
test eax, eax
je 0x40b20d
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.0040ad80
add esp, 4
test al, al
je 0x40b23b
mov edx, dword [ebp]
lea eax, [esp + 0x1f0]
push edx
push str._PID_ld__
push eax
jmp 0x40b24c
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.0040d750
or ecx, 0xffffffff
mov edi, 0x417d4c
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, 0x417aac
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 0x40b1b0
mov esi, dword [esp + 0x18]
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [esp + 0x44], 1
jne 0x40b58a
jmp 0x40b334
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 0x40b359
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 0x40b573
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x40b573
test eax, eax
je 0x40b573
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x40b573
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40b573
push 0
push 2
call eax
mov edi, eax
cmp edi, 0xffffffff
mov dword [esp + 0x24], edi
jne 0x40b3f3
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 0x40b548
mov ecx, dword [esp + 0xd0]
push ecx
push 8
call dword [esp + 0x18]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x40b555
lea edx, [esp + 0x380]
mov dword [esp + 0x380], 0x224
push edx
push ebp
call dword [esp + 0x24]
test eax, eax
je 0x40b521
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.0040d750
or ecx, 0xffffffff
mov edi, 0x417d4c
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, 0x417aac
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 0x40b44c
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x24]
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 0x40b413
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x18]
jmp 0x40b58a
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