Function at 0x41c6f0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x46c80c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3a0
mov eax, dword [0x480630]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
xor eax, ebp
mov dword [esp + 0x398], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [esp + 0x3c], eax
mov eax, dword [ebp + 0x14]
push esi
push edi
mov dword [esp + 0x40], ecx
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], eax
call fcn.004154a0
push str.Psapi.dll
mov dword [esp + 0x34], eax
mov dword [esp + 0x3c], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x34], ebx
je 0x41cae0
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 [esp + 0x2c], eax
call esi
xor esi, esi
cmp edi, esi
mov dword [esp + 0x3c], eax
je 0x41cad4
cmp dword [esp + 0x24], esi
je 0x41cad4
cmp eax, esi
je 0x41cad4
xor eax, eax
mov dword [esp + 0x18], esi
jmp 0x41c7b8
mov eax, dword [esp + 0x20]
test eax, eax
je 0x41c7c5
push eax
call fcn.00457c3f
add esp, 4
add esi, 0x400
push esi
mov dword [esp + 0x1c], 0
call fcn.00456452
mov ebx, eax
add esp, 4
test ebx, ebx
mov dword [esp + 0x20], ebx
je 0x41c7f9
lea ecx, [esp + 0x18]
push ecx
push esi
push ebx
call edi
test eax, eax
je 0x41c7f9
cmp esi, dword [esp + 0x18]
jbe 0x41c7b4
test dword [esp + 0x18], 0xfffffffc
mov dword [esp + 0x2c], 0
jbe 0x41cac3
mov dword [esp + 0x1c], ebx
mov edx, dword [ebx]
push edx
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
xor esi, esi
cmp ebx, esi
je 0x41ca9c
xor edi, edi
mov dword [esp + 0x28], esi
test edi, edi
je 0x41c842
push edi
call fcn.00457c3f
add esp, 4
add esi, 0x400
push esi
mov dword [esp + 0x2c], 0
call fcn.00456452
mov edi, eax
add esp, 4
test edi, edi
je 0x41c875
lea eax, [esp + 0x28]
push eax
push esi
push edi
push ebx
call dword [esp + 0x34]
test eax, eax
je 0x41c875
cmp esi, dword [esp + 0x28]
jbe 0x41c835
mov eax, dword [0x4800d8]
mov dword [esp + 0x14], eax
mov ecx, dword [eax - 8]
test ecx, ecx
mov dword [esp + 0x3b4], 0
je 0x41c8dc
mov edx, dword [eax - 0xc]
test edx, edx
lea ecx, [eax - 0xc]
jl 0x41c8ce
mov edx, dword [0x4800dc]
add eax, 0xfffffff4
cmp eax, edx
je 0x41c8dc
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x41c8c2
mov eax, dword [esp + 0x14]
add eax, 0xfffffff4
push eax
call fcn.00457c3f
add esp, 4
mov ecx, dword [0x4800d8]
mov dword [esp + 0x14], ecx
jmp 0x41c8dc
push 0x4708d8
lea ecx, [esp + 0x18]
call fcn.00404d30
mov eax, dword [esp + 0x28]
xor esi, esi
test eax, 0xfffffffc
jbe 0x41ca4e
lea ecx, [ecx]
mov edx, dword [0x4800d8]
mov dword [esp + 0x10], edx
push 0x104
lea ecx, [esp + 0x14]
mov byte [esp + 0x3b8], 1
call fcn.004042d0
test eax, eax
je 0x41c92e
mov eax, dword [esp + 0x10]
mov dword [eax - 8], 0x104
mov ecx, dword [esp + 0x10]
mov byte [ecx + 0x104], 0
mov eax, dword [esp + 0x10]
mov edx, dword [edi + esi*4]
push 0x104
push eax
push edx
push ebx
call dword [esp + 0x4c]
test eax, eax
je 0x41c9a8
lea ecx, [esp + 0x10]
call fcn.00404410
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test esi, esi
mov ecx, dword [esp + 0x10]
mov dword [ecx - 8], eax
mov edx, dword [esp + 0x10]
mov byte [eax + edx], 0
jne 0x41c991
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
call fcn.00404cd0
mov edx, dword [esp + 0x40]
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x34]
push edx
call fcn.00409880
test eax, eax
jne 0x41ca45
mov ecx, dword [esp + 0x44]
lea eax, [esp + 0x10]
push eax
push ecx
mov ecx, dword [esp + 0x38]
call fcn.00409880
test eax, eax
jne 0x41c9e9
mov eax, dword [esp + 0x10]
mov ecx, dword [0x4800dc]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x41c9d7
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x41c9d7
mov eax, dword [esp + 0x10]
add eax, 0xfffffff4
push eax
call fcn.00457c3f
add esp, 4
mov eax, dword [esp + 0x28]
inc esi
shr eax, 2
cmp esi, eax
jb 0x41c8f0
jmp 0x41ca4e
mov esi, dword [esp + 0x48]
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x34]
push esi
mov dword [esp + 0x40], 1
call fcn.00409880
test eax, eax
jne 0x41ca45
mov ecx, dword [esp + 0x30]
lea edx, [esp + 0x14]
push edx
push esi
call fcn.00412870
mov ecx, dword [esp + 0x4c]
test ecx, ecx
je 0x41ca29
mov eax, dword [esp + 0x1c]
push eax
call fcn.0041c6b0
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
push edx
push str._s_Loaded_By__s
push 0x80
call fcn.004047f0
add esp, 0x10
lea ecx, [esp + 0x10]
call fcn.004309a0
test edi, edi
je 0x41ca5b
push edi
call fcn.00457c3f
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
mov edx, dword [0x4800dc]
lea ecx, [eax - 0xc]
cmp ecx, edx
mov dword [esp + 0x3b4], 0xffffffff
je 0x41ca9c
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x41ca9c
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.00457c3f
add esp, 4
mov eax, dword [esp + 0x2c]
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
inc eax
add ebx, 4
shr ecx, 2
cmp eax, ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x1c], ebx
jb 0x41c813
mov ebx, dword [esp + 0x20]
test ebx, ebx
je 0x41cad0
push ebx
call fcn.00457c3f
add esp, 4
mov ebx, dword [esp + 0x34]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x41cd63
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
test esi, esi
je 0x41cd63
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CreateToolhelp32Snapshot
push esi
call edi
push str.Process32First
push esi
mov dword [esp + 0x3c], eax
call edi
push str.Process32Next
push esi
mov ebx, eax
call edi
push str.Module32First
push esi
mov dword [esp + 0x28], eax
call edi
push str.Module32Next
push esi
mov dword [esp + 0x34], eax
call edi
mov esi, dword [esp + 0x34]
test esi, esi
mov dword [esp + 0x24], eax
je 0x41cd63
test ebx, ebx
je 0x41cd63
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x41cd63
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x41cd63
test eax, eax
je 0x41cd63
push 0
push 2
call esi
mov edx, eax
test edx, edx
mov dword [esp + 0x18], edx
je 0x41cd63
xor eax, eax
mov ecx, 0x49
lea edi, [esp + 0x54]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x50]
push eax
push edx
mov dword [esp + 0x58], 0x128
call ebx
test eax, eax
je 0x41cd58
jmp 0x41cba8
mov esi, dword [esp + 0x34]
mov ecx, dword [esp + 0x58]
push ecx
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edx, dword [esp + 0x58]
push edx
mov ebx, eax
push 8
mov dword [esp + 0x44], ebx
call esi
test ebx, ebx
mov esi, eax
je 0x41cd37
test esi, esi
je 0x41cd30
xor eax, eax
mov ecx, 0x88
lea edi, [esp + 0x17c]
rep stosd dword es:[edi], eax
mov eax, dword [0x4800d8]
mov dword [esp + 0x178], 0x224
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x178]
push ecx
push esi
mov dword [esp + 0x3bc], 2
call dword [esp + 0x34]
test eax, eax
je 0x41cd1c
lea edx, [esp + 0x298]
push edx
lea ecx, [esp + 0x14]
call fcn.00404d30
mov ecx, dword [esp + 0x40]
mov edi, dword [esp + 0x30]
lea eax, [esp + 0x10]
push eax
push ecx
mov ecx, edi
call fcn.00409880
test eax, eax
jne 0x41cd1c
lea edx, [esp + 0x178]
push edx
push esi
call dword [esp + 0x2c]
test eax, eax
je 0x41cd1c
lea eax, [esp + 0x298]
push eax
lea ecx, [esp + 0x20]
call fcn.00405970
mov edx, dword [esp + 0x44]
lea ecx, [esp + 0x1c]
push ecx
push edx
mov ecx, edi
mov byte [esp + 0x3bc], 3
call fcn.00409880
test eax, eax
jne 0x41ccb7
lea ecx, [esp + 0x1c]
mov byte [esp + 0x3b4], 2
call fcn.004309a0
lea eax, [esp + 0x178]
push eax
push esi
call dword [esp + 0x2c]
test eax, eax
jne 0x41cc62
jmp 0x41cd1c
mov ebx, dword [esp + 0x48]
lea ecx, [esp + 0x10]
push ecx
push ebx
mov ecx, edi
mov dword [esp + 0x40], 1
call fcn.00409880
test eax, eax
jne 0x41cd0f
mov ecx, dword [esp + 0x4c]
test ecx, ecx
je 0x41cce6
lea edx, [esp + 0x58]
push edx
call fcn.0041c6b0
lea eax, [esp + 0x10]
push eax
push ebx
mov ecx, edi
call fcn.00412870
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
push ecx
push edx
push str._s_Loaded_By__s
push 0x80
call fcn.004047f0
add esp, 0x10
lea ecx, [esp + 0x1c]
call fcn.004309a0
mov ebx, dword [esp + 0x3c]
lea ecx, [esp + 0x10]
mov dword [esp + 0x3b4], 0xffffffff
call fcn.004309a0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x41cd42
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x50]
push eax
push ecx
call dword [esp + 0x28]
test eax, eax
jne 0x41cba4
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x3ac]
mov eax, dword [esp + 0x38]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x3a4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004570de
mov esp, ebp
pop ebp
ret