Function at 0x407f6c
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 esi, edx
mov ebx, eax
lea edi, [ebp - 0x144]
xor eax, eax
mov dword [ebp - 4], eax
xor edx, edx
push ebp
push 0x4083aa
push dword fs:[edx]
mov dword fs:[edx], esp
mov dword [edi], 0x11c
push edi
call sub.kernel32.dll_GetVersionExW
test eax, eax
jne 0x407fbf
mov dword [edi], 0x114
push edi
call sub.kernel32.dll_GetVersionExW
test eax, eax
jne 0x407fbf
call sub.rtl120.bpl__System__TryFinallyExit_qqrv
jmp 0x4083b1
cmp dword [edi + 0x10], 2
je 0x407fcf
call sub.rtl120.bpl__System__TryFinallyExit_qqrv
jmp 0x4083b1
test ebx, ebx
je 0x407fdd
movzx eax, word [edi + 0x118]
mov word [ebx], ax
test esi, esi
je 0x407fea
movzx eax, byte [edi + 0x11a]
mov byte [esi], al
cmp dword [0x4b51c0], 0
je 0x408005
mov eax, dword [0x4b51c0]
mov dword [ebp - 4], eax
call sub.rtl120.bpl__System__TryFinallyExit_qqrv
jmp 0x4083b1
lea eax, [ebp - 0x28]
mov edx, 0x24
call fcn.00401948
push 0x4083bc
push 0x4083e4
call sub.kernel32.dll_GetModuleHandleW_1
push eax
call fcn.004015a0
test eax, eax
je 0x408033
lea edx, [ebp - 0x28]
push edx
call eax
jmp 0x40803c
lea eax, [ebp - 0x28]
push eax
call sub.kernel32.dll_GetSystemInfo
cmp dword [edi + 4], 5
jne 0x408051
cmp dword [edi + 8], 1
jne 0x408051
cmp byte [edi + 0x11a], 1
je 0x408066
cmp dword [edi + 4], 5
jne 0x4080a5
cmp dword [edi + 8], 2
jne 0x4080a5
cmp byte [edi + 0x11a], 1
jne 0x4080a5
movzx eax, word [ebp - 0x28]
sub ax, 1
jb 0x408081
sub ax, 5
je 0x408099
sub ax, 3
je 0x40808d
jmp 0x408394
mov dword [ebp - 4], 1
jmp 0x408394
mov dword [ebp - 4], 2
jmp 0x408394
mov dword [ebp - 4], 4
jmp 0x408394
cmp dword [edi + 4], 6
jne 0x4080f9
cmp dword [edi + 8], 0
jne 0x4080f9
cmp byte [edi + 0x11a], 1
jne 0x4080f9
movzx eax, word [ebp - 0x28]
sub ax, 1
jb 0x4080d5
sub ax, 5
je 0x4080ed
sub ax, 3
je 0x4080e1
jmp 0x408394
mov dword [ebp - 4], 8
jmp 0x408394
mov dword [ebp - 4], 0x10
jmp 0x408394
mov dword [ebp - 4], 0x20
jmp 0x408394
cmp dword [edi + 4], 6
jne 0x40814d
cmp dword [edi + 8], 1
jne 0x40814d
cmp byte [edi + 0x11a], 1
jne 0x40814d
movzx eax, word [ebp - 0x28]
sub ax, 1
jb 0x408129
sub ax, 5
je 0x408141
sub ax, 3
je 0x408135
jmp 0x408394
mov dword [ebp - 4], 0x40
jmp 0x408394
mov dword [ebp - 4], 0x80
jmp 0x408394
mov dword [ebp - 4], pe_nt_image_headers32
jmp 0x408394
cmp dword [edi + 4], 6
jne 0x4081a1
cmp dword [edi + 8], 2
jne 0x4081a1
cmp byte [edi + 0x11a], 1
jne 0x4081a1
movzx eax, word [ebp - 0x28]
sub ax, 1
jb 0x40817d
sub ax, 5
je 0x408195
sub ax, 3
je 0x408189
jmp 0x408394
mov dword [ebp - 4], 0x200
jmp 0x408394
mov dword [ebp - 4], 0x400
jmp 0x408394
mov dword [ebp - 4], 0x800
jmp 0x408394
cmp dword [edi + 4], 6
jne 0x4081f5
cmp dword [edi + 8], 3
jne 0x4081f5
cmp byte [edi + 0x11a], 1
jne 0x4081f5
movzx eax, word [ebp - 0x28]
sub ax, 1
jb 0x4081d1
sub ax, 5
je 0x4081e9
sub ax, 3
je 0x4081dd
jmp 0x408394
mov dword [ebp - 4], 0x200000
jmp 0x408394
mov dword [ebp - 4], 0x400000
jmp 0x408394
mov dword [ebp - 4], 0x800000
jmp 0x408394
cmp dword [edi + 4], 6
jne 0x408249
cmp dword [edi + 8], 4
jne 0x408249
cmp byte [edi + 0x11a], 1
jne 0x408249
movzx eax, word [ebp - 0x28]
sub ax, 1
jb 0x408225
sub ax, 5
je 0x40823d
sub ax, 3
je 0x408231
jmp 0x408394
mov dword [ebp - 4], 0x1000000
jmp 0x408394
mov dword [ebp - 4], 0x2000000
jmp 0x408394
mov dword [ebp - 4], 0x4000000
jmp 0x408394
cmp dword [edi + 4], 0xa
jne 0x40829d
cmp dword [edi + 8], 0
jne 0x40829d
cmp byte [edi + 0x11a], 1
jne 0x40829d
movzx eax, word [ebp - 0x28]
sub ax, 1
jb 0x408279
sub ax, 5
je 0x408291
sub ax, 3
je 0x408285
jmp 0x408394
mov dword [ebp - 4], 0x1000000
jmp 0x408394
mov dword [ebp - 4], 0x2000000
jmp 0x408394
mov dword [ebp - 4], 0x4000000
jmp 0x408394
cmp dword [edi + 4], 5
jne 0x4082f1
cmp dword [edi + 8], 2
jne 0x4082f1
cmp byte [edi + 0x11a], 1
je 0x4082f1
movzx eax, word [ebp - 0x28]
sub ax, 1
jb 0x4082cd
sub ax, 5
je 0x4082e5
sub ax, 3
je 0x4082d9
jmp 0x408394
mov dword [ebp - 4], 0x1000
jmp 0x408394
mov dword [ebp - 4], 0x2000
jmp 0x408394
mov dword [ebp - 4], 0x4000
jmp 0x408394
cmp dword [edi + 4], 6
jne 0x408306
cmp dword [edi + 8], 0
jne 0x408306
cmp byte [edi + 0x11a], 1
jne 0x40831b
cmp dword [edi + 4], 6
jne 0x40834e
cmp dword [edi + 8], 1
jne 0x40834e
cmp byte [edi + 0x11a], 1
je 0x40834e
movzx eax, word [ebp - 0x28]
sub ax, 1
jb 0x408333
sub ax, 5
je 0x408345
sub ax, 3
je 0x40833c
jmp 0x408394
mov dword [ebp - 4], 0x8000
jmp 0x408394
mov dword [ebp - 4], 0x10000
jmp 0x408394
mov dword [ebp - 4], 0x20000
jmp 0x408394
cmp dword [edi + 4], 6
jne 0x408394
cmp dword [edi + 8], 2
jne 0x408394
cmp byte [edi + 0x11a], 1
je 0x408394
movzx eax, word [ebp - 0x28]
sub ax, 1
jb 0x40837b
sub ax, 5
je 0x40838d
sub ax, 3
je 0x408384
jmp 0x408394
mov dword [ebp - 4], 0x40000
jmp 0x408394
mov dword [ebp - 4], 0x80000
jmp 0x408394
mov dword [ebp - 4], 0x100000
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4083b1
mov eax, dword [ebp - 4]
mov dword [0x4b51c0], eax
ret
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret