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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5070c5
mov eax, dword fs:[0]
push eax
sub esp, 0x270
mov eax, dword [0x5503dc]
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 0x40dab3
mov eax, dword [ebx]
jmp 0x40dab5
mov eax, ebx
push 0
push 0x53f3ac
mov byte [eax], 0
call fcn.00407d60
push 0x9c
lea eax, [ebp - 0x11c]
mov dword [ebp - 4], 0
push 0
push eax
mov dword [ebp - 0x1c8], 1
call fcn.004debe0
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.0040a090
push str._ntdll.dll
push eax
lea eax, [ebp - 0x44]
mov dword [ebp - 4], 1
push eax
call fcn.004131d0
add esp, 0xc
mov eax, dword [ebp - 0x1cc]
cmp eax, 0x10
jb 0x40db44
inc eax
lea ecx, [ebp - 0x1e0]
push eax
push dword [ebp - 0x1e0]
call fcn.00408290
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 0x40dbb0
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 0x40dbbd
sub eax, ecx
lea ecx, [ebp - 0x28]
push 0
push eax
call fcn.00412900
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 0x40dc21
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 0x53c21c
push eax
call dword [sym.imp.VERSION.dll_VerQueryValueA]
test eax, eax
je 0x40dc21
mov eax, dword [ebp - 0x1bc]
mov byte [ebp - 0x1bd], 1
mov esi, dword [eax + 8]
mov edi, dword [eax + 0xc]
jmp 0x40dc2d
mov edi, dword [ebp - 0x1c4]
mov esi, dword [ebp - 0x1c4]
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x40dc42
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00408290
cmp byte [ebp - 0x1bd], 0
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
je 0x40dc85
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 0x40dcb1
inc eax
lea ecx, [ebp - 0x44]
push eax
push dword [ebp - 0x44]
call fcn.00408290
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 0x40dd59
sub eax, 5
je 0x40dd3b
sub eax, 1
je 0x40dcfd
sub eax, 4
jne case.default.0x40dd83
push 0x13
push str.Windows_Server_2012
mov ecx, ebx
call fcn.00407d60
jmp case.default.0x40dd83
mov eax, dword [ebp - 0x274]
cmp eax, 3
ja case.default.0x40dd83
jmp dword [eax*4 + 0x40de8c]
push str.Windows_Server_2008
jmp 0x40ddc7
push str.Windows_Server_2008_R2
jmp 0x40ddc7
push str.Windows_Server_2012
jmp 0x40ddc7
push str.Windows_Server_2012_R2
jmp 0x40ddc7
mov eax, dword [ebp - 0x274]
sub eax, 2
jne case.default.0x40dd83
push 0x59
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push str.Windows_Server_2003
jmp 0x40ddc7
sub eax, 5
je 0x40dda6
sub eax, 1
je 0x40dd78
sub eax, 4
jne case.default.0x40dd83
push 0xa
push str.Windows_10
mov ecx, ebx
call fcn.00407d60
jmp case.default.0x40dd83
mov eax, dword [ebp - 0x274]
cmp eax, 3
ja case.default.0x40dd83
jmp dword [eax*4 + 0x40de9c]
push str.Windows_Vista
jmp 0x40ddc7
push str.Windows_7
jmp 0x40ddc7
push str.Windows_8
jmp 0x40ddc7
push str.Windows_8.1
jmp 0x40ddc7
mov eax, dword [ebp - 0x274]
sub eax, 0
je 0x40ddc2
sub eax, 1
je 0x40ddbb
sub eax, 1
jne case.default.0x40dd83
push str.WindowsXP
jmp 0x40ddc7
push str.Windows2000
mov ecx, ebx
call fcn.00412380
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp word [ebp - 0x80], 9
jne 0x40dded
push 4
push str._X64
mov ecx, ebx
call fcn.00407f90
cmp byte [ebp - 0x1a4], 0
mov dword [ebp - 0x48], 0xf
mov dword [ebp - 0x4c], 0
mov byte [ebp - 0x5c], 0
jne 0x40de0c
xor ecx, ecx
jmp 0x40de1e
lea ecx, [ebp - 0x1a4]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40de15
sub ecx, edx
push ecx
lea eax, [ebp - 0x1a4]
push eax
lea ecx, [ebp - 0x5c]
call fcn.00407d60
mov dword [ebp - 4], 5
cmp dword [ebp - 0x4c], 0
jbe 0x40de58
push 1
push 0x53c308
mov ecx, ebx
call fcn.00407f90
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x5c]
mov ecx, ebx
push eax
call fcn.004080c0
mov ecx, dword [ebp - 0x48]
cmp ecx, 0x10
jb 0x40de6d
inc ecx
push ecx
push dword [ebp - 0x5c]
lea ecx, [ebp - 0x5c]
call fcn.00408290
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.004c9018
mov esp, ebp
pop ebp
ret