Function at 0x1001e220
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x36c4
call fcn.10033810
mov eax, dword [0x10042074]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x84]
mov dword [ebp - 0x36bc], 0
sub edx, ecx
nop dword [eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x1001e250
push ebx
push esi
lea eax, [ebp - 0x84]
push edi
push eax
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsupr]
lea eax, [ebp - 0x36b8]
push eax
lea eax, [ebp - 0x36b4]
push eax
call fcn.1001e100
mov eax, dword [ebp - 0x36b4]
add esp, 0xc
mov dword [ebp - 0x361c], 0x94
lea ecx, [eax + eax*4]
mov eax, dword [ebp - 0x36b8]
lea esi, [eax + ecx*2]
lea eax, [ebp - 0x361c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x1001e2bc
xor eax, eax
cmp dword [ebp - 0x360c], 2
sete al
cmp esi, 0x33
jae 0x1001e442
test eax, eax
je 0x1001e442
push str.PSAPI.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
test ebx, ebx
je 0x1001e58e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.EnumProcesses
push ebx
call esi
push str.EnumProcessModules
push ebx
mov edi, eax
call esi
push str.GetModuleFileNameExA
push ebx
mov dword [ebp - 0x36b4], eax
call esi
mov dword [ebp - 0x36b8], eax
test edi, edi
je 0x1001e43c
cmp dword [ebp - 0x36b4], 0
je 0x1001e43c
test eax, eax
je 0x1001e43c
lea eax, [ebp - 0x36c0]
push eax
push 0x2000
lea eax, [ebp - 0x3588]
push eax
call edi
xor edi, edi
cmp dword [ebp - 0x36c0], edi
jle 0x1001e41e
nop
mov esi, dword [ebp + edi*4 - 0x3588]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp eax, esi
je 0x1001e3df
push esi
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x1001e3df
lea eax, [ebp - 0x36c4]
push eax
push 0x1000
lea eax, [ebp - 0x1588]
push eax
push esi
call dword [ebp - 0x36b4]
test eax, eax
je 0x1001e3d8
push 0x104
lea eax, [ebp - 0x188]
push eax
push dword [ebp - 0x1588]
push esi
call dword [ebp - 0x36b8]
test eax, eax
je 0x1001e3d8
lea eax, [ebp - 0x188]
push eax
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsupr]
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x188]
push eax
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsstr]
add esp, 0xc
test eax, eax
jne 0x1001e40a
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [ebp - 0x36c0]
jl 0x1001e350
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x36bc]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100337f6
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + edi*4 - 0x3588]
push esi
mov dword [ebp - 0x36bc], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x36bc]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100337f6
mov esp, ebp
pop ebp
ret
push ebx
jmp 0x1001e588
push str.Kernel32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
mov dword [ebp - 0x36b4], ebx
test ebx, ebx
je 0x1001e58e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CreateToolhelp32Snapshot
push ebx
call esi
push str.Process32First
push ebx
mov edi, eax
call esi
push str.Process32Next
push dword [ebp - 0x36b4]
mov ebx, eax
call esi
mov dword [ebp - 0x36b8], eax
test eax, eax
je 0x1001e582
test ebx, ebx
je 0x1001e582
test edi, edi
je 0x1001e582
push 0
push 2
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x1001e55f
lea eax, [ebp - 0x36b0]
mov dword [ebp - 0x36b0], 0x128
push eax
push esi
call ebx
test eax, eax
je 0x1001e558
mov ebx, dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsrchr]
mov edi, dword [ebp - 0x36b8]
nop dword [eax + eax]
xor eax, eax
mov cl, byte [ebp + eax - 0x368c]
lea eax, [eax + 1]
mov byte [ebp + eax - 0x589], cl
test cl, cl
jne 0x1001e4e2
lea eax, [ebp - 0x588]
push 0x5c
push eax
call ebx
add esp, 8
test eax, eax
je 0x1001e521
lea ecx, [eax + 1]
lea edx, [ebp - 0x588]
sub edx, ecx
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x1001e514
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x588]
push eax
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsicmp]
add esp, 8
test eax, eax
je 0x1001e54c
lea eax, [ebp - 0x36b0]
push eax
push esi
call edi
test eax, eax
jne 0x1001e4e0
jmp 0x1001e558
mov eax, dword [ebp - 0x36a8]
mov dword [ebp - 0x36bc], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x36b4]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x36bc]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100337f6
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x36b4]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100337f6
mov esp, ebp
pop ebp
ret