Function at 0x1001eed0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10058d91
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x10079214]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], 0
call fcn.10005540
mov ecx, eax
test ecx, ecx
je 0x1001f35a
mov eax, dword [ecx]
call dword [eax + 0xc]
mov esi, dword [ebp + 8]
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], 0
cmp dword [0x1007807c], 0
mov eax, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0x20], 1
je 0x1001efd1
push str.ntdll.dll
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
call eax
mov edi, eax
test edi, edi
je 0x1001efc2
push str.RtlGetNtVersionNumbers
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1001ef9d
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x18]
push ecx
call eax
movzx eax, word [ebp - 0x10]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], 1
push edi
call ebx
cmp dword [ebp - 0x14], 0
je 0x1001efc2
cmp dword [ebp - 0x18], 5
jne 0x1001efc2
mov eax, dword [0x1007a4a4]
mov ecx, 1
cmp dword [ebp - 0x1c], 1
cmove eax, ecx
mov dword [0x1007a4a4], eax
mov eax, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x1007807c], 0
cmp dword [0x1007a4a4], 0
je 0x1001efe6
push 2
push 0x1005f5d8
jmp 0x1001f33f
cmp dword [0x1007809c], 0
je 0x1001f077
push str.ntdll.dll
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x1c], 0
call eax
mov edi, eax
test edi, edi
je 0x1001f06d
push str.RtlGetNtVersionNumbers
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1001f048
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x18]
push ecx
call eax
movzx eax, word [ebp - 0x10]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x1c], 1
push edi
call ebx
cmp dword [ebp - 0x1c], 0
je 0x1001f06d
cmp dword [ebp - 0x18], 6
jne 0x1001f06d
mov eax, dword [0x1007a4fc]
mov ecx, 1
cmp dword [ebp - 0x14], 0
cmove eax, ecx
mov dword [0x1007a4fc], eax
mov dword [0x1007809c], 0
cmp dword [0x1007a4fc], 0
je 0x1001f08c
push 5
push str.vista
jmp 0x1001f33f
cmp dword [0x100780a0], 0
je 0x1001f121
push str.ntdll.dll
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x1c], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x1001f117
push str.RtlGetNtVersionNumbers
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1001f0f2
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x18]
push ecx
call eax
movzx eax, word [ebp - 0x10]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x1c], 1
push edi
call ebx
cmp dword [ebp - 0x1c], 0
je 0x1001f117
cmp dword [ebp - 0x18], 6
jne 0x1001f117
mov eax, dword [0x1007a500]
mov ecx, 1
cmp dword [ebp - 0x14], 1
cmove eax, ecx
mov dword [0x1007a500], eax
mov dword [0x100780a0], 0
cmp dword [0x1007a500], 0
je 0x1001f136
push 4
push str.win7
jmp 0x1001f33f
cmp dword [0x100780a4], 0
je 0x1001f1cb
push str.ntdll.dll
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x1c], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x1001f1c1
push str.RtlGetNtVersionNumbers
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1001f19c
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x18]
push ecx
call eax
movzx eax, word [ebp - 0x10]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x1c], 1
push edi
call ebx
cmp dword [ebp - 0x1c], 0
je 0x1001f1c1
cmp dword [ebp - 0x18], 6
jne 0x1001f1c1
mov eax, dword [0x1007a504]
mov ecx, 1
cmp dword [ebp - 0x14], 2
cmove eax, ecx
mov dword [0x1007a504], eax
mov dword [0x100780a4], 0
cmp dword [0x1007a504], 0
je 0x1001f1e0
push 4
push str.win8
jmp 0x1001f33f
cmp dword [0x100780a8], 0
je 0x1001f275
push str.ntdll.dll
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x1c], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x1001f26b
push str.RtlGetNtVersionNumbers
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1001f246
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x18]
push ecx
call eax
movzx eax, word [ebp - 0x10]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x1c], 1
push edi
call ebx
cmp dword [ebp - 0x1c], 0
je 0x1001f26b
cmp dword [ebp - 0x18], 6
jne 0x1001f26b
mov eax, dword [0x1007a508]
mov ecx, 1
cmp dword [ebp - 0x14], 3
cmove eax, ecx
mov dword [0x1007a508], eax
mov dword [0x100780a8], 0
cmp dword [0x1007a508], 0
je 0x1001f28a
push 6
push str.win8.1
jmp 0x1001f33f
cmp dword [0x100780ac], 0
je 0x1001f328
push str.ntdll.dll
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x1c], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x1001f31e
push str.RtlGetNtVersionNumbers
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1001f2f0
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x18]
push ecx
call eax
movzx eax, word [ebp - 0x10]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x1c], 1
push edi
call ebx
cmp dword [ebp - 0x1c], 0
je 0x1001f31e
mov eax, dword [ebp - 0x18]
cmp eax, 6
jne 0x1001f309
cmp dword [ebp - 0x14], 4
je 0x1001f314
jmp 0x1001f31e
cmp eax, 0xa
jne 0x1001f31e
cmp dword [ebp - 0x14], 0
jne 0x1001f31e
mov dword [0x1007a50c], 1
mov dword [0x100780ac], 0
cmp dword [0x1007a50c], 0
push 5
je 0x1001f33a
push str.win10
jmp 0x1001f33f
push str.other
mov ecx, esi
call fcn.1000a650
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10004830
int3