Function at 0x1005f7a0
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffebc
push ebx
push esi
push edi
mov edi, edx
mov ebx, eax
lea esi, [ebp - 0x144]
xor eax, eax
mov dword [ebp - 4], eax
xor edx, edx
push ebp
push 0x1005fbe0
push dword fs:[edx]
mov dword fs:[edx], esp
mov dword [esi], 0x11c
push esi
call sub.kernel32.dll_GetVersionExW
test eax, eax
jne 0x1005f7f3
mov dword [esi], 0x114
push esi
call sub.kernel32.dll_GetVersionExW
test eax, eax
jne 0x1005f7f3
call fcn.10004808
jmp 0x1005fbe7
cmp dword [esi + 0x10], 2
je 0x1005f803
call fcn.10004808
jmp 0x1005fbe7
test ebx, ebx
je 0x1005f811
movzx eax, word [esi + 0x118]
mov word [ebx], ax
test edi, edi
je 0x1005f81e
movzx eax, byte [esi + 0x11a]
mov byte [edi], al
cmp dword [0x100a9730], 0
je 0x1005f839
mov eax, dword [0x100a9730]
mov dword [ebp - 4], eax
call fcn.10004808
jmp 0x1005fbe7
lea eax, [ebp - 0x28]
xor ecx, ecx
mov edx, 0x24
call fcn.10003630
push 0x1005fbf4
push 0x1005fc1c
call sub.kernel32.dll_GetModuleHandleW_1
push eax
call fcn.100085d0
test eax, eax
je 0x1005f869
lea edx, [ebp - 0x28]
push edx
call eax
jmp 0x1005f872
lea eax, [ebp - 0x28]
push eax
call sub.kernel32.dll_GetSystemInfo_1
cmp dword [esi + 4], 5
jne 0x1005f887
cmp dword [esi + 8], 1
jne 0x1005f887
cmp byte [esi + 0x11a], 1
je 0x1005f89c
cmp dword [esi + 4], 5
jne 0x1005f8db
cmp dword [esi + 8], 2
jne 0x1005f8db
cmp byte [esi + 0x11a], 1
jne 0x1005f8db
movzx eax, word [ebp - 0x28]
sub ax, 1
jb 0x1005f8b7
sub ax, 5
je 0x1005f8cf
sub ax, 3
je 0x1005f8c3
jmp 0x1005fbca
mov dword [ebp - 4], 1
jmp 0x1005fbca
mov dword [ebp - 4], 2
jmp 0x1005fbca
mov dword [ebp - 4], 4
jmp 0x1005fbca
cmp dword [esi + 4], 6
jne 0x1005f92f
cmp dword [esi + 8], 0
jne 0x1005f92f
cmp byte [esi + 0x11a], 1
jne 0x1005f92f
movzx eax, word [ebp - 0x28]
sub ax, 1
jb 0x1005f90b
sub ax, 5
je 0x1005f923
sub ax, 3
je 0x1005f917
jmp 0x1005fbca
mov dword [ebp - 4], 8
jmp 0x1005fbca
mov dword [ebp - 4], 0x10
jmp 0x1005fbca
mov dword [ebp - 4], 0x20
jmp 0x1005fbca
cmp dword [esi + 4], 6
jne 0x1005f983
cmp dword [esi + 8], 1
jne 0x1005f983
cmp byte [esi + 0x11a], 1
jne 0x1005f983
movzx eax, word [ebp - 0x28]
sub ax, 1
jb 0x1005f95f
sub ax, 5
je 0x1005f977
sub ax, 3
je 0x1005f96b
jmp 0x1005fbca
mov dword [ebp - 4], 0x40
jmp 0x1005fbca
mov dword [ebp - 4], 0x80
jmp 0x1005fbca
mov dword [ebp - 4], pe_nt_image_headers32
jmp 0x1005fbca
cmp dword [esi + 4], 6
jne 0x1005f9d7
cmp dword [esi + 8], 2
jne 0x1005f9d7
cmp byte [esi + 0x11a], 1
jne 0x1005f9d7
movzx eax, word [ebp - 0x28]
sub ax, 1
jb 0x1005f9b3
sub ax, 5
je 0x1005f9cb
sub ax, 3
je 0x1005f9bf
jmp 0x1005fbca
mov dword [ebp - 4], 0x200
jmp 0x1005fbca
mov dword [ebp - 4], 0x400
jmp 0x1005fbca
mov dword [ebp - 4], 0x800
jmp 0x1005fbca
cmp dword [esi + 4], 6
jne 0x1005fa2b
cmp dword [esi + 8], 3
jne 0x1005fa2b
cmp byte [esi + 0x11a], 1
jne 0x1005fa2b
movzx eax, word [ebp - 0x28]
sub ax, 1
jb 0x1005fa07
sub ax, 5
je 0x1005fa1f
sub ax, 3
je 0x1005fa13
jmp 0x1005fbca
mov dword [ebp - 4], 0x200000
jmp 0x1005fbca
mov dword [ebp - 4], 0x400000
jmp 0x1005fbca
mov dword [ebp - 4], 0x800000
jmp 0x1005fbca
cmp dword [esi + 4], 6
jne 0x1005fa7f
cmp dword [esi + 8], 4
jne 0x1005fa7f
cmp byte [esi + 0x11a], 1
jne 0x1005fa7f
movzx eax, word [ebp - 0x28]
sub ax, 1
jb 0x1005fa5b
sub ax, 5
je 0x1005fa73
sub ax, 3
je 0x1005fa67
jmp 0x1005fbca
mov dword [ebp - 4], 0x1000000
jmp 0x1005fbca
mov dword [ebp - 4], 0x2000000
jmp 0x1005fbca
mov dword [ebp - 4], 0x4000000
jmp 0x1005fbca
cmp dword [esi + 4], 0xa
jne 0x1005fad3
cmp dword [esi + 8], 0
jne 0x1005fad3
cmp byte [esi + 0x11a], 1
jne 0x1005fad3
movzx eax, word [ebp - 0x28]
sub ax, 1
jb 0x1005faaf
sub ax, 5
je 0x1005fac7
sub ax, 3
je 0x1005fabb
jmp 0x1005fbca
mov dword [ebp - 4], 0x1000000
jmp 0x1005fbca
mov dword [ebp - 4], 0x2000000
jmp 0x1005fbca
mov dword [ebp - 4], 0x4000000
jmp 0x1005fbca
cmp dword [esi + 4], 5
jne 0x1005fb27
cmp dword [esi + 8], 2
jne 0x1005fb27
cmp byte [esi + 0x11a], 1
je 0x1005fb27
movzx eax, word [ebp - 0x28]
sub ax, 1
jb 0x1005fb03
sub ax, 5
je 0x1005fb1b
sub ax, 3
je 0x1005fb0f
jmp 0x1005fbca
mov dword [ebp - 4], 0x1000
jmp 0x1005fbca
mov dword [ebp - 4], 0x2000
jmp 0x1005fbca
mov dword [ebp - 4], 0x4000
jmp 0x1005fbca
cmp dword [esi + 4], 6
jne 0x1005fb3c
cmp dword [esi + 8], 0
jne 0x1005fb3c
cmp byte [esi + 0x11a], 1
jne 0x1005fb51
cmp dword [esi + 4], 6
jne 0x1005fb84
cmp dword [esi + 8], 1
jne 0x1005fb84
cmp byte [esi + 0x11a], 1
je 0x1005fb84
movzx eax, word [ebp - 0x28]
sub ax, 1
jb 0x1005fb69
sub ax, 5
je 0x1005fb7b
sub ax, 3
je 0x1005fb72
jmp 0x1005fbca
mov dword [ebp - 4], 0x8000
jmp 0x1005fbca
mov dword [ebp - 4], 0x10000
jmp 0x1005fbca
mov dword [ebp - 4], 0x20000
jmp 0x1005fbca
cmp dword [esi + 4], 6
jne 0x1005fbca
cmp dword [esi + 8], 2
jne 0x1005fbca
cmp byte [esi + 0x11a], 1
je 0x1005fbca
movzx eax, word [ebp - 0x28]
sub ax, 1
jb 0x1005fbb1
sub ax, 5
je 0x1005fbc3
sub ax, 3
je 0x1005fbba
jmp 0x1005fbca
mov dword [ebp - 4], 0x40000
jmp 0x1005fbca
mov dword [ebp - 4], 0x80000
jmp 0x1005fbca
mov dword [ebp - 4], 0x100000
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1005fbe7
mov eax, dword [ebp - 4]
mov dword [0x100a9730], eax
ret
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret