Function at 0x10003b50
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1007a487
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
mov eax, dword [0x1008e418]
xor eax, esp
mov dword [esp + 0xb0], eax
push ebx
push esi
push edi
mov eax, dword [0x1008e418]
xor eax, esp
push eax
lea eax, [esp + 0xc8]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
and dword [esp + 0x24], 0xfffffe00
xor esi, esi
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0xd0], 1
mov edi, 0xf
mov dword [esp + 0x4c], edi
mov dword [esp + 0x48], esi
mov byte [esp + 0x38], 0
mov ebx, 0x10
mov byte [esp + 0xd0], 2
cmp dword [eax + 0x18], ebx
jb 0x10003be4
mov eax, dword [eax + 4]
jmp 0x10003be7
add eax, 4
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x74]
push ecx
mov ecx, eax
call fcn.10003440
add esp, 0xc
mov byte [esp + 0xd0], 4
cmp dword [esp + 0x4c], ebx
jb 0x10003c1b
mov edx, dword [esp + 0x38]
push edx
call fcn.10056169
add esp, 4
lea eax, [esp + 0x88]
push eax
mov dword [esp + 0x50], edi
mov dword [esp + 0x4c], esi
mov byte [esp + 0x3c], 0
call fcn.10003fa0
push 0xffffffffffffffff
push esi
lea ecx, [esp + 0x74]
push ecx
lea ecx, [esp + 0x94]
mov byte [esp + 0xdc], 5
call fcn.10008960
cmp byte [esp + 0x24], 6
jne 0x10003ea7
lea eax, [esp + 0x1c]
call fcn.1004d0b2
test eax, eax
je 0x10003ea7
xor ebx, ebx
nop
movsx eax, byte [esp + 0x24]
cmp eax, 7
ja case.0x10003c7a.0
jmp dword [eax*4 + 0x10003f74]
mov eax, dword [esp + 0x1c]
cmp dword [eax + 0x1c], esi
je case.0x10003c7a.0
mov ecx, dword [eax + 0x18]
mov eax, dword [eax]
lea esi, [esp + 0x14]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
call fcn.1004f65c
call fcn.1004f5e4
mov eax, dword [eax + 4]
inc eax
jmp 0x10003cb6
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 0x1c]
jmp 0x10003cb6
xor eax, eax
cmp ebx, eax
jge 0x10003d78
push ebx
lea eax, [esp + 0x20]
push eax
call fcn.1004d25c
push eax
lea ecx, [esp + 0x54]
call fcn.1004c8e1
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0xd4], 6
call fcn.10001c10
add esp, 4
mov byte [esp + 0xd0], 7
mov ecx, dword [esp + 0xb8]
mov edx, dword [ecx + 4]
lea edi, [ecx + 4]
push eax
push edx
push ecx
call fcn.1000ab80
lea ecx, [esp + 0xa4]
mov esi, eax
call fcn.1000ac20
mov dword [edi], esi
mov eax, dword [esi + 4]
mov dword [eax], esi
cmp dword [esp + 0x4c], 8
jb 0x10003d2e
mov eax, dword [esp + 0x38]
push eax
call fcn.10056169
add esp, 4
xor esi, esi
xor ecx, ecx
mov byte [esp + 0xd0], 5
cmp dword [esp + 0x68], 0x10
mov dword [esp + 0x4c], 7
mov dword [esp + 0x48], esi
mov word [esp + 0x38], cx
jb 0x10003d5f
mov edx, dword [esp + 0x54]
push edx
call fcn.10056169
add esp, 4
mov dword [esp + 0x64], esi
inc ebx
mov dword [esp + 0x68], 0xf
mov byte [esp + 0x54], 0
xor esi, esi
jmp 0x10003c70
mov ebx, dword [esp + 0x10]
add ebx, 0x10
push ebx
mov dword [esp + 0x18], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esp + 0x10]
add eax, 0x50
mov byte [esp + 0xd0], 8
mov esi, dword [eax + 0x14]
mov ecx, dword [esi + 4]
lea eax, [esp + 0x88]
push eax
push ecx
push esi
call fcn.1000b870
mov ecx, dword [esp + 0x10]
add ecx, 0x50
mov edi, eax
call fcn.1000b910
mov dword [esi + 4], edi
mov eax, dword [edi + 4]
mov esi, dword [esp + 0x10]
mov dword [eax], edi
cmp dword [esi + 0xc], 0
jne 0x10003de6
push 0
push 0
push 0
push 0x10006ae0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0xc], eax
mov edx, dword [esi + 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ebx, [esp + 0xa4]
call fcn.1000ab20
mov eax, dword [esp + 0xb8]
push eax
call fcn.10056169
mov ecx, dword [esp + 0xa8]
add esp, 4
xor ebx, ebx
push ecx
mov dword [esp + 0xbc], ebx
call fcn.10056169
mov esi, 0x10
add esp, 4
cmp dword [esp + 0xa0], esi
jb 0x10003e4a
mov edx, dword [esp + 0x8c]
push edx
call fcn.10056169
add esp, 4
mov edi, 0xf
mov dword [esp + 0xa0], edi
mov dword [esp + 0x9c], ebx
mov byte [esp + 0x8c], bl
cmp dword [esp + 0x84], esi
jb 0x10003e7a
mov eax, dword [esp + 0x70]
push eax
call fcn.10056169
add esp, 4
lea esi, [esp + 0x1c]
mov dword [esp + 0x84], edi
mov dword [esp + 0x80], ebx
mov byte [esp + 0x70], bl
mov dword [esp + 0xd0], 0xffffffff
call fcn.1004c6f3
mov al, 1
jmp 0x10003f4d
lea ebx, [esp + 0xa4]
call fcn.1000ab20
mov ecx, dword [esp + 0xb8]
push ecx
call fcn.10056169
mov edx, dword [esp + 0xa8]
add esp, 4
xor ebx, ebx
push edx
mov dword [esp + 0xbc], ebx
call fcn.10056169
mov esi, 0x10
add esp, 4
cmp dword [esp + 0xa0], esi
jb 0x10003efa
mov eax, dword [esp + 0x8c]
push eax
call fcn.10056169
add esp, 4
mov dword [esp + 0xa0], edi
mov dword [esp + 0x9c], ebx
mov byte [esp + 0x8c], bl
cmp dword [esp + 0x84], esi
jb 0x10003f25
mov ecx, dword [esp + 0x70]
push ecx
call fcn.10056169
add esp, 4
lea esi, [esp + 0x1c]
mov dword [esp + 0x84], edi
mov dword [esp + 0x80], ebx
mov byte [esp + 0x70], bl
mov dword [esp + 0xd0], 0xffffffff
call fcn.1004c6f3
xor al, al
mov ecx, dword [esp + 0xc8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb0]
xor ecx, esp
call fcn.10055232
mov esp, ebp
pop ebp
ret 8