Function at 0x100152c0
Capabilities:
Create thread
Get system information on windows

Disassembly:
sub esp, 0x28
push ebx
push ebp
lea eax, [esp + 0xc]
push eax
mov ebp, ecx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x20]
xor ebx, ebx
cmp ecx, ebx
mov dword [esp + 8], eax
jne 0x100152f5
mov ecx, dword [0x1007a134]
cmp eax, ecx
jbe 0x100152f0
mov eax, ecx
mov dword [ebp + 4], eax
jmp 0x10015303
mov eax, dword [0x1007a134]
cmp ecx, eax
jb 0x10015300
mov ecx, eax
mov dword [ebp + 4], ecx
mov ecx, dword [ebp + 4]
imul ecx, ecx, 0x3f00
push 4
push 0x3000
add ecx, 0x3f
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
cmp eax, ebx
mov dword [ebp + 0xc8], eax
jne 0x1001533f
mov dl, byte [esp + 0x34]
push 0x1007746c
lea eax, [esp + 0x38]
push eax
mov byte [esp + 0x3c], dl
call fcn.100526cf
mov ecx, dword [ebp + 4]
imul ecx, ecx, 0x3f00
push esi
push edi
push ecx
lea esi, [eax + 0x3f]
and esi, 0xffffffc0
push ebx
push esi
mov dword [ebp + 0x88], esi
call fcn.10050e40
mov edi, 1
add esp, 0xc
cmp dword [ebp + 4], edi
jbe 0x100154e8
mov edx, dword [ebp + 0x88]
mov dword [edx + 0x3244], ebx
mov eax, dword [ebp + 0x88]
mov dword [eax + 0x3240], ebx
cmp dword [ebp + 4], edi
mov dword [ebp + 8], ebx
mov dword [ebp + 0x48], ebx
jbe 0x100154cc
lea ebx, [esi + 0x3f00]
lea esi, [ebp + 0x8c]
push 0
mov dword [esi], ebx
push 0
mov dword [ebx + 0x32b4], 0
mov ecx, dword [esi]
push 0
push 0
mov dword [ecx + 0x32b8], edi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov edx, dword [esi]
mov dword [edx + 0x3244], eax
mov eax, dword [esi]
xor ecx, ecx
cmp dword [eax + 0x3244], ecx
je 0x10015421
push ecx
push ecx
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ecx, dword [esi]
mov dword [ecx + 0x3240], eax
mov eax, dword [esi]
mov ecx, dword [eax + 0x3240]
test ecx, ecx
mov dword [esi - 0x80], ecx
je 0x10015418
lea edx, [esp + 0x10]
push edx
push 0
push eax
push 0x10015170
push 0x14000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi - 0x40], eax
jmp 0x1001542d
mov dword [esi - 0x40], 0
jmp 0x1001542d
mov dword [eax + 0x3240], ecx
mov dword [esi - 0x80], ecx
mov dword [esi - 0x40], ecx
cmp dword [esi - 0x80], 0
je 0x1001545b
cmp dword [esi - 0x40], 0
je 0x1001545b
mov eax, dword [esi]
cmp dword [eax + 0x3244], 0
je 0x1001545b
add edi, 1
add esi, 4
add ebx, 0x3f00
cmp edi, dword [ebp + 4]
jb 0x100153a2
jmp 0x100154cc
mov eax, 1
cmp edi, eax
jb 0x100154c9
mov ebx, dword [sym.imp.KERNEL32.dll_SetEvent]
mov dword [esp + 0x3c], edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
lea esi, [ebp + 0x4c]
cmp dword [esi], 0
je 0x100154a1
mov ecx, dword [esi + 0x40]
mov dword [ecx + 0x32b4], eax
mov edx, dword [esi + 0x40]
mov eax, dword [edx + 0x3244]
push eax
call ebx
mov ecx, dword [esi]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esi]
push edx
call edi
mov eax, dword [esi - 0x40]
test eax, eax
je 0x100154ab
push eax
call edi
mov eax, dword [esi + 0x40]
mov eax, dword [eax + 0x3244]
test eax, eax
je 0x100154bb
push eax
call edi
mov eax, 1
add esi, 4
sub dword [esp + 0x3c], eax
jne 0x10015477
mov dword [ebp + 4], eax
xor ecx, ecx
cmp ecx, dword [0x1007d7fc]
sbb edx, edx
and edx, 0x300
add edx, 0x100
mov dword [ebp + 0xcc], edx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4