Function at 0x40ed80
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x438ff5
mov eax, dword fs:[0]
push eax
sub esp, 0x134
mov eax, dword [0x450068]
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 dword [ebp - 0x130], ecx
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0x108], 0
mov dword [ebp - 0x104], 0
mov dword [ebp - 0x114], 0
mov dword [ebp - 0x110], 7
mov word [ebp - 0x124], ax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x108]
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
push ecx
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
test esi, esi
jne 0x40ee3c
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
push str.File
push str._s:__s
push str.GetFileVersionInfoSize
call fcn.004116a0
add esp, 0x10
mov esi, 1
jmp 0x40f2ce
push esi
call fcn.0041aed7
add esp, 4
lea ecx, [ebp + 8]
cmp dword [ebp + 0x1c], 8
mov ebx, eax
mov dword [ebp - 0x138], ebx
cmovae ecx, dword [ebp + 8]
push ebx
push esi
push dword [ebp - 0x108]
push ecx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x40ee9e
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
push str.File
push str._s:__s
push str.GetFileVersionInfo
call fcn.004116a0
push ebx
call fcn.0041aafc
add esp, 0x14
mov esi, 2
jmp 0x40f2ce
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x12c]
push eax
push str.VarFileInfoTranslation
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
jne 0x40ef29
mov edi, dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0xfffffffffffffff4
call edi
mov esi, dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
cmp eax, 0xffffffff
je 0x40eed6
push 0xc
push eax
call esi
push str._ERROR_
push 2
call fcn.00422bab
add esp, 4
push eax
call fcn.004040e0
add esp, 8
push 0xfffffffffffffff4
call edi
cmp eax, 0xffffffff
je 0x40eefc
push 7
push eax
call esi
push str.Failed_to_query_translation_info.
push 0x448f94
push 2
call fcn.00422bab
add esp, 4
push eax
call fcn.004040e0
push ebx
call fcn.0041aafc
add esp, 0x10
mov esi, 3
jmp 0x40f2ce
test dword [ebp - 0x104], 0xfffffffc
mov dword [ebp - 0x134], 0
jbe 0x40f2c3
mov edi, dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebx, dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
nop
push 7
xor eax, eax
mov dword [ebp - 0x100], 0x448b5c
push str.Company
lea ecx, [ebp - 0xfc]
mov dword [ebp - 0xec], 0
mov dword [ebp - 0xe8], 7
mov word [ebp - 0xfc], ax
call fcn.00402cf0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xe0]
push 0xb
xor eax, eax
mov dword [ebp - 0xe4], 0x448b84
push str.Description
mov dword [ebp - 0xd0], 0
mov dword [ebp - 0xcc], 7
mov word [ebp - 0xe0], ax
call fcn.00402cf0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xc4]
push 7
xor eax, eax
mov dword [ebp - 0xc8], 0x448bbc
push str.Product
mov dword [ebp - 0xb4], 0
mov dword [ebp - 0xb0], 7
mov word [ebp - 0xc4], ax
call fcn.00402cf0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xa8]
push 0xf
xor eax, eax
mov dword [ebp - 0xac], 0x448be4
push str.Product_version
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x94], 7
mov word [ebp - 0xa8], ax
call fcn.00402cf0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x8c]
push 0xc
xor eax, eax
mov dword [ebp - 0x90], 0x448c24
push str.File_version
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 7
mov word [ebp - 0x8c], ax
call fcn.00402cf0
mov eax, dword [ebp - 0x134]
xor esi, esi
shl eax, 2
mov dword [ebp - 0x140], eax
add eax, 2
mov byte [ebp - 4], 6
mov dword [ebp - 0x13c], eax
push 0x64
lea eax, [ebp - 0x74]
push 0
push eax
call fcn.0041d060
mov ecx, dword [ebp - 0x12c]
lea eax, [esi*8]
sub eax, esi
mov dword [ebp - 0x10c], 0
push dword [ebp + eax*4 - 0x100]
mov eax, dword [ebp - 0x13c]
movzx eax, word [eax + ecx]
push eax
mov eax, dword [ebp - 0x140]
movzx eax, word [eax + ecx]
push eax
push str.StringFileInfo_04x_04x_s
lea eax, [ebp - 0x74]
push 0x32
push eax
call fcn.00413080
add esp, 0x24
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x138]
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x40f22c
cmp esi, 4
ja case.default.0x40f11a
jmp dword [esi*4 + 0x40f32c]
mov edx, dword [ebp - 0x128]
mov eax, edx
lea edi, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40f130
mov ecx, dword [ebp - 0x130]
sub eax, edi
sar eax, 1
push eax
push edx
call fcn.00402cf0
mov edi, dword [sym.imp.KERNEL32.dll_GetStdHandle]
jmp case.default.0x40f11a
mov edx, dword [ebp - 0x128]
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40f162
sub ecx, edi
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x130]
push edx
lea ecx, [ecx + 0x18]
call fcn.00402cf0
mov edi, dword [sym.imp.KERNEL32.dll_GetStdHandle]
jmp case.default.0x40f11a
mov edx, dword [ebp - 0x128]
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40f197
sub ecx, edi
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x130]
push edx
lea ecx, [ecx + 0x30]
call fcn.00402cf0
mov edi, dword [sym.imp.KERNEL32.dll_GetStdHandle]
jmp case.default.0x40f11a
mov edx, dword [ebp - 0x128]
mov ecx, edx
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40f1d0
sub ecx, edi
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x130]
push edx
lea ecx, [ecx + 0x48]
call fcn.00402cf0
mov edi, dword [sym.imp.KERNEL32.dll_GetStdHandle]
jmp case.default.0x40f11a
mov edx, dword [ebp - 0x128]
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40f205
sub ecx, edi
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x130]
push edx
lea ecx, [ecx + 0x60]
call fcn.00402cf0
mov edi, dword [sym.imp.KERNEL32.dll_GetStdHandle]
jmp case.default.0x40f11a
push 0xfffffffffffffff4
call edi
cmp eax, 0xffffffff
je 0x40f23a
push 0xc
push eax
call ebx
push str._ERROR_
push 2
call fcn.00422bab
add esp, 4
push eax
call fcn.004040e0
add esp, 8
push 0xfffffffffffffff4
call edi
cmp eax, 0xffffffff
je 0x40f260
push 7
push eax
call ebx
lea eax, [ebp - 0x74]
push eax
push 0x448f94
push 2
call fcn.00422bab
add esp, 4
push eax
call fcn.004040e0
add esp, 0xc
inc esi
cmp esi, 5
jb 0x40f095
push 0x40f340
push 5
push 0x1c
lea eax, [ebp - 0x100]
mov byte [ebp - 4], 1
push eax
call fcn.0041ab31
mov ecx, dword [ebp - 0x134]
mov eax, dword [ebp - 0x104]
inc ecx
shr eax, 2
mov dword [ebp - 0x134], ecx
cmp ecx, eax
jb 0x40ef50
mov ebx, dword [ebp - 0x138]
push ebx
call fcn.0041aafc
add esp, 4
xor esi, esi
mov edx, dword [ebp + 0x1c]
cmp edx, 8
jb 0x40f304
mov ecx, dword [ebp + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40f2fa
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f324
push edx
push ecx
call fcn.0041aec9
add esp, 8
mov eax, esi
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.0041aaeb
mov esp, ebp
pop ebp
ret 0x18
call fcn.00422e9e
nop dword [eax]
and ecx, esi
inc eax
add byte [edi - 0xf], dl
inc eax
add byte [ecx + esi*8 - 0xe3effc0], cl
inc eax
add dl, bh
int1
inc eax
add byte [esi - 0x75], dl
int1
mov ecx, dword [esi + 0x18]
cmp ecx, 8
jb 0x40f379
mov eax, dword [esi + 4]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x40f36f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f38f
mov eax, edx
push ecx
push eax
call fcn.0041aec9
add esp, 8
mov dword [esi + 0x14], 0
xor eax, eax
mov dword [esi + 0x18], 7
mov word [esi + 4], ax
pop esi
ret
call fcn.00422e9e
int3