Function at 0x5fee0a80
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x810
mov ecx, dword [0x5feeda68]
test ecx, ecx
push ebx
push esi
push edi
mov eax, ecx
je 0x5fee0ad3
mov edx, dword [eax + 4]
mov esi, dword [ebp + 8]
cmp edx, esi
ja 0x5fee0aad
sub esi, edx
cmp esi, dword [eax + 8]
jbe 0x5fee0d5c
mov eax, dword [eax + 0x1c]
test eax, eax
jne 0x5fee0a98
mov esi, dword [ecx + 0x1c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test esi, esi
mov ecx, esi
mov dword [0x5feeda68], ecx
jne 0x5fee0ab4
mov eax, dword [0x5feeda2c]
test eax, eax
jne 0x5fee0bc7
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.KERNEL32.DLL
call edi
push str.IMAGEHLP.DLL
mov dword [0x5feeda30], eax
call edi
mov ecx, dword [0x5feeda30]
test ecx, ecx
mov dword [0x5feeda2c], eax
je 0x5fee0d5a
test eax, eax
je 0x5fee0d5a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.ImageNtHeader
push eax
call esi
test eax, eax
mov dword [0x5feeda50], eax
je 0x5fee0d5a
mov eax, dword [0x5feeda30]
push str.CreateToolhelp32Snapshot
push eax
call esi
test eax, eax
mov dword [0x5feeda5c], eax
jne 0x5fee0b92
push str.PSAPI.DLL
call edi
test eax, eax
mov dword [0x5feeda28], eax
je 0x5fee0d5a
push str.EnumProcessModules
push eax
call esi
test eax, eax
mov dword [0x5feeda58], eax
je 0x5fee0d5a
mov ecx, dword [0x5feeda28]
push str.GetModuleInformation
push ecx
call esi
test eax, eax
mov dword [0x5feeda54], eax
jne 0x5fee0bc7
lea esp, [ebp - 0x81c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [0x5feeda30]
push str.Module32First
push edx
call esi
test eax, eax
mov dword [0x5feeda60], eax
je 0x5fee0d5a
mov eax, dword [0x5feeda30]
push str.Module32Next
push eax
call esi
test eax, eax
mov dword [0x5feeda64], eax
je 0x5fee0d5a
mov eax, dword [0x5feeda5c]
test eax, eax
mov ebx, dword [sym.imp.KERNEL32.dll_HeapAlloc]
jne 0x5fee0c7e
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp - 4]
push ecx
push 0x800
lea edx, [ebp - 0x810]
mov edi, eax
push edx
push edi
call dword [0x5feeda58]
test eax, eax
je 0x5fee0d5a
mov eax, dword [ebp - 4]
shr eax, 2
xor esi, esi
test eax, eax
mov dword [ebp - 4], eax
jbe 0x5fee0cfb
mov ecx, dword [ebp + esi*4 - 0x810]
push 0xc
lea eax, [ebp - 0x10]
push eax
push ecx
push edi
call dword [0x5feeda54]
test eax, eax
je 0x5fee0d5a
push 0x20
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebx
test eax, eax
je 0x5fee0d13
mov edx, dword [ebp + esi*4 - 0x810]
mov dword [eax + 0xc], edx
mov ecx, dword [ebp - 0x10]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 0xc]
mov ecx, dword [0x5feeda68]
mov dword [eax + 8], edx
mov dword [eax + 0x18], 0
mov dword [eax + 0x1c], ecx
mov ecx, dword [ebp - 4]
inc esi
cmp esi, ecx
mov dword [0x5feeda68], eax
jb 0x5fee0c14
jmp 0x5fee0d00
push 0
push 8
call eax
mov edi, eax
cmp edi, 0xffffffff
je 0x5fee0d5a
mov eax, 0x224
call fcn.5fee0f80
mov esi, esp
push esi
push edi
mov dword [esi], 0x224
call dword [0x5feeda60]
test eax, eax
je 0x5fee0cf4
lea ecx, [ecx]
push 0x20
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebx
test eax, eax
je 0x5fee0d0c
mov edx, dword [esi + 0x1c]
mov dword [eax + 0xc], edx
mov ecx, dword [esi + 0x14]
mov dword [eax + 4], ecx
mov edx, dword [esi + 0x18]
mov ecx, dword [0x5feeda68]
push esi
push edi
mov dword [eax + 8], edx
mov dword [eax + 0x18], 0
mov dword [eax + 0x1c], ecx
mov dword [0x5feeda68], eax
call dword [0x5feeda64]
test eax, eax
jne 0x5fee0cb0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x5feeda68]
test eax, eax
mov esi, eax
je 0x5fee0e06
jmp 0x5fee0d70
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x5feeda68]
test eax, eax
je 0x5fee0d5a
lea esp, [esp]
mov ecx, dword [eax + 0x18]
test ecx, ecx
mov esi, dword [eax + 0x1c]
je 0x5fee0d3f
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [0x5feeda68]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test esi, esi
mov eax, esi
mov dword [0x5feeda68], eax
jne 0x5fee0d20
xor eax, eax
lea esp, [ebp - 0x81c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [sym.imp.KERNEL32.dll_HeapAlloc]
nop
mov edx, dword [esi + 4]
push edx
call dword [0x5feeda50]
mov dword [esi + 0x10], eax
movzx ecx, word [eax + 0x14]
lea edx, [ecx + eax + 0x18]
mov eax, 0x204
mov dword [esi + 0x14], edx
call fcn.5fee0f80
mov edi, esp
push 0x200
mov byte [edi + 0x200], 0
mov eax, dword [esi + 0xc]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x5fee0d13
mov cl, byte [edi]
xor eax, eax
test cl, cl
je 0x5fee0dc9
jmp 0x5fee0dc0
mov cl, byte [eax + edi + 1]
inc eax
test cl, cl
jne 0x5fee0dc0
inc eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebx
test eax, eax
mov dword [esi + 0x18], eax
je 0x5fee0d13
xor eax, eax
mov edx, dword [esi + 0x18]
mov bl, byte [eax + edi]
lea ecx, [eax + edi]
mov byte [eax + edx], bl
mov dl, byte [ecx]
inc eax
test dl, dl
jne 0x5fee0de3
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x5fee0d69
mov eax, dword [0x5feeda68]
test eax, eax
mov ecx, eax
je 0x5fee0d5a
mov edx, dword [ecx + 4]
mov esi, dword [ebp + 8]
cmp edx, esi
ja 0x5fee0e21
sub esi, edx
cmp esi, dword [ecx + 8]
jbe 0x5fee0e2d
mov ecx, dword [ecx + 0x1c]
test ecx, ecx
jne 0x5fee0e10
jmp 0x5fee0d18
mov eax, ecx
lea esp, [ebp - 0x81c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret