Function at 0x41bf90
Capabilities:
Get file version info

Disassembly:
push 0xffffffffffffffff
push 0x46cdb6
mov eax, dword fs:[0]
push eax
sub esp, 0x260
mov eax, dword [0x491d88]
xor eax, esp
mov dword [esp + 0x25c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x491d88]
xor eax, esp
push eax
lea eax, [esp + 0x274]
mov dword fs:[0], eax
mov esi, dword [esp + 0x284]
mov eax, dword [esp + 0x28c]
mov ecx, dword [esp + 0x290]
lea edx, [esp + 0x1c]
push edx
xor ebx, ebx
push esi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeA
cmp eax, ebx
mov dword [esp + 0x1c], eax
jne 0x41c032
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push eax
call fcn.0042ab09
push eax
push str.GetFileVersionInfoSize_failed_with__s_n
push 0x80
push 0x4932a8
call fcn.00401300
add esp, 0x14
call esi
jmp 0x41c10e
push eax
call fcn.0042f9cf
mov ebp, eax
add esp, 4
cmp ebp, ebx
jne 0x41c05e
push str.Can_not_allocate_memory._n
push 0x4932a8
call fcn.0041fb18
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x41c10e
mov eax, dword [esp + 0x1c]
push ebp
push eax
push ebx
push esi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x41c09a
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push eax
call fcn.0042ab09
push eax
push str.GetFileVersionInfo_failed_with__s_n
push 0x4932a8
call fcn.0041fb18
push ebp
call fcn.0042f9ca
add esp, 0x14
call esi
jmp 0x41c10e
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x28]
push edx
push str.VarFileInfoTranslation
push ebp
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
call sub.VERSION.dll_VerQueryValueA
mov eax, dword [esp + 0x28]
mov edi, dword [esp + 0x24]
mov ecx, dword [esp + 0x288]
xor esi, esi
shr eax, 2
je 0x41c0dd
lea ecx, [ecx]
cmp word [edi + esi*4], cx
je 0x41c136
add esi, 1
cmp esi, eax
jb 0x41c0d0
xor esi, esi
cmp eax, ebx
jbe 0x41c109
and ecx, 0x3ff
lea esp, [esp]
mov dx, word [edi + esi*4]
and dx, 0x3ff
cmp dx, cx
je 0x41c1fe
add esi, 1
cmp esi, eax
jb 0x41c0f0
mov eax, 2
mov ecx, dword [esp + 0x274]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x25c]
xor ecx, esp
call fcn.0045309e
add esp, 0x26c
ret
push 0x103
lea eax, [esp + 0x6d]
push ebx
push eax
mov byte [esp + 0x74], bl
call fcn.004530b0
mov ecx, dword [esp + 0x20]
movzx edx, word [edi + esi*4 + 2]
movzx eax, word [edi + esi*4]
push ecx
push edx
push eax
push str.StringFileInfo_04x_04x_s
lea ecx, [esp + 0x84]
push 0x104
push ecx
call fcn.004543d1
add esp, 0x24
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x70]
push ecx
push ebp
mov dword [esp + 0x24], ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x41c1d2
cmp dword [esp + 0x18], ebx
je 0x41c1d2
mov edx, dword [esp + 0x14]
push edx
lea ecx, [esp + 0x50]
call fcn.004043b0
mov ecx, dword [esp + 0x2c]
push 0xffffffffffffffff
push ebx
push eax
mov dword [esp + 0x288], ebx
call fcn.00403cf0
lea ecx, [esp + 0x4c]
call fcn.00402f20
push ebp
call fcn.0042f9ca
add esp, 4
xor eax, eax
jmp 0x41c10e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0042ab09
push eax
push str.VerQueryValue_failed_with__s_n
push 0x4932a8
call fcn.0041fb18
push ebp
call fcn.0042f9ca
add esp, 0x14
xor eax, eax
jmp 0x41c10e
push 0x103
lea eax, [esp + 0x171]
push ebx
push eax
mov byte [esp + 0x178], bl
call fcn.004530b0
mov ecx, dword [esp + 0x20]
movzx edx, word [edi + esi*4 + 2]
movzx eax, word [edi + esi*4]
push ecx
push edx
push eax
push str.StringFileInfo_04x_04x_s
lea ecx, [esp + 0x188]
push 0x104
push ecx
call fcn.004543d1
add esp, 0x24
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x174]
push ecx
push ebp
mov dword [esp + 0x30], ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x41c1d2
cmp dword [esp + 0x18], ebx
je 0x41c1d2
mov edx, dword [esp + 0x20]
mov eax, edx
mov dword [esp + 0x48], 0xf
mov dword [esp + 0x44], ebx
mov byte [esp + 0x34], bl
lea esi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x41c290
sub eax, esi
push eax
push edx
lea ecx, [esp + 0x38]
call fcn.00403dd0
mov ecx, dword [esp + 0x2c]
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x38]
push edx
mov dword [esp + 0x288], 1
call fcn.00403cf0
cmp dword [esp + 0x48], 0x10
jb 0x41c2d6
mov eax, dword [esp + 0x34]
push eax
call fcn.0042f9ca
add esp, 4
push ebp
call fcn.0042f9ca
add esp, 4
xor eax, eax
jmp 0x41c10e