Function at 0x4476e9
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x814
mov ecx, dword [0x462cb8]
push ebx
xor ebx, ebx
cmp ecx, ebx
push esi
push edi
mov eax, ecx
je 0x44773e
mov edx, dword [eax + 4]
cmp edx, dword [ebp + 8]
ja 0x447719
mov esi, dword [ebp + 8]
sub esi, edx
cmp esi, dword [eax + 8]
jbe 0x447a2f
mov eax, dword [eax + 0x1c]
cmp eax, ebx
jne 0x447703
mov esi, dword [ecx + 0x1c]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp esi, ebx
mov ecx, esi
mov dword [0x462cb8], ecx
jne 0x447720
cmp dword [0x462c7c], ebx
jne 0x44781e
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.KERNEL32.DLL
call edi
push str.IMAGEHLP.DLL
mov dword [0x462c80], eax
call edi
cmp dword [0x462c80], ebx
mov dword [0x462c7c], eax
je 0x447a2d
cmp eax, ebx
je 0x447a2d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.ImageNtHeader
push eax
call esi
cmp eax, ebx
mov dword [0x462ca0], eax
je 0x447a2d
push str.CreateToolhelp32Snapshot
push dword [0x462c80]
call esi
cmp eax, ebx
mov dword [0x462cac], eax
jne 0x4477ea
push str.PSAPI.DLL
call edi
cmp eax, ebx
mov dword [0x462c78], eax
je 0x447a2d
push str.EnumProcessModules
push eax
call esi
cmp eax, ebx
mov dword [0x462ca8], eax
je 0x447a2d
push str.GetModuleInformation
push dword [0x462c78]
call esi
mov dword [0x462ca4], eax
jmp 0x447816
push str.Module32First
push dword [0x462c80]
call esi
cmp eax, ebx
mov dword [0x462cb0], eax
je 0x447a2d
push str.Module32Next
push dword [0x462c80]
call esi
mov dword [0x462cb4], eax
cmp eax, ebx
je 0x447a2d
mov eax, dword [0x462cac]
cmp eax, ebx
jne 0x4478c1
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp - 8]
push ecx
push 0x800
lea ecx, [ebp - 0x814]
push ecx
push eax
mov dword [ebp - 4], eax
call dword [0x462ca8]
test eax, eax
je 0x447a2d
shr dword [ebp - 8], 2
mov edi, ebx
je 0x447939
push 0xc
lea eax, [ebp - 0x14]
push eax
lea esi, [ebp + edi*4 - 0x814]
push dword [esi]
push dword [ebp - 4]
call dword [0x462ca4]
test eax, eax
je 0x447a2d
push 0x20
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, ebx
je 0x4479ec
mov ecx, dword [esi]
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp - 0x14]
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 0x10]
mov dword [eax + 8], ecx
mov ecx, dword [0x462cb8]
inc edi
mov dword [eax + 0x18], ebx
mov dword [eax + 0x1c], ecx
cmp edi, dword [ebp - 8]
mov dword [0x462cb8], eax
jb 0x44785f
jmp 0x447939
push ebx
push 8
call eax
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x447a2d
mov edi, 0x224
mov eax, edi
call fcn.0043c2b0
mov esi, esp
mov dword [esi], edi
mov edi, dword [ebp - 4]
push esi
push edi
call dword [0x462cb0]
jmp 0x44792e
push 0x20
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, ebx
je 0x447944
mov ecx, dword [esi + 0x1c]
mov dword [eax + 0xc], ecx
mov ecx, dword [esi + 0x14]
mov dword [eax + 4], ecx
mov ecx, dword [esi + 0x18]
mov dword [eax + 8], ecx
mov ecx, dword [0x462cb8]
push esi
push edi
mov dword [eax + 0x18], ebx
mov dword [eax + 0x1c], ecx
mov dword [0x462cb8], eax
call dword [0x462cb4]
test eax, eax
jne 0x4478ef
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [0x462cb8]
jmp 0x4479c6
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4479ec
push dword [esi + 4]
call dword [0x462ca0]
mov dword [esi + 0x10], eax
movzx ecx, word [eax + 0x14]
lea eax, [ecx + eax + 0x18]
mov dword [esi + 0x14], eax
mov eax, 0x204
call fcn.0043c2b0
mov edi, esp
push 0x200
push edi
mov byte [edi + 0x200], bl
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x4479ec
xor eax, eax
cmp byte [edi], bl
je 0x447998
inc eax
cmp byte [eax + edi], bl
jne 0x447992
inc eax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, ebx
mov dword [esi + 0x18], eax
je 0x4479ec
xor ecx, ecx
mov edx, dword [esi + 0x18]
lea eax, [ecx + edi]
mov bl, byte [eax]
mov byte [ecx + edx], bl
xor ebx, ebx
inc ecx
cmp byte [eax], bl
jne 0x4479b1
mov esi, dword [esi + 0x1c]
cmp esi, ebx
jne 0x447950
mov eax, dword [0x462cb8]
cmp eax, ebx
je 0x447a2d
mov ecx, dword [eax + 4]
cmp ecx, dword [ebp + 8]
ja 0x4479e5
mov edx, dword [ebp + 8]
sub edx, ecx
cmp edx, dword [eax + 8]
jbe 0x447a2f
mov eax, dword [eax + 0x1c]
cmp eax, ebx
jne 0x4479d3
mov eax, dword [0x462cb8]
cmp eax, ebx
je 0x447a2d
mov esi, dword [eax + 0x1c]
mov eax, dword [eax + 0x18]
cmp eax, ebx
je 0x447a0e
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [0x462cb8]
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp esi, ebx
mov eax, esi
mov dword [0x462cb8], eax
jne 0x4479f5
xor eax, eax
lea esp, [ebp - 0x820]
pop edi
pop esi
pop ebx
leave
ret