Function at 0x4250b0
Capabilities:
Get file version info
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a0725
mov eax, dword fs:[0]
push eax
sub esp, 0x270
mov eax, dword [0x4cc0a0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x1bc], ebx
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c8], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x14], 0xf
cmp dword [ebx + 0x14], 0x10
mov dword [ebp - 0x1c4], ebx
mov dword [ebx + 0x10], 0
jb 0x425123
mov eax, dword [ebx]
jmp 0x425125
mov eax, ebx
push 0
push 0x4c0b04
mov byte [eax], 0
call fcn.00409600
push 0x9c
lea eax, [ebp - 0x11c]
mov dword [ebp - 4], 0
push 0
push eax
mov dword [ebp - 0x1c8], 1
call fcn.004797f0
add esp, 0xc
mov dword [ebp - 0x11c], 0x9c
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea ecx, [ebp - 0x1e0]
call fcn.00421700
push str._ntdll.dll
push eax
lea eax, [ebp - 0x44]
mov dword [ebp - 4], 1
push eax
call fcn.0041a2b0
add esp, 0xc
mov eax, dword [ebp - 0x1cc]
cmp eax, 0x10
jb 0x4251b4
inc eax
lea ecx, [ebp - 0x1e0]
push eax
push dword [ebp - 0x1e0]
call fcn.00409a60
mov dword [ebp - 0x1cc], 0xf
mov dword [ebp - 0x1d0], 0
mov byte [ebp - 0x1e0], 0
mov byte [ebp - 0x1bd], 0
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2c]
cmp dword [ebp - 0x30], 0x10
lea eax, [ebp - 0x44]
push ecx
cmovae eax, dword [ebp - 0x44]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x2c], eax
cmp eax, ecx
ja 0x425220
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], eax
cmovae ecx, dword [ebp - 0x28]
mov byte [ecx + eax], 0
jmp 0x42522d
sub eax, ecx
lea ecx, [ebp - 0x28]
push 0
push eax
call fcn.00413340
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
lea eax, [ebp - 0x44]
cmovae ecx, dword [ebp - 0x28]
cmp dword [ebp - 0x30], 0x10
push ecx
cmovae eax, dword [ebp - 0x44]
push 0x1000
push 0
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoA]
test eax, eax
je 0x425291
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x1bc]
push ecx
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push 0x4c0fa8
push eax
call dword [sym.imp.VERSION.dll_VerQueryValueA]
test eax, eax
je 0x425291
mov eax, dword [ebp - 0x1bc]
mov byte [ebp - 0x1bd], 1
mov esi, dword [eax + 8]
mov edi, dword [eax + 0xc]
jmp 0x42529d
mov edi, dword [ebp - 0x1c4]
mov esi, dword [ebp - 0x1c4]
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x4252b2
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00409a60
cmp byte [ebp - 0x1bd], 0
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
je 0x4252f5
mov eax, esi
shr eax, 0x10
mov dword [ebp - 0x118], eax
movzx eax, si
mov dword [ebp - 0x114], eax
mov eax, edi
shr eax, 0x10
mov dword [ebp - 0x110], eax
movzx eax, di
mov dword [ebp - 0x10c], eax
mov ecx, 0x27
lea esi, [ebp - 0x11c]
lea edi, [ebp - 0x27c]
rep movsd dword es:[edi], dword [esi]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x30]
cmp eax, 0x10
jb 0x425321
inc eax
lea ecx, [ebp - 0x44]
push eax
push dword [ebp - 0x44]
call fcn.00409a60
cmp byte [ebp - 0x1e2], 1
lea esi, [ebp - 0x27c]
mov eax, dword [ebp - 0x278]
lea edi, [ebp - 0x1b8]
mov ecx, 0x27
rep movsd dword es:[edi], dword [esi]
je 0x4253c9
sub eax, 5
je 0x4253ab
sub eax, 1
je 0x42536d
sub eax, 4
jne case.default.0x4253f3
push 0x13
push str.Windows_Server_2012
mov ecx, ebx
call fcn.00409600
jmp case.default.0x4253f3
mov eax, dword [ebp - 0x274]
cmp eax, 3
ja case.default.0x4253f3
jmp dword [eax*4 + 0x4254fc]
push str.Windows_Server_2008
jmp 0x425437
push str.Windows_Server_2008_R2
jmp 0x425437
push str.Windows_Server_2012
jmp 0x425437
push str.Windows_Server_2012_R2
jmp 0x425437
mov eax, dword [ebp - 0x274]
sub eax, 2
jne case.default.0x4253f3
push 0x59
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push str.Windows_Server_2003
jmp 0x425437
sub eax, 5
je 0x425416
sub eax, 1
je 0x4253e8
sub eax, 4
jne case.default.0x4253f3
push 0xa
push str.Windows_10
mov ecx, ebx
call fcn.00409600
jmp case.default.0x4253f3
mov eax, dword [ebp - 0x274]
cmp eax, 3
ja case.default.0x4253f3
jmp dword [eax*4 + 0x42550c]
push str.Windows_Vista
jmp 0x425437
push str.Windows_7
jmp 0x425437
push str.Windows_8
jmp 0x425437
push str.Windows_8.1
jmp 0x425437
mov eax, dword [ebp - 0x274]
sub eax, 0
je 0x425432
sub eax, 1
je 0x42542b
sub eax, 1
jne case.default.0x4253f3
push str.WindowsXP
jmp 0x425437
push str.Windows2000
mov ecx, ebx
call fcn.00411c60
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp word [ebp - 0x80], 9
jne 0x42545d
push 4
push str._X64
mov ecx, ebx
call fcn.004133f0
cmp byte [ebp - 0x1a4], 0
mov dword [ebp - 0x48], 0xf
mov dword [ebp - 0x4c], 0
mov byte [ebp - 0x5c], 0
jne 0x42547c
xor ecx, ecx
jmp 0x42548e
lea ecx, [ebp - 0x1a4]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x425485
sub ecx, edx
push ecx
lea eax, [ebp - 0x1a4]
push eax
lea ecx, [ebp - 0x5c]
call fcn.00409600
mov dword [ebp - 4], 5
cmp dword [ebp - 0x4c], 0
jbe 0x4254c8
push 1
push 0x4c1094
mov ecx, ebx
call fcn.004133f0
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x5c]
mov ecx, ebx
push eax
call fcn.00413520
mov ecx, dword [ebp - 0x48]
cmp ecx, 0x10
jb 0x4254dd
inc ecx
push ecx
push dword [ebp - 0x5c]
lea ecx, [ebp - 0x5c]
call fcn.00409a60
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00442377
mov esp, ebp
pop ebp
ret