Function at 0x419340
Capabilities:
Get file version info

Disassembly:
push 0xffffffffffffffff
push 0x458246
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x248
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x268]
lea eax, [esp + 0x18]
xor ebx, ebx
push eax
push edi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeA
cmp eax, ebx
mov dword [esp + 0x18], eax
jne 0x4193b3
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push eax
call sym.HPZshl01.exe_char_const____cdecl_GetErrorString_long_int_
add esp, 4
push eax
push str.GetFileVersionInfoSize_failed_with__s_n
push 0x80
push 0x4788a8
call fcn.0041f763
add esp, 0x10
call esi
jmp 0x4197d3
push eax
call fcn.0044d4cd
mov esi, eax
add esp, 4
cmp esi, ebx
mov dword [esp + 0x38], esi
jne 0x4193e3
push str.Can_not_allocate_memory._n
push 0x4788a8
call fcn.0041f963
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4197d3
mov ecx, dword [esp + 0x18]
push esi
push ecx
push ebx
push edi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x419425
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
push eax
call sym.HPZshl01.exe_char_const____cdecl_GetErrorString_long_int_
add esp, 4
push eax
push str.GetFileVersionInfo_failed_with__s_n
push 0x4788a8
call fcn.0041f963
push esi
call fcn.0044d4f6
add esp, 0x10
call edi
jmp 0x4197d3
lea edx, [esp + 0x34]
lea eax, [esp + 0x30]
push edx
push eax
push str.VarFileInfoTranslation
push esi
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
call sub.VERSION.dll_VerQueryValueA
mov eax, dword [esp + 0x34]
mov di, word [esp + 0x26c]
mov ebp, dword [esp + 0x30]
xor edx, edx
shr eax, 2
je 0x419468
mov ecx, ebp
cmp word [ecx], di
je 0x419498
inc edx
add ecx, 4
cmp edx, eax
jb 0x41945b
xor edx, edx
cmp eax, ebx
jbe 0x4197ce
mov ecx, ebp
mov di, word [ecx]
xor di, word [esp + 0x26c]
test edi, 0x3ff
je 0x4195c6
inc edx
add ecx, 4
cmp edx, eax
jb 0x419474
jmp 0x4197ce
mov cl, byte [0x48840c]
xor eax, eax
mov byte [esp + 0x50], cl
mov ecx, 0x40
lea edi, [esp + 0x51]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x270]
xor ecx, ecx
mov cx, word [ebp + edx*4 + 2]
push eax
xor eax, eax
push ecx
mov ax, word [ebp + edx*4]
lea ecx, [esp + 0x58]
push eax
push str.StringFileInfo_04x_04x_s
push ecx
call fcn.0043714d
add esp, 0x14
lea edx, [esp + 0x14]
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x50]
push edx
push eax
push ecx
push esi
mov dword [esp + 0x3c], ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4197a2
cmp dword [esp + 0x14], ebx
je 0x4197a2
mov edi, dword [esp + 0x2c]
mov dl, byte [esp + 0x13]
or ecx, 0xffffffff
xor eax, eax
mov esi, edi
mov byte [esp + 0x40], dl
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x44]
push ebp
call fcn.00404210
test al, al
je 0x41955b
mov edi, dword [esp + 0x44]
mov ecx, ebp
mov eax, ecx
push ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x44]
call fcn.00404170
mov ecx, dword [0x45b97c]
lea edx, [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x278]
push ebx
push edx
mov dword [esp + 0x26c], ebx
call fcn.00403e70
mov eax, dword [esp + 0x44]
cmp eax, ebx
je 0x4195b2
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x4195a9
cmp al, 0xff
je 0x4195a9
dec al
mov byte [ecx], al
mov eax, dword [esp + 0x38]
push eax
call fcn.0044d4f6
add esp, 4
xor eax, eax
jmp 0x4197d3
push ecx
call fcn.0044d4f6
add esp, 4
mov eax, dword [esp + 0x38]
push eax
call fcn.0044d4f6
add esp, 4
xor eax, eax
jmp 0x4197d3
mov cl, byte [0x48840c]
xor eax, eax
mov byte [esp + 0x154], cl
mov ecx, 0x40
lea edi, [esp + 0x155]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x270]
xor ecx, ecx
mov cx, word [ebp + edx*4 + 2]
push eax
xor eax, eax
push ecx
mov ax, word [ebp + edx*4]
lea ecx, [esp + 0x15c]
push eax
push str.StringFileInfo_04x_04x_s
push ecx
call fcn.0043714d
add esp, 0x14
lea edx, [esp + 0x14]
lea eax, [esp + 0x3c]
lea ecx, [esp + 0x154]
push edx
push eax
push ecx
push esi
mov dword [esp + 0x4c], ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4197a2
cmp dword [esp + 0x14], ebx
je 0x4197a2
mov edi, dword [esp + 0x3c]
mov dl, byte [esp + 0x13]
or ecx, 0xffffffff
xor eax, eax
mov esi, edi
mov byte [esp + 0x1c], dl
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x20]
push ebp
call fcn.00404210
test al, al
je 0x419697
mov edi, dword [esp + 0x20]
mov ecx, ebp
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x24], ebp
mov byte [ecx + ebp], 0
mov ecx, dword [esp + 0x24]
mov eax, dword [0x45b97c]
mov ebp, ecx
mov dword [esp + 0x260], 1
cmp eax, ebp
jae 0x4196b3
mov ebp, eax
mov ebx, dword [esp + 0x274]
lea edx, [esp + 0x1c]
cmp ebx, edx
jne 0x4196db
push eax
push ebp
mov ecx, ebx
call fcn.00415070
push 0
push 0
mov ecx, ebx
call fcn.00415070
jmp 0x41975d
test ebp, ebp
jbe 0x419727
cmp ebp, ecx
jne 0x419727
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x4196f0
mov eax, 0x45b980
cmp byte [eax - 1], 0xfe
jae 0x419727
push 1
mov ecx, ebx
call fcn.00404400
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x41970c
mov eax, 0x45b980
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov dword [ebx + 4], eax
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], edx
mov cl, byte [eax - 1]
inc cl
mov byte [eax - 1], cl
jmp 0x41975d
push 1
push ebp
mov ecx, ebx
call fcn.00404210
test al, al
je 0x41975d
mov esi, dword [esp + 0x20]
test esi, esi
jne 0x419742
mov esi, 0x45b980
mov edi, dword [ebx + 4]
mov ecx, ebp
mov eax, ecx
push ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, ebx
call fcn.00404170
mov eax, dword [esp + 0x20]
test eax, eax
je 0x419791
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x419788
cmp al, 0xff
je 0x419788
dec al
mov byte [ecx], al
mov ecx, dword [esp + 0x38]
push ecx
call fcn.0044d4f6
add esp, 4
xor eax, eax
jmp 0x4197d3
push ecx
call fcn.0044d4f6
add esp, 4
mov ecx, dword [esp + 0x38]
push ecx
call fcn.0044d4f6
add esp, 4
xor eax, eax
jmp 0x4197d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call sym.HPZshl01.exe_char_const____cdecl_GetErrorString_long_int_
add esp, 4
push eax
push str.VerQueryValue_failed_with__s_n
push 0x4788a8
call fcn.0041f963
push esi
call fcn.0044d4f6
add esp, 0x10
xor eax, eax
jmp 0x4197d3
mov eax, 2
mov ecx, dword [esp + 0x258]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x254
ret