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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x180
mov eax, dword [0x4f5568]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push 0x138
push 0
push esi
call fcn.004b67a0
add esp, 0xc
push str.KERNEL32.DLL
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
mov dword [ebp - 0x138], ebx
test ebx, ebx
jne 0x417a11
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004aca59
mov esp, ebp
pop ebp
ret 4
push edi
push 0x4dfd20
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x417e21
push 0x9c
lea eax, [ebp - 0xa0]
push 0
push eax
call fcn.004b67a0
push 0x94
lea eax, [ebp - 0x134]
mov dword [ebp - 0xa0], 0x9c
push 0
push eax
call fcn.004b67a0
add esp, 0x18
mov dword [ebp - 0x134], 0x94
lea eax, [ebp - 0xa0]
push eax
call edi
test eax, eax
jne 0x417c7e
lea eax, [ebp - 0x134]
push eax
call edi
test eax, eax
jne 0x417a96
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004aca59
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 0x130]
lea ecx, [ebp - 0x120]
mov dword [esi], eax
lea edi, [esi + 0x14]
mov eax, dword [ebp - 0x12c]
mov edx, edi
mov dword [esi + 4], eax
movzx eax, word [ebp - 0x128]
mov dword [esi + 8], eax
mov eax, ecx
sub edx, eax
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [ecx + edx - 1], al
test al, al
jne 0x417ac0
mov edx, dword [ebp - 0x124]
cmp edx, 1
jne 0x417bc5
mov ebx, dword [esi + 0xa4]
mov dword [esi + 0xc], 2
mov dword [esi + 0x130], 0
cmp ebx, 2
jne 0x417b1a
mov ecx, esi
call fcn.00418410
test eax, eax
je 0x417b91
mov eax, 1
mov word [esi + 0x94], ax
mov word [esi + 0x128], ax
mov ebx, dword [ebp - 0x138]
mov eax, dword [esi]
lea ecx, [esi + 0xa8]
mov dword [esi + 0x98], eax
sub ecx, edi
mov eax, dword [esi + 4]
mov dword [esi + 0x9c], eax
mov eax, dword [esi + 8]
mov dword [esi + 0xa0], eax
mov eax, dword [esi + 0xc]
mov dword [esi + 0xa4], eax
jmp 0x417b50
mov al, byte [edi]
lea edi, [edi + 1]
mov byte [edi + ecx - 1], al
test al, al
jne 0x417b50
cmp edx, 2
jne 0x417e93
cmp dword [esi + 0x98], 4
jne 0x417b76
mov ecx, esi
call fcn.00418070
cmp dword [esi + 0x98], 5
jne 0x417b86
mov ecx, esi
call fcn.004180c0
push esi
call fcn.00418190
jmp 0x417e93
cmp ebx, 2
jne 0x417b1a
mov ecx, esi
call fcn.00418440
test eax, eax
je 0x417ba8
mov eax, ebx
jmp 0x417b0c
cmp ebx, 2
jne 0x417b1a
mov ecx, esi
call fcn.00418470
test eax, eax
je 0x417b1a
jmp 0x417b07
cmp edx, 2
jne 0x417c63
lea ecx, [ebp - 0x120]
mov dword [esi + 0xc], 3
lea edx, [ecx + 1]
mov edi, edi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x417be0
sub ecx, edx
je 0x417bfb
lea ecx, [ebp - 0x120]
call fcn.00418550
movzx eax, ax
jmp 0x417bfd
xor eax, eax
push 0
push esi
mov word [esi + 0x94], ax
mov word [esi + 0x128], ax
call fcn.004182b0
push esi
call fcn.00418770
push esi
call fcn.00418670
mov edx, dword [ebp - 0x124]
test edx, edx
jne 0x417b20
mov dword [esi + 0xc], 2
mov dword [esi + 0x98], 3
mov dword [esi + 0x9c], 0xa
mov dword [esi + 0xa0], edx
mov dword [esi + 0xa4], 1
mov byte [esi + 0xa8], dl
jmp 0x417e93
cmp edx, 3
jne 0x417c25
mov dword [esi + 0xc], 4
mov dword [esi + 0x130], 0
jmp 0x417b20
mov eax, dword [ebp - 0x9c]
lea ecx, [ebp - 0x8c]
mov dword [esi], eax
lea edi, [esi + 0x14]
mov eax, dword [ebp - 0x98]
mov edx, edi
mov dword [esi + 4], eax
movzx eax, word [ebp - 0x94]
mov dword [esi + 8], eax
mov eax, ecx
sub edx, eax
jmp 0x417cb0
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [ecx + edx - 1], al
test al, al
jne 0x417cb0
movzx eax, word [ebp - 0xc]
mov word [esi + 0x94], ax
movzx eax, word [ebp - 0xa]
mov word [esi + 0x96], ax
mov eax, dword [ebp - 8]
test al, 1
je 0x417ce1
or dword [esi + 0x12c], 1
test al, 2
je 0x417cec
or dword [esi + 0x12c], 2
test al, 0x10
je 0x417cf7
or dword [esi + 0x12c], 0x10
test al, al
jns 0x417d02
or dword [esi + 0x12c], 0x20
test eax, 0x200
je 0x417d10
or dword [esi + 0x12c], 0x40
test eax, 0x400
je 0x417d21
or dword [esi + 0x12c], 0x80
test al, 0x40
je 0x417d2f
or dword [esi + 0x12c], 0x100
test eax, 0x100
je 0x417d40
or dword [esi + 0x12c], 0x200
movzx eax, byte [ebp - 6]
dec eax
je 0x417d65
dec eax
je 0x417d59
dec eax
jne 0x417d6f
mov dword [esi + 0x130], 1
jmp 0x417d6f
mov dword [esi + 0x130], 2
jmp 0x417d6f
mov dword [esi + 0x130], 0
push 1
push esi
call fcn.004182b0
push esi
call fcn.004186f0
mov eax, dword [ebp - 0x90]
dec eax
je 0x417d9e
dec eax
je 0x417d95
dec eax
jne 0x417da5
mov dword [esi + 0xc], 4
jmp 0x417da5
mov dword [esi + 0xc], 3
jmp 0x417da5
mov dword [esi + 0xc], 2
mov eax, dword [esi]
lea ecx, [esi + 0xa8]
mov dword [esi + 0x98], eax
sub ecx, edi
mov eax, dword [esi + 4]
mov dword [esi + 0x9c], eax
mov eax, dword [esi + 8]
mov dword [esi + 0xa0], eax
mov eax, dword [esi + 0xc]
mov dword [esi + 0xa4], eax
mov al, byte [edi]
lea edi, [edi + 1]
mov byte [edi + ecx - 1], al
test al, al
jne 0x417dd0
cmp dword [esi + 0x98], 4
movzx eax, word [esi + 0x94]
mov word [esi + 0x128], ax
movzx eax, word [esi + 0x96]
mov word [esi + 0x12a], ax
jne 0x417e09
mov ecx, esi
call fcn.00418070
cmp dword [esi + 0x98], 5
jne 0x417e19
mov ecx, esi
call fcn.004180c0
push esi
call fcn.00418190
jmp 0x417e93
call dword [sym.imp.KERNEL32.dll_GetVersion]
movzx ecx, al
lea edx, [esi + 0xa8]
shr eax, 8
mov dword [esi], ecx
movzx eax, al
mov dword [esi + 0x98], ecx
lea ecx, [esi + 0x14]
mov dword [esi + 4], eax
sub edx, ecx
mov dword [esi + 8], 0
mov dword [esi + 0xc], 3
mov dword [esi + 0x9c], eax
mov dword [esi + 0xa0], 0
mov dword [esi + 0xa4], 3
mov edi, edi
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [ecx + edx - 1], al
test al, al
jne 0x417e70
call fcn.00418590
movzx eax, ax
mov word [esi + 0x94], ax
mov word [esi + 0x128], ax
push str.GetNativeSystemInfo
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x417ebb
lea ecx, [ebp - 0x15c]
push ecx
call eax
lea eax, [ebp - 0x180]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
jmp 0x417ef4
lea eax, [ebp - 0x15c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
movdqu xmm0, xmmword [ebp - 0x15c]
mov eax, dword [ebp - 0x13c]
mov dword [ebp - 0x160], eax
movdqu xmmword [ebp - 0x180], xmm0
movdqu xmm0, xmmword [ebp - 0x14c]
movdqu xmmword [ebp - 0x170], xmm0
movzx eax, word [ebp - 0x15c]
cmp eax, 0xa
ja case.default.0x417f00
jmp dword [eax*4 + 0x418018]
mov dword [esi + 0x134], 1
jmp 0x417f89
mov dword [esi + 0x134], 8
jmp 0x417f89
mov dword [esi + 0x134], 2
jmp 0x417f89
mov dword [esi + 0x134], 9
jmp 0x417f89
mov dword [esi + 0x134], 0xa
jmp 0x417f89
mov dword [esi + 0x134], 3
jmp 0x417f89
mov dword [esi + 0x134], 7
jmp 0x417f89
mov dword [esi + 0x134], 4
jmp 0x417f89
mov dword [esi + 0x134], 5
jmp 0x417f89
mov dword [esi + 0x134], 6
jmp 0x417f89
mov dword [esi + 0x134], 0
movzx eax, word [ebp - 0x180]
cmp eax, 0xa
ja case.default.0x417f95
jmp dword [eax*4 + 0x418044]
mov dword [esi + 0x10], 1
jmp 0x417ffd
mov dword [esi + 0x10], 8
jmp 0x417ffd
mov dword [esi + 0x10], 2
jmp 0x417ffd
mov dword [esi + 0x10], 9
jmp 0x417ffd
mov dword [esi + 0x10], 0xa
jmp 0x417ffd
mov dword [esi + 0x10], 3
jmp 0x417ffd
mov dword [esi + 0x10], 7
jmp 0x417ffd
mov dword [esi + 0x10], 4
jmp 0x417ffd
mov dword [esi + 0x10], 5
jmp 0x417ffd
mov dword [esi + 0x10], 6
jmp 0x417ffd
mov dword [esi + 0x10], 0
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004aca59
mov esp, ebp
pop ebp
ret 4