Function at 0x408350
Capabilities:
Get file version info
Get graphical window text
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x18e8
call sub.ntdll.dll__chkstk
mov eax, dword [ebp + 0xc]
xor esi, esi
cmp eax, 0x82
je 0x40875f
mov ebx, dword [ebp + 8]
cmp eax, 0x111
je 0x40879f
cmp eax, 0x110
jne 0x408872
mov esi, dword [ebp + 0x14]
mov dword [0x414bb4], esi
lea edi, [ebp - 0x10f4]
push 0x104
push edi
push ebx
call dword [sym.imp.user32.dll_GetWindowTextW]
lea eax, [esi + 0x24c]
lea ebx, [ebp - 0x18f4]
mov dword [ebp - 0x14], eax
push eax
push edi
push ebx
call dword [sym.imp.user32.dll_wsprintfW]
add esp, 0xc
mov edi, dword [sym.imp.user32.dll_SetWindowTextW]
push ebx
push dword [ebp + 8]
call edi
lea ecx, [esi + 0x234]
lea edx, [ebp - 0x10f4]
push 6
call sym._format_date
add esp, 4
push 0x3f0
push dword [ebp + 8]
call dword [sym.imp.user32.dll_GetDlgItem]
lea ecx, [ebp - 0x10f4]
push ecx
push eax
call edi
mov edi, dword [esi + 0x23c]
mov esi, dword [esi + 0x240]
mov word [ebp - 0x874], 0
lea ebx, [ebp - 0x872]
nop word cs:[eax + eax]
nop
push 0
push 0xa
push edi
push esi
call sub.ntdll.dll__aulldiv
mov dword [ebp - 0x10], edx
mov ecx, eax
mov edx, eax
add ecx, eax
lea eax, [ecx + ecx*4]
mov ecx, esi
sub ecx, eax
or ecx, 0x30
mov word [ebx - 4], cx
add ebx, 0xfffffffe
mov eax, 9
cmp eax, esi
mov eax, 0
sbb eax, edi
mov esi, edx
mov edi, dword [ebp - 0x10]
jb 0x408420
mov word [ebp - 0x10f4], cx
lea eax, [ebp - 0x10f2]
nop word [eax + eax]
movzx ecx, word [ebx]
add ebx, 2
mov word [eax], cx
add eax, 2
test cx, cx
jne 0x408470
lea eax, [ebp - 0x10f4]
push eax
push str._s_Bytes
lea edi, [ebp - 0x18f4]
push edi
call dword [sym.imp.user32.dll_wsprintfW]
add esp, 0xc
push 0x3f3
mov ebx, dword [ebp + 8]
push ebx
call dword [sym.imp.user32.dll_GetDlgItem]
push edi
push eax
mov esi, dword [sym.imp.user32.dll_SetWindowTextW]
call esi
mov edi, esi
push 0x3ee
push ebx
mov esi, dword [sym.imp.user32.dll_GetDlgItem]
call esi
push dword [ebp - 0x14]
push eax
call edi
mov edi, dword [0x414bb4]
push 0x3ef
push ebx
call esi
push edi
push eax
call dword [sym.imp.user32.dll_SetWindowTextW]
mov eax, dword [ebp + 0x14]
mov edi, dword [eax + 0x220]
and edi, 1
push 0x3f4
push ebx
call esi
push 0
push edi
push 0xf1
push eax
call dword [sym.imp.user32.dll_SendMessageW]
mov eax, dword [ebp + 0x14]
mov edi, dword [eax + 0x220]
shr edi, 5
and edi, 1
push 0x3f5
push ebx
call dword [sym.imp.user32.dll_GetDlgItem]
mov esi, dword [sym.imp.user32.dll_GetDlgItem]
push 0
push edi
push 0xf1
push eax
call dword [sym.imp.user32.dll_SendMessageW]
mov eax, dword [ebp + 0x14]
mov edi, dword [eax + 0x220]
shr edi, 0xb
and edi, 1
push 0x3f6
push ebx
call esi
push 0
push edi
push 0xf1
push eax
call dword [sym.imp.user32.dll_SendMessageW]
mov eax, dword [ebp + 0x14]
mov edi, dword [eax + 0x220]
shr edi, 1
and edi, 1
push 0x3f7
push ebx
call esi
push 0
push edi
push 0xf1
push eax
call dword [sym.imp.user32.dll_SendMessageW]
mov eax, dword [ebp + 0x14]
mov edi, dword [eax + 0x220]
shr edi, 2
and edi, 1
push 0x3f8
push ebx
call esi
push 0
push edi
push 0xf1
push eax
call dword [sym.imp.user32.dll_SendMessageW]
mov edi, dword [0x414bb4]
push 0
push edi
call dword [sym.imp.version.dll_GetFileVersionInfoSizeW]
test eax, eax
je 0x40886d
mov esi, eax
mov eax, dword fs:[0x18]
mov dword [ebp - 0x8f4], eax
mov eax, dword [ebp - 0x8f4]
mov eax, dword [eax + 0x30]
push esi
push 0
push dword [eax + 0x18]
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [edi + 0x4b8], eax
push eax
push esi
push 0
push edi
call dword [sym.imp.version.dll_GetFileVersionInfoW]
test eax, eax
je 0x40886d
lea esi, [ebp - 0x20]
mov eax, edi
lea edi, [ebp - 0x24]
push esi
push edi
push 0x40952e
mov dword [ebp - 0x14], eax
push dword [eax + 0x4b8]
call dword [sym.imp.version.dll_VerQueryValueW]
test eax, eax
je 0x40866a
cmp dword [ebp - 0x20], 0x34
jne 0x40866a
mov ecx, dword [ebp - 0x24]
mov eax, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
movzx edx, cx
shr ecx, 0x10
movzx ebx, ax
shr eax, 0x10
sub esp, 0x1c
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], eax
lea ebx, [ebp - 0x8f4]
mov dword [esp], ebx
call sym._swprintf
add esp, 0x1c
push ebx
mov ebx, dword [ebp + 8]
push 0x3f1
push ebx
call dword [sym.imp.user32.dll_SetDlgItemTextW]
push esi
push edi
push str.VarFileInfoTranslation
mov eax, dword [ebp - 0x14]
push dword [eax + 0x4b8]
call dword [sym.imp.version.dll_VerQueryValueW]
test eax, eax
je 0x40886d
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x10], ecx
mov esi, dword [ebp - 0x20]
push 0x3f9
push ebx
call dword [sym.imp.user32.dll_GetDlgItem]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], esi
test esi, esi
jle 0x40881c
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
lea ebx, [ebp - 0xf4]
jmp 0x4086d2
mov eax, dword [ebp - 0x10]
add eax, 4
mov dword [ebp - 0x10], eax
cmp eax, dword [ebp - 0x18]
jae 0x40881c
mov eax, str.Comments
mov esi, 0x4095b8
jmp 0x4086e9
mov eax, dword [esi]
add esi, 4
test eax, eax
je 0x4086c0
push 0x64
push ebx
push 0xffffffffffffffff
push eax
push 0
push 0
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov ecx, dword [ebp - 0x10]
movzx eax, word [ecx + 2]
movzx ecx, word [ecx]
push ebx
push eax
push ecx
push str.StringFileInfo_04x_04x_s
lea edi, [ebp - 0x8f4]
push edi
call dword [sym.imp.user32.dll_wsprintfW]
add esp, 0x14
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x28]
push eax
push edi
mov eax, dword [ebp - 0x14]
push dword [eax + 0x4b8]
call dword [sym.imp.version.dll_VerQueryValueW]
test eax, eax
je 0x4086e0
push ebx
push 0
push 0x180
mov edi, ebx
mov ebx, dword [ebp - 0x1c]
push ebx
call dword [sym.imp.user32.dll_SendMessageW]
push dword [ebp - 0x28]
push eax
push 0x19a
push ebx
mov ebx, edi
call dword [sym.imp.user32.dll_SendMessageW]
jmp 0x4086e0
mov eax, dword [0x414bb4]
mov ecx, dword [eax + 0x4b8]
mov eax, dword fs:[0x18]
mov dword [ebp - 0x8f4], eax
mov eax, dword [ebp - 0x8f4]
mov eax, dword [eax + 0x30]
push ecx
push 0
push dword [eax + 0x18]
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [0x414bb4]
mov dword [eax + 0x4b8], 0
jmp 0x408872
mov eax, dword [ebp + 0x10]
mov ecx, eax
shr ecx, 0x10
mov esi, 1
je 0x40880a
cmp cx, 1
jne 0x408872
mov edi, dword [sym.imp.user32.dll_GetDlgItem]
push 0x3f9
push ebx
call edi
mov ecx, ebx
mov ebx, eax
push 0x3fa
push ecx
call edi
mov edi, eax
push 0
push 0
push 0x188
push ebx
call dword [sym.imp.user32.dll_SendMessageW]
cmp eax, 0xffffffff
je 0x408872
push 0
push eax
push 0x199
push ebx
call dword [sym.imp.user32.dll_SendMessageW]
test eax, eax
je 0x408872
push eax
push edi
call dword [sym.imp.user32.dll_SetWindowTextW]
jmp 0x408872
lea ecx, [eax - 1]
cmp ecx, 1
ja 0x408872
push eax
push ebx
call dword [sym.imp.user32.dll_EndDialog]
jmp 0x408872
push 0
push 0
push 0x186
mov ebx, dword [ebp - 0x1c]
push ebx
mov esi, dword [sym.imp.user32.dll_SendMessageW]
call esi
push 0x3fa
push dword [ebp + 8]
call dword [sym.imp.user32.dll_GetDlgItem]
mov edi, eax
push 0
push 0
push 0x188
push ebx
call esi
cmp eax, 0xffffffff
je 0x40886d
push 0
push eax
push 0x199
push ebx
call dword [sym.imp.user32.dll_SendMessageW]
test eax, eax
je 0x40886d
push eax
push edi
call dword [sym.imp.user32.dll_SetWindowTextW]
mov esi, 1
mov eax, esi
add esp, 0x18e8
pop esi
pop edi
pop ebx
pop ebp
ret 0x10