Function at 0x59e840
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x6cd802
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc0
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x30]
call fcn.0063bb20
lea ecx, [esp + 0x14]
mov dword [esp + 0xd8], 0
call fcn.0061d780
lea ecx, [esp + 0x88]
mov byte [esp + 0xd8], 1
call fcn.0061aaa0
push 0x6c
push 0xf1
push 0x10
lea ecx, [esp + 0x54]
mov byte [esp + 0xe4], 2
call fcn.00555f00
push 0x6c
push 0xf1
push 0xfe
lea ecx, [esp + 0x74]
mov byte [esp + 0xe4], 3
call fcn.00555f00
mov eax, dword [esi]
mov edi, dword [0x71ec40]
mov ecx, esi
mov byte [esp + 0xd8], 4
mov byte [esp + 0x12], 1
mov byte [esp + 0x13], 0x3f
call dword [eax + 0x18]
test ax, ax
jne 0x59e950
lea ecx, [esp + 0x68]
mov byte [esp + 0xd8], 3
call fcn.00555f30
lea ecx, [esp + 0x48]
mov byte [esp + 0xd8], 2
call fcn.00555f30
lea ecx, [esp + 0x88]
mov byte [esp + 0xd8], 1
call fcn.0061ab90
lea ecx, [esp + 0x14]
mov byte [esp + 0xd8], 0
call fcn.0061d8c0
lea ecx, [esp + 0x30]
mov dword [esp + 0xd8], 0xffffffff
call fcn.0062d500
xor ax, ax
jmp 0x59eba6
mov al, byte [esp + 0xe0]
cmp al, 6
je 0x59eb47
cmp al, 7
je 0x59eb47
cmp al, 8
je 0x59eb47
cmp al, 9
je 0x59eb47
movsx ecx, di
mov esi, 1
mov dword [esp + 0x1c], ecx
lea eax, [ecx - 2]
cmp eax, esi
jle 0x59e9cb
mov eax, esi
lea ecx, [eax + eax*4]
push 0
push 1
lea eax, [esp + 0xb4]
lea edx, [ecx*2 + 0x71ec42]
lea ecx, [esp + 0x50]
push edx
push eax
call fcn.00556960
lea ecx, [esp + 0xac]
call fcn.0061ab90
mov ecx, dword [esp + 0x1c]
inc esi
movsx eax, si
add ecx, 0xfffffffe
cmp eax, ecx
jl 0x59e98c
mov ecx, dword [esp + 0x1c]
lea ebx, [edi - 2]
cmp bx, di
jge 0x59eab7
movsx edi, bx
mov eax, ecx
lea edx, [edi + edi*4]
sub eax, edi
mov dword [esp + 0x24], eax
add ebx, eax
lea ebp, [edx*2 + 0x71ec42]
jmp 0x59e9f4
mov ecx, dword [esp + 0x1c]
lea eax, [ecx - 2]
cmp edi, eax
jne 0x59ea43
push 0
lea eax, [esp + 0x44]
push ebp
push eax
lea ecx, [esp + 0x54]
call fcn.00556fe0
mov esi, eax
push ecx
mov byte [esp + 0xdc], 5
mov ecx, esp
mov dword [esp + 0x24], esp
push esi
call fcn.0061d790
lea ecx, [esp + 0x18]
call fcn.0061dab0
mov cx, word [esi + 4]
mov byte [esp + 0xd8], 4
mov word [esp + 0x18], cx
lea ecx, [esp + 0x40]
jmp 0x59ea91
dec ecx
cmp edi, ecx
jne 0x59ea96
push 0xfe
lea edx, [esp + 0x2c]
push ebp
push edx
lea ecx, [esp + 0x54]
call fcn.00556fe0
mov esi, eax
push ecx
mov byte [esp + 0xdc], 6
mov ecx, esp
mov dword [esp + 0x24], esp
push esi
call fcn.0061d790
lea ecx, [esp + 0x18]
call fcn.0061dab0
mov ax, word [esi + 4]
mov byte [esp + 0xd8], 4
mov word [esp + 0x18], ax
lea ecx, [esp + 0x28]
call fcn.0061d8c0
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x34]
call fcn.0062d8b0
mov eax, dword [esp + 0x24]
inc edi
add ebp, 0xa
dec eax
mov dword [esp + 0x24], eax
jne 0x59e9f0
movsx eax, bx
push 0
lea ecx, [esp + 0x2c]
lea edx, [eax + eax*4]
lea eax, [edx*2 + 0x71ec42]
push eax
push ecx
lea ecx, [esp + 0x54]
call fcn.00556fe0
mov esi, eax
push ecx
mov byte [esp + 0xdc], 7
mov ecx, esp
mov dword [esp + 0x24], esp
push esi
call fcn.0061d790
lea ecx, [esp + 0x18]
call fcn.0061dab0
mov dx, word [esi + 4]
lea ecx, [esp + 0x28]
mov word [esp + 0x18], dx
mov byte [esp + 0xd8], 4
call fcn.0061d8c0
lea eax, [esp + 0x30]
push 0
lea ecx, [esp + 0xb0]
push eax
push ecx
mov ecx, 0x72baa8
call fcn.00628090
lea ecx, [esp + 0xac]
call fcn.0061ab90
lea edx, [esp + 0x12]
lea ecx, [esp + 0x68]
push edx
push 0xc8
call fcn.00556ea0
lea ecx, [esp + 0x68]
mov byte [esp + 0xd8], 3
call fcn.00555f30
lea ecx, [esp + 0x48]
mov byte [esp + 0xd8], 2
call fcn.00555f30
lea ecx, [esp + 0x88]
mov byte [esp + 0xd8], 1
call fcn.0061ab90
lea ecx, [esp + 0x14]
mov byte [esp + 0xd8], 0
call fcn.0061d8c0
lea ecx, [esp + 0x30]
mov dword [esp + 0xd8], 0xffffffff
call fcn.0062d500
mov ax, 1
mov ecx, dword [esp + 0xd0]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xcc
ret 4