Function at 0x10023f40
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x1003863e
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
mov eax, dword [0x10049644]
xor eax, esp
mov dword [esp + 0x98], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10049644]
xor eax, esp
push eax
lea eax, [esp + 0xb0]
mov dword fs:[0], eax
mov ebx, dword [esp + 0xc0]
xor edi, edi
lea eax, [esp + 0x58]
push eax
mov esi, ecx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x30], edi
call fcn.100061e0
add esp, 4
test eax, eax
je 0x10023fb1
mov eax, 8
jmp 0x10024343
mov edx, dword [ebx]
mov eax, dword [edx + 4]
mov ecx, ebx
call eax
push eax
lea ecx, [esp + 0x5c]
push ecx
call fcn.10006200
add esp, 8
cmp eax, edi
jne 0x10023fa7
mov eax, dword [ebx]
lea edx, [esp + 0x58]
lea ecx, [esp + 0x50]
mov dword [esp + 0x4c], edx
mov edx, dword [eax + 8]
push ecx
mov ecx, ebx
mov dword [esp + 0x58], edi
call edx
test eax, eax
je 0x10023ff4
mov eax, 4
jmp 0x10024343
mov eax, dword [ebx]
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x38]
push edx
mov edx, dword [eax + 0xc]
lea ecx, [esp + 0x30]
push ecx
push edi
mov ecx, ebx
mov dword [esp + 0x40], edi
call edx
cmp eax, edi
je 0x1002401f
mov eax, 6
jmp 0x10024343
mov eax, dword [esi]
push eax
mov ecx, ebx
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], edi
call fcn.10023050
lea ecx, [esp + 0x20]
push ecx
mov ebp, eax
call fcn.10024b60
add esp, 4
lea edx, [esp + 0x18]
push edx
push ebp
mov ecx, esi
call fcn.10023250
cmp dword [esp + 0x20], edi
jne 0x1002408c
cmp dword [esp + 0x18], 1
jne 0x1002408c
mov ecx, dword [esi + 4]
mov edx, dword [esi]
lea eax, [esp + 0x20]
push eax
push 0x22
push ecx
push edx
call fcn.10024410
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x100240d6
mov eax, dword [esp + 0x20]
mov ecx, dword [esi + 4]
mov edx, dword [esi]
push eax
push 0x22
push ecx
push edx
call fcn.10024720
add esp, 0x10
mov ecx, dword [esi + 4]
mov edx, dword [esi]
lea eax, [esp + 0x14]
push eax
push 0x21
push ecx
push edx
mov dword [esp + 0x24], edi
call fcn.10024410
mov edi, eax
add esp, 0x10
test edi, edi
je 0x10024100
cmp edi, 0xa
jne 0x100240bc
push eax
push ebp
mov ecx, esi
call fcn.10023ad0
mov edi, eax
test ebp, ebp
je 0x100240c9
push ebp
call fcn.1002cc41
add esp, 4
push edi
mov ecx, esi
call fcn.10023170
jmp 0x10024343
cmp edi, 0xa
jne 0x100240e6
push edi
push ebp
mov ecx, esi
call fcn.10023ad0
mov edi, eax
test ebp, ebp
je 0x100240f3
push ebp
call fcn.1002cc41
add esp, 4
cmp edi, 6
jne 0x100240c9
lea eax, [edi + 5]
jmp 0x10024343
push 0xc
call fcn.1002bbdd
add esp, 4
mov dword [esp + 0x1c], eax
xor edi, edi
cmp eax, edi
mov dword [esp + 0xb8], edi
je 0x10024129
push edi
mov ecx, eax
call fcn.100219a0
mov dword [esp + 0x24], eax
jmp 0x1002412f
mov dword [esp + 0x24], edi
mov eax, edi
cmp eax, edi
mov dword [esp + 0xb8], 0xffffffff
jne 0x1002415e
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 4]
mov edx, dword [esi]
push eax
push 0x21
push ecx
push edx
call fcn.10024720
add esp, 0x10
mov eax, 3
jmp 0x10024343
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], eax
mov dword [esp + 0x48], 0x1388
mov dword [esp + 0x44], edi
mov dword [esp + 0x1c], edi
jmp 0x10024182
xor edi, edi
cmp dword [esp + 0x18], 1
jne 0x100241bb
push 0x3c
lea edx, [esp + 0x74]
push edi
push edx
call fcn.1002b800
add esp, 0xc
lea eax, [esp + 0x70]
push eax
push ebp
mov ecx, esi
call fcn.100236a0
cmp eax, edi
jne 0x100241bb
and byte [esp + 0xa8], 1
jne 0x100241fd
cmp byte [esp + 0x70], 1
je 0x1002420a
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0x40]
push edx
call fcn.1002ab40
mov edi, eax
add esp, 8
test edi, edi
jne 0x10024217
lea eax, [esp + 0x2c]
push eax
push ebx
lea ecx, [esp + 0x44]
push ecx
mov ecx, esi
call fcn.100237d0
mov edi, eax
test edi, edi
jne 0x1002424c
mov eax, dword [esp + 0x1c]
add eax, 1
cmp eax, 1
mov dword [esp + 0x1c], eax
jl 0x10024180
jmp 0x10024275
push 8
mov ecx, esi
call fcn.10023170
mov edi, eax
jmp 0x10024275
push 0x11
mov ecx, esi
call fcn.10023170
mov edi, eax
jmp 0x10024275
mov edx, dword [ebx]
mov eax, dword [edx + 0x10]
mov ecx, ebx
call eax
cmp edi, 8
jne 0x10024240
cmp dword [esp + 0x18], 1
jne 0x10024240
mov ecx, dword [esp + 0x14]
mov edx, dword [esi + 4]
mov eax, dword [esi]
push ecx
push edx
push eax
push ebp
mov ecx, esi
call fcn.10023c90
push edi
mov ecx, esi
call fcn.10023170
mov edi, eax
jmp 0x10024275
mov edx, dword [ebx]
mov eax, dword [edx + 0x10]
mov ecx, ebx
call eax
cmp edi, 0xa
jne 0x10024275
cmp dword [esp + 0x18], 1
jne 0x10024275
mov ecx, dword [esp + 0x14]
mov edx, dword [esi + 4]
mov eax, dword [esi]
push ecx
push edx
push eax
push ebp
mov ecx, esi
call fcn.10023c90
cmp dword [esp + 0x28], 0
mov dword [esp + 0x1c], 0
je 0x100242b1
mov ebx, 1
cmp dword [esp + 0x18], ebx
jne 0x100242b1
test edi, edi
jne 0x100242b1
cmp dword [esp + 0x2c], edi
je 0x100242b1
mov ecx, dword [esp + 0x14]
mov edx, dword [esi + 4]
mov eax, dword [esi]
push ecx
push edx
push eax
push ebp
mov ecx, esi
call fcn.10023c90
mov dword [esp + 0x1c], ebx
mov ecx, dword [esp + 0x14]
mov edx, dword [esi + 4]
mov eax, dword [esi]
push ecx
push 0x21
push edx
push eax
call fcn.10024720
mov ecx, dword [esp + 0x34]
add esp, 0x10
mov ebx, eax
call fcn.100219d0
mov ecx, dword [esp + 0x24]
push ecx
call fcn.1002bb7a
add esp, 4
test ebp, ebp
je 0x100242ec
push ebp
call fcn.1002cc41
add esp, 4
test ebx, ebx
je 0x100242fa
push ebx
mov ecx, esi
call fcn.10023170
jmp 0x10024343
test edi, edi
jne 0x10024341
cmp dword [esp + 0x1c], edi
je 0x10024309
lea eax, [edi + 0xf]
jmp 0x10024343
cmp dword [esp + 0x28], 0
je 0x10024341
mov edx, dword [esp + 0x30]
mov edi, dword [esp + 0x38]
push edx
push edi
mov ecx, esi
call fcn.10023890
mov esi, eax
test esi, esi
mov eax, dword [edi]
mov edx, dword [eax + 0x10]
mov ecx, edi
je 0x10024334
call edx
mov eax, esi
jmp 0x10024343
call edx
mov edi, eax
test edi, edi
mov eax, 6
jne 0x10024343
mov eax, edi
mov ecx, dword [esp + 0xb0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x98]
xor ecx, esp
call fcn.1002b5d1
add esp, 0xa8
ret 4