Function at 0x615f10
Capabilities:
Check os version
Link many functions at runtime
Rebuild import table
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xd38
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 0xc]
push edi
test eax, eax
jne 0x6166bb
mov eax, dword [ebx + 8]
test eax, eax
je 0x616635
mov ecx, 0x25
xor eax, eax
lea edi, [esp + 0x34]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x34]
mov dword [esp + 0x34], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esp + 0x38]
cmp eax, 5
jae 0x615f65
mov dword [esp + 0x18], 0
jmp 0x615f7f
jne 0x615f77
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x18], 1
test eax, eax
je 0x615f7f
mov dword [esp + 0x18], 2
mov eax, dword [esp + 0xd4c]
test eax, eax
je 0x615fbb
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x615fa3
mov ecx, dword [ebx + 8]
mov edx, dword [ecx]
call dword [edx + 4]
add eax, 2
mov dword [esp + 0x10], eax
jmp 0x615fc7
mov ecx, dword [ebx + 8]
cmp eax, 1
jne 0x615fb3
mov eax, dword [ecx]
call dword [eax + 4]
inc eax
jmp 0x615fc3
mov edx, dword [ecx]
call dword [edx + 4]
inc eax
jmp 0x615fc3
mov ecx, dword [ebx + 8]
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [esp + 0x10], eax
mov ecx, dword [ebx + 8]
lea edx, [eax + eax*2]
mov esi, 0x617830
lea edi, [eax + edx*4]
mov eax, dword [ecx]
sub esi, 0x616de0
shl edi, 3
mov dword [esp + 0x1c], esi
mov dword [esp + 0x14], edi
call dword [eax]
add eax, edi
lea ebp, [eax + esi + 0xc9]
push ebp
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
add esp, 4
test edi, edi
mov dword [ebx + 0xc], edi
je 0x616635
mov ecx, ebp
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebx + 0xc]
mov dword [eax], 0x7274444b
mov ecx, dword [ebx + 0xc]
mov eax, dword [esp + 0xd4c]
mov dword [ecx + 8], ebp
mov edx, dword [ebx + 0xc]
mov dword [edx + 0x10], eax
mov ecx, dword [ebx + 0xc]
mov edx, dword [esp + 0x18]
mov dword [ecx + 0x14], edx
mov eax, dword [ebx + 0xc]
mov dword [eax + 0x20], 0xb4
mov ecx, dword [ebx + 0xc]
xor eax, eax
mov dword [ecx + 0x24], esi
mov edx, dword [ebx + 0xc]
mov ecx, 0x617270
mov dword [edx + 0x18], eax
mov edx, dword [ebx + 0xc]
sub ecx, 0x616de0
add ecx, 0xb4
mov dword [edx + 0x28], ecx
mov edx, dword [ebx + 0xc]
mov ecx, 0x616f40
sub ecx, 0x616de0
add ecx, 0xb4
mov dword [edx + 0x2c], ecx
mov ecx, dword [ebx + 4]
cmp ecx, eax
je 0x6160b8
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
push str.CreateProcessInternalW
push edi
call ebp
mov ecx, dword [ebx + 0xc]
push edi
mov dword [ecx + 0x68], eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x6160c4
mov edx, dword [ebx + 0xc]
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [edx + 0x68], eax
mov eax, dword [ebx + 0xc]
mov ecx, 0x616e90
sub ecx, 0x616de0
mov dword [eax + 0x30], 0xb4
mov edx, dword [ebx + 0xc]
add ecx, 0xb4
mov eax, 0x617000
mov dword [edx + 0x34], ecx
mov ecx, dword [ebx + 0xc]
sub eax, 0x616de0
mov edx, 0x6175d0
add eax, 0xb4
sub edx, 0x616de0
mov dword [ecx + 0x38], eax
mov eax, dword [ebx + 0xc]
add edx, 0xb4
mov ecx, fcn.00617680
mov dword [eax + 0x3c], edx
mov edx, dword [ebx + 0xc]
sub ecx, 0x616de0
mov eax, 0x6177d0
add ecx, 0xb4
sub eax, 0x616de0
mov dword [edx + 0x40], ecx
mov ecx, dword [ebx + 0xc]
add eax, 0xb4
mov edx, 0x6176d0
mov dword [ecx + 0x44], eax
mov eax, dword [ebx + 0xc]
sub edx, 0x616de0
mov ecx, 0x6177a0
add edx, 0xb4
sub ecx, 0x616de0
mov dword [eax + 0x48], edx
mov edx, dword [ebx + 0xc]
add ecx, 0xb4
mov dword [edx + 0x4c], ecx
mov eax, dword [ebx + 0xc]
mov ecx, dword [esp + 0x10]
lea edx, [esi + 0xb7]
mov dword [eax + 0xc], ecx
mov eax, dword [ebx + 0xc]
and edx, 0xfffffffc
mov dword [eax + 0x50], edx
mov eax, dword [esp + 0x14]
mov edx, dword [ebx + 0xc]
lea ecx, [eax + esi + 0xb7]
lea eax, [eax + esi + 0xc3]
and ecx, 0xfffffffc
and al, 0xfc
mov dword [edx + 0x54], ecx
mov ecx, dword [ebx + 0xc]
mov dword [ecx + 0x58], eax
mov ecx, dword [ebx + 8]
mov edx, dword [ecx]
call dword [edx]
mov ecx, dword [ebx + 0xc]
push str.kernel32.dll
mov dword [ecx + 0x5c], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x616635
push str.CreateProcessA
push esi
call ebp
mov edx, dword [ebx + 0xc]
push str.CreateProcessW
push esi
mov dword [edx + 0x60], eax
call ebp
mov ecx, dword [ebx + 0xc]
push str.IsBadReadPtr
push esi
mov dword [ecx + 0x64], eax
call ebp
mov edx, dword [ebx + 0xc]
push str.LoadLibraryA
push esi
mov dword [edx + 0x6c], eax
call ebp
mov ecx, dword [ebx + 0xc]
push str.GetProcAddress
push esi
mov dword [ecx + 0x70], eax
call ebp
mov edx, dword [ebx + 0xc]
push str.FreeLibrary
push esi
mov dword [edx + 0x74], eax
call ebp
mov ecx, dword [ebx + 0xc]
push str.VirtualProtect
push esi
mov dword [ecx + 0x78], eax
call ebp
mov edx, dword [ebx + 0xc]
push str.VirtualProtectEx
push esi
mov dword [edx + 0x7c], eax
call ebp
mov ecx, dword [ebx + 0xc]
push str.VirtualAllocEx
push esi
mov dword [ecx + 0x80], eax
call ebp
mov edx, dword [ebx + 0xc]
push str.VirtualFree
push esi
mov dword [edx + 0x84], eax
call ebp
mov ecx, dword [ebx + 0xc]
push str.VirtualFreeEx
push esi
mov dword [ecx + 0x88], eax
call ebp
mov edx, dword [ebx + 0xc]
push str.ResumeThread
push esi
mov dword [edx + 0x8c], eax
call ebp
mov ecx, dword [ebx + 0xc]
push str.SuspendThread
push esi
mov dword [ecx + 0x94], eax
call ebp
mov edx, dword [ebx + 0xc]
push str.GetThreadContext
push esi
mov dword [edx + 0x98], eax
call ebp
mov ecx, dword [ebx + 0xc]
push str.SetThreadContext
push esi
mov dword [ecx + 0x9c], eax
call ebp
mov edx, dword [ebx + 0xc]
push str.FlushInstructionCache
push esi
mov dword [edx + 0xa0], eax
call ebp
mov ecx, dword [ebx + 0xc]
push str.WriteProcessMemory
mov dword [ecx + 0xa4], eax
push esi
call ebp
mov edx, dword [ebx + 0xc]
push str.InterlockedIncrement
push esi
mov dword [edx + 0x90], eax
call ebp
mov ecx, dword [ebx + 0xc]
push str.InterlockedDecrement
push esi
mov dword [ecx + 0xa8], eax
call ebp
mov edx, dword [ebx + 0xc]
push str.Sleep
push esi
mov dword [edx + 0xac], eax
call ebp
mov ecx, dword [ebx + 0xc]
push esi
mov dword [ecx + 0xb0], eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [esp + 0x1c]
mov edi, dword [ebx + 0xc]
mov edx, ecx
mov esi, 0x616de0
add edi, 0xb4
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx + 8]
mov esi, dword [eax + 0x58]
mov edx, dword [ecx]
add esi, eax
push esi
mov esi, dword [eax + 0x54]
add esi, eax
push esi
call dword [edx + 8]
test eax, eax
mov eax, dword [ebx + 0xc]
je 0x616625
mov ecx, dword [eax + 0x54]
mov edx, dword [eax + 0x58]
add ecx, eax
mov edi, dword [eax + 0x50]
lea esi, [edx + eax]
add edi, eax
mov edx, dword [ecx]
mov dword [esp + 0x1c], esi
add edx, esi
mov esi, dword [eax + 0x58]
mov dword [esp + 0x10], edx
mov edx, dword [ecx + 8]
mov ecx, dword [ecx + 4]
add edx, esi
add ecx, esi
add edx, eax
add ecx, eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x1c]
push ecx
call dword [esp + 0x14]
test eax, eax
jne 0x61639c
mov edx, dword [ebx + 0xc]
push edx
jmp 0x616626
mov eax, dword [ebx + 0xc]
xor esi, esi
mov ecx, dword [eax + 0xc]
test ecx, ecx
jbe 0x6165a1
mov ecx, dword [esp + 0xd4c]
test ecx, ecx
je 0x616539
mov ecx, dword [esp + 0x18]
test ecx, ecx
jne 0x616463
test esi, esi
jne 0x6163dd
mov eax, dword [eax + 0x60]
mov dword [edi], eax
mov eax, dword [ebx + 0xc]
mov ecx, dword [eax + 0x30]
add ecx, eax
mov dword [edi + 4], ecx
jmp 0x616440
cmp esi, 1
jne 0x6163f5
mov edx, dword [eax + 0x64]
mov dword [edi + 0x68], edx
mov eax, dword [ebx + 0xc]
mov ecx, dword [eax + 0x34]
add ecx, eax
mov dword [edi + 0x6c], ecx
jmp 0x616440
lea edx, [esi + esi*2]
lea ecx, [esi + edx*4]
shl ecx, 3
mov dword [esp + 0x10], ecx
add ecx, edi
lea edx, [ecx + 4]
push edx
mov edx, dword [eax + 0x58]
push ecx
lea ecx, [esi - 2]
add edx, eax
push ecx
push edx
call dword [esp + 0x24]
mov eax, dword [ebx + 0xc]
mov ecx, dword [eax + 0x18]
test ecx, ecx
jne 0x616440
mov ecx, dword [esp + 0x10]
add ecx, edi
mov ecx, dword [ecx]
test ecx, ecx
je 0x616440
mov dword [eax + 0x18], ecx
mov eax, dword [ebx + 0xc]
mov ecx, dword [esp + 0x10]
sub ecx, eax
lea edx, [ecx + edi + 0x10]
mov dword [eax + 0x1c], edx
lea eax, [esi + esi*2]
lea ecx, [esi + eax*4]
mov edx, dword [edi + ecx*8 + 4]
lea eax, [edi + ecx*8]
push edx
mov dword [esp + 0x14], eax
call fcn.00614fd0
mov ecx, dword [esp + 0x10]
mov dword [ecx + 0x44], eax
jmp 0x616594
cmp ecx, 1
jne 0x6164e6
test esi, esi
jne 0x61647e
mov edx, dword [eax + 0x64]
mov dword [edi], edx
mov eax, dword [ebx + 0xc]
mov ecx, dword [eax + 0x34]
add ecx, eax
mov dword [edi + 4], ecx
jmp 0x6164c3
lea edx, [esi + esi*2]
lea ebp, [esi + edx*4]
shl ebp, 3
lea ecx, [edi + ebp]
lea edx, [ecx + 4]
push edx
mov edx, dword [eax + 0x58]
push ecx
lea ecx, [esi - 1]
add edx, eax
push ecx
push edx
call dword [esp + 0x24]
mov eax, dword [ebx + 0xc]
mov ecx, dword [eax + 0x18]
test ecx, ecx
jne 0x6164bd
mov ecx, dword [edi + ebp]
test ecx, ecx
je 0x6164bd
mov dword [eax + 0x18], ecx
mov eax, dword [ebx + 0xc]
sub ebp, eax
lea ecx, [edi + ebp + 0x10]
mov dword [eax + 0x1c], ecx
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea edx, [esi + esi*2]
lea eax, [esi + edx*4]
mov ecx, dword [edi + eax*8 + 4]
lea eax, [edi + eax*8]
push ecx
mov dword [esp + 0x14], eax
call fcn.00614fd0
mov edx, dword [esp + 0x10]
mov dword [edx + 0x44], eax
jmp 0x616594
test esi, esi
jne 0x616504
mov ecx, dword [eax + 0x68]
test ecx, ecx
je 0x61646c
mov dword [edi], ecx
mov eax, dword [ebx + 0xc]
mov ecx, dword [eax + 0x2c]
add ecx, eax
mov dword [edi + 4], ecx
jmp 0x6164c3
lea edx, [esi + esi*2]
lea ebp, [esi + edx*4]
shl ebp, 3
lea ecx, [edi + ebp]
lea edx, [ecx + 4]
push edx
mov edx, dword [eax + 0x58]
push ecx
lea ecx, [esi - 1]
add edx, eax
push ecx
push edx
call dword [esp + 0x24]
mov eax, dword [ebx + 0xc]
mov ecx, dword [eax + 0x18]
test ecx, ecx
jne 0x6164bd
mov ecx, dword [edi + ebp]
test ecx, ecx
je 0x6164bd
jmp 0x6164ae
lea ecx, [esi + esi*2]
lea ebp, [esi + ecx*4]
shl ebp, 3
lea ecx, [edi + ebp]
mov dword [esp + 0x10], ecx
lea edx, [ecx + 4]
push edx
mov edx, dword [eax + 0x58]
push ecx
add edx, eax
push esi
push edx
call dword [esp + 0x24]
mov eax, dword [esp + 0x10]
add eax, 4
mov ecx, dword [eax]
push ecx
call fcn.00614fd0
mov ecx, dword [esp + 0x10]
mov dword [ecx + 0x44], eax
mov eax, dword [ebx + 0xc]
mov edx, dword [eax + 0x18]
test edx, edx
jne 0x61658e
mov ecx, dword [ecx]
test ecx, ecx
je 0x61658e
mov dword [eax + 0x18], ecx
mov eax, dword [ebx + 0xc]
sub ebp, eax
lea edx, [edi + ebp + 0x10]
mov dword [eax + 0x1c], edx
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov eax, dword [ebx + 0xc]
inc esi
cmp esi, dword [eax + 0xc]
jb 0x6163ac
mov eax, dword [ebx + 0xc]
mov ecx, dword [eax + 0x58]
add ecx, eax
push ecx
call dword [esp + 0x24]
test eax, eax
jne 0x6165b8
mov edx, dword [ebx + 0xc]
push edx
jmp 0x616626
mov eax, dword [ebx + 0xc]
push 1
mov ecx, dword [eax + 0x18]
mov dword [esp + 0x28], ecx
mov edx, dword [eax + 0x1c]
mov dword [esp + 0x2c], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x30], ecx
mov edx, dword [eax + 0x6c]
lea eax, [esp + 0x28]
mov dword [esp + 0x34], edx
push eax
call fcn.00617680
mov ecx, dword [ebx + 0xc]
xor esi, esi
mov eax, dword [ecx + 0xc]
test eax, eax
jbe 0x616607
mov edx, dword [edi]
lea eax, [edi + 0x48]
push edx
push eax
call fcn.006154e0
mov ecx, dword [ebx + 0xc]
inc esi
add edi, 0x68
cmp esi, dword [ecx + 0xc]
jb 0x6165ef
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx + 8]
mov esi, dword [eax + 0x58]
mov edx, dword [ecx]
add esi, eax
push esi
mov esi, dword [eax + 0x54]
add esi, eax
push esi
call dword [edx + 8]
test eax, eax
jne 0x616644
mov eax, dword [ebx + 0xc]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [ebx + 0xc], 0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xd38
ret 4
mov eax, dword [esp + 0xd4c]
test eax, eax
je 0x6166bb
push str.psapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x6166bb
push str.EnumProcesses
push edi
call ebp
test eax, eax
je 0x6166b4
lea ecx, [esp + 0x14]
lea edx, [esp + 0xc8]
push ecx
push 0xc80
push edx
call eax
test eax, eax
je 0x6166b4
mov eax, dword [esp + 0x14]
mov esi, 0
shr eax, 2
mov dword [esp + 0x14], eax
je 0x6166b4
lea ebp, [esp + 0xc8]
mov ecx, dword [ebp]
mov eax, dword [ebx]
push ecx
mov ecx, ebx
call dword [eax + 0xc]
mov eax, dword [esp + 0x14]
inc esi
add ebp, 4
cmp esi, eax
jb 0x61669d
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xd38
ret 4