Function at 0x11106c20
Capabilities:
Check os version
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x111e46f6
mov eax, dword fs:[0]
push eax
sub esp, 0xd8c
mov eax, dword [0x11279148]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0x18]
mov esi, ecx
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0xd58], ecx
mov ecx, dword [ebp + 0x10]
mov dword [esi + 0x3c], edx
push eax
lea edx, [ebp - 0x610]
mov dword [esi + 0x30], ecx
push edx
mov ecx, esi
mov dword [ebp - 0xd54], edi
call fcn.11106350
test eax, eax
je 0x111072ac
xor ebx, ebx
push str.SeSecurityPrivilege
lea ecx, [ebp - 0xc30]
mov dword [ebp - 0xd4c], ebx
mov dword [ebp - 0xd48], ebx
call fcn.11105d50
mov dword [ebp - 4], ebx
cmp edi, ebx
jne 0x11106e14
push 0x14
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
mov dword [ebp - 0xd4c], edi
cmp edi, ebx
je 0x111072a1
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push ebx
push ebx
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
lea eax, [ebp - 0xd44]
push eax
mov dword [ebp - 0xd44], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0xd40], 6
jb 0x11106d8a
lea ecx, [ebp - 0xd98]
call fcn.11105cc0
push ebx
lea ecx, [ebp - 0xd48]
push ecx
push 1
push str.S:_ML__NW___LW_
lea ecx, [ebp - 0xd98]
mov byte [ebp - 4], 1
call fcn.11105d00
test eax, eax
je 0x11106d79
lea edx, [ebp - 0xd68]
push edx
mov edx, dword [ebp - 0xd48]
lea eax, [ebp - 0xd50]
push eax
lea ecx, [ebp - 0xd6c]
push ecx
push edx
mov dword [ebp - 0xd50], ebx
mov dword [ebp - 0xd6c], ebx
mov dword [ebp - 0xd68], ebx
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorSacl]
test eax, eax
je 0x11106d79
mov eax, dword [ebp - 0xd50]
push ebx
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorSacl]
mov eax, dword [ebp - 0xd98]
cmp eax, ebx
je 0x11106d8a
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0xd64], 0xc
mov dword [ebp - 0xd60], edi
mov dword [ebp - 0xd5c], ebx
lea eax, [ebp - 0xd64]
mov edx, dword [ebp - 0xd58]
lea ecx, [ebp - 0x610]
push ecx
add edx, 0x2c4
push edx
push ebx
push 4
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi + 0xc], eax
cmp eax, ebx
jne 0x11106e18
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error_creating_filemap___d__n
call fcn.11001040
mov edi, dword [sym.imp.KERNEL32.dll_LocalFree]
add esp, 8
cmp dword [ebp - 0xd4c], ebx
je 0x11106df8
mov eax, dword [ebp - 0xd4c]
push eax
call edi
mov eax, dword [ebp - 0xd48]
cmp eax, ebx
je 0x11106e05
push eax
call edi
push str.cant_create_filemap
push 0x1cd
jmp 0x1110729a
mov eax, edi
jmp 0x11106da6
mov dword [ebp - 0xd50], ebx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x11106e32
mov edi, 1
mov ecx, dword [esi + 0xc]
push ebx
push ebx
push ebx
push 0xf001f
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 0x28], eax
cmp eax, ebx
jne 0x11106e87
push str.Error_cant_map_view_n
call fcn.11001040
mov eax, dword [ebp - 0xd4c]
mov edi, dword [sym.imp.KERNEL32.dll_LocalFree]
add esp, 4
cmp eax, ebx
je 0x11106e6b
push eax
call edi
mov eax, dword [ebp - 0xd48]
cmp eax, ebx
je 0x11106e78
push eax
call edi
push str.cant_map
push 0x1e1
jmp 0x1110729a
cmp edi, ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
je 0x11106f37
push 0x104
lea edx, [ebp - 0xc18]
push edx
push ebx
call edi
mov eax, dword [esi + 0x28]
cmp dword [eax + 4], 0x2c4
jne 0x11106f53
mov ecx, dword [ebp - 0xd58]
cmp dword [eax + 0x10], ecx
jne 0x11106f53
cmp dword [eax + 0xc], ebx
je 0x11106f0f
cmp word [eax + 8], bx
je 0x11106f0f
lea ecx, [ebp - 0xc18]
add eax, 0xbc
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x11106f06
cmp dx, bx
je 0x11106f02
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x11106f06
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x11106ee0
xor eax, eax
jmp 0x11106f0b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x11106f53
push str.Info___reusing_existing_filemap_n
mov dword [ebp - 0xd50], 1
call fcn.11001040
add esp, 4
push str.warning_map_exists
push 0x1f4
mov ecx, esi
call fcn.11106280
mov eax, dword [esi + 0x28]
lea edx, [eax + 0x2c4]
mov dword [esi + 0x2c], edx
cmp dword [ebp - 0xd50], ebx
je 0x11106f8f
inc dword [eax + 0x38]
jmp 0x1110703b
push str.Error_filemap_exists_n
call fcn.11001040
mov eax, dword [ebp - 0xd4c]
mov edi, dword [sym.imp.KERNEL32.dll_LocalFree]
add esp, 4
cmp eax, ebx
je 0x11106f73
push eax
call edi
mov eax, dword [ebp - 0xd48]
cmp eax, ebx
je 0x11106f80
push eax
call edi
push str.map_exists
push 0x1fe
jmp 0x1110729a
push 0x2c4
push ebx
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
not ecx
xor edx, edx
lea ebx, [ebx]
cmp eax, 0x10000000
jae 0x11106fc8
mov ebx, edx
and ebx, 1
add eax, eax
or eax, ebx
inc edx
xor ebx, ebx
cmp edx, 0x20
jl 0x11106fb0
xor edx, edx
cmp ecx, 0x10000000
jae 0x11106fe1
mov ebx, edx
and ebx, 1
add ecx, ecx
inc edx
or ecx, ebx
cmp edx, 0x20
jl 0x11106fca
mov edx, dword [esi + 0x28]
mov ebx, dword [ebp - 0xd58]
mov dword [edx + 4], 0x2c4
mov edx, dword [esi + 0x28]
mov dword [edx + 0x10], ebx
mov edx, dword [esi + 0x28]
mov dword [edx + 0x20], eax
mov edx, dword [esi + 0x28]
mov dword [edx + 0x24], ecx
mov ebx, dword [esi + 0x28]
lea edx, [eax + 1]
mov dword [ebx + 0x18], edx
mov ebx, dword [esi + 0x28]
lea edx, [ecx + 1]
mov dword [ebx + 0x1c], edx
mov ebx, dword [esi + 0x28]
lea edx, [eax + 2]
mov dword [ebx + 0x28], edx
mov ebx, dword [esi + 0x28]
lea edx, [ecx + 2]
mov dword [ebx + 0x2c], edx
mov edx, dword [esi + 0x28]
add eax, 3
mov dword [edx + 0x30], eax
mov eax, dword [esi + 0x28]
add ecx, 3
mov dword [eax + 0x34], ecx
xor ebx, ebx
mov ecx, dword [esi + 0x28]
mov edx, 1
mov word [ecx + 8], dx
mov eax, dword [esi + 0x28]
xor ecx, ecx
mov word [eax + 0xa], cx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, dword [esi + 0x28]
mov dword [edx + 0xc], eax
mov eax, dword [esi + 0x28]
push 0x104
add eax, 0xbc
push eax
push ebx
call edi
lea ecx, [ebp - 0x810]
push ecx
lea edx, [ebp - 0xa10]
push edx
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x410]
push ecx
lea edx, [ebp - 0x610]
push edx
mov ecx, esi
call fcn.111061d0
mov eax, dword [ebp - 0xd54]
cmp eax, ebx
jne 0x111070a7
lea eax, [ebp - 0xd64]
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventW]
lea ecx, [ebp - 0x210]
push ecx
push ebx
push ebx
push eax
call edi
mov dword [esi + 0x10], eax
cmp eax, ebx
jne 0x111070e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [ebp - 0x210]
push edx
push str.Cant_create_event__s__e_d__x_x__n
call fcn.11001040
add esp, 0x10
mov eax, dword [ebp - 0xd54]
cmp eax, ebx
jne 0x111070f2
lea eax, [ebp - 0xd64]
lea ecx, [ebp - 0x410]
push ecx
push ebx
push ebx
push eax
call edi
mov dword [esi + 0x14], eax
cmp eax, ebx
jne 0x11107127
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [ebp - 0x410]
push edx
push str.Cant_create_event__s__e_d__x_x__n
call fcn.11001040
add esp, 0x10
mov eax, dword [ebp - 0xd54]
cmp eax, ebx
jne 0x11107137
lea eax, [ebp - 0xd64]
lea ecx, [ebp - 0x810]
push ecx
push ebx
push 1
push eax
call edi
mov dword [esi + 0x1c], eax
cmp eax, ebx
jne 0x1110716d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [ebp - 0x810]
push edx
push str.Cant_create_event__s__e_d__x_x__n
call fcn.11001040
add esp, 0x10
mov eax, dword [ebp - 0xd54]
cmp eax, ebx
jne 0x1110717d
lea eax, [ebp - 0xd64]
lea ecx, [ebp - 0xa10]
push ecx
push ebx
push ebx
push eax
call edi
mov dword [esi + 0x18], eax
cmp eax, ebx
jne 0x111071b0
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
push eax
call edi
push eax
lea edx, [ebp - 0xa10]
push edx
push str.Cant_create_event__s__e_d__x_x__n
call fcn.11001040
add esp, 0x10
mov eax, dword [ebp - 0xd4c]
mov edi, dword [sym.imp.KERNEL32.dll_LocalFree]
cmp eax, ebx
je 0x111071c3
push eax
call edi
mov eax, dword [ebp - 0xd48]
cmp eax, ebx
je 0x111071d0
push eax
call edi
mov dword [ebp - 0xd48], ebx
cmp dword [esi + 0x10], ebx
je 0x11107283
cmp dword [esi + 0x14], ebx
je 0x11107283
cmp dword [esi + 0x18], ebx
je 0x11107283
cmp dword [esi + 0x1c], ebx
je 0x11107283
cmp dword [esi + 0x30], ebx
jne 0x11107208
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi + 0x30], eax
lea eax, [esi + 0x34]
push eax
push ebx
push esi
push 0x11106750
push 0x2000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x24], eax
cmp eax, ebx
jne 0x11107232
push str.cant_create_thread
push 0x268
jmp 0x1110729a
mov byte [esi + 4], 1
cmp dword [ebp - 0xd50], ebx
je 0x11107256
mov ecx, dword [esi + 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_ResetEvent]
push ecx
call edi
mov edx, dword [esi + 0x10]
push edx
call edi
mov eax, dword [esi + 0x1c]
push eax
call edi
mov ecx, dword [esi + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
add esi, 0x40
push esi
push str.IPC__s__created_n
call fcn.11001040
add esp, 8
lea ecx, [ebp - 0xc30]
call fcn.11105de0
mov eax, 1
jmp 0x111072ae
push str.Error_cant_create_events_n
call fcn.11001040
add esp, 4
push str.cant_create_events
push 0x25e
mov ecx, esi
call fcn.11106280
lea ecx, [ebp - 0xc30]
call fcn.11105de0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.111d9022
mov esp, ebp
pop ebp
ret 0x14