Function at 0x6a920c
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x814
mov ecx, dword [0x14df674]
push ebx
xor ebx, ebx
cmp ecx, ebx
push esi
push edi
mov eax, ecx
je 0x6a9261
mov edx, dword [eax + 4]
cmp edx, dword [ebp + 8]
ja 0x6a923c
mov esi, dword [ebp + 8]
sub esi, edx
cmp esi, dword [eax + 8]
jbe 0x6a9552
mov eax, dword [eax + 0x1c]
cmp eax, ebx
jne 0x6a9226
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 [0x14df674], ecx
jne 0x6a9243
cmp dword [0x14df638], ebx
jne 0x6a9341
mov edi, dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
push str.KERNEL32.DLL
call edi
push str.IMAGEHLP.DLL
mov dword [0x14df63c], eax
call edi
cmp dword [0x14df63c], ebx
mov dword [0x14df638], eax
je 0x6a9550
cmp eax, ebx
je 0x6a9550
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.ImageNtHeader
push eax
call esi
cmp eax, ebx
mov dword [0x14df65c], eax
je 0x6a9550
push str.CreateToolhelp32Snapshot
push dword [0x14df63c]
call esi
cmp eax, ebx
mov dword [0x14df668], eax
jne 0x6a930d
push str.PSAPI.DLL
call edi
cmp eax, ebx
mov dword [0x14df634], eax
je 0x6a9550
push str.EnumProcessModules
push eax
call esi
cmp eax, ebx
mov dword [0x14df664], eax
je 0x6a9550
push str.GetModuleInformation
push dword [0x14df634]
call esi
mov dword [0x14df660], eax
jmp 0x6a9339
push str.Module32First
push dword [0x14df63c]
call esi
cmp eax, ebx
mov dword [0x14df66c], eax
je 0x6a9550
push str.Module32Next
push dword [0x14df63c]
call esi
mov dword [0x14df670], eax
cmp eax, ebx
je 0x6a9550
mov eax, dword [0x14df668]
cmp eax, ebx
jne 0x6a93e4
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 [0x14df664]
test eax, eax
je 0x6a9550
shr dword [ebp - 8], 2
mov edi, ebx
je 0x6a945c
push 0xc
lea eax, [ebp - 0x14]
push eax
lea esi, [ebp + edi*4 - 0x814]
push dword [esi]
push dword [ebp - 4]
call dword [0x14df660]
test eax, eax
je 0x6a9550
push 0x20
push ebx
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
cmp eax, ebx
je 0x6a950f
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 [0x14df674]
inc edi
mov dword [eax + 0x18], ebx
mov dword [eax + 0x1c], ecx
cmp edi, dword [ebp - 8]
mov dword [0x14df674], eax
jb 0x6a9382
jmp 0x6a945c
push ebx
push 8
call eax
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x6a9550
mov edi, 0x224
mov eax, edi
call fcn.00693490
mov esi, esp
mov dword [esi], edi
mov edi, dword [ebp - 4]
push esi
push edi
call dword [0x14df66c]
jmp 0x6a9451
push 0x20
push ebx
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
cmp eax, ebx
je 0x6a9467
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 [0x14df674]
push esi
push edi
mov dword [eax + 0x18], ebx
mov dword [eax + 0x1c], ecx
mov dword [0x14df674], eax
call dword [0x14df670]
test eax, eax
jne 0x6a9412
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov esi, dword [0x14df674]
jmp 0x6a94e9
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x6a950f
push dword [esi + 4]
call dword [0x14df65c]
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.00693490
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 0x6a950f
xor eax, eax
cmp byte [edi], bl
je 0x6a94bb
inc eax
cmp byte [eax + edi], bl
jne 0x6a94b5
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 0x6a950f
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 0x6a94d4
mov esi, dword [esi + 0x1c]
cmp esi, ebx
jne 0x6a9473
mov eax, dword [0x14df674]
cmp eax, ebx
je 0x6a9550
mov ecx, dword [eax + 4]
cmp ecx, dword [ebp + 8]
ja 0x6a9508
mov edx, dword [ebp + 8]
sub edx, ecx
cmp edx, dword [eax + 8]
jbe 0x6a9552
mov eax, dword [eax + 0x1c]
cmp eax, ebx
jne 0x6a94f6
mov eax, dword [0x14df674]
cmp eax, ebx
je 0x6a9550
mov esi, dword [eax + 0x1c]
mov eax, dword [eax + 0x18]
cmp eax, ebx
je 0x6a9531
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapFree]
push dword [0x14df674]
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 [0x14df674], eax
jne 0x6a9518
xor eax, eax
lea esp, [ebp - 0x820]
pop edi
pop esi
pop ebx
leave
ret