Function at 0x411490
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x28c
mov eax, dword [0x49f008]
xor eax, esp
mov dword [esp + 0x288], eax
push ebx
push esi
mov esi, edx
mov ebx, ecx
push edi
mov dword [esp + 0x34], ebx
mov dword [esi], 0
lea eax, [esi + 0x10]
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
cmp dword [esi + 0x24], 8
mov dword [esi + 0x20], 0
jb 0x4114e3
mov eax, dword [esi + 0x10]
xor ecx, ecx
mov word [eax], cx
mov dword [esi + 0x28], ecx
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4114f0
sub ecx, edx
sar ecx, 1
je 0x41170a
lea eax, [esp + 0x40]
mov dword [esp + 0x24], 0
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x411703
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [esp + 0x38]
mov dword [esi + 0x28], 2
push eax
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test edi, edi
je 0x41170a
push edi
call fcn.0046be9e
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x41170a
push ebx
push edi
push dword [esp + 0x40]
push dword [esp + 0x40]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x41158d
push ebx
call fcn.0046be99
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x288]
xor ecx, esp
call fcn.004632a0
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.VERSION.dll_VerQueryValueW]
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x34]
push eax
push 0x487e80
push ebx
call edi
test eax, eax
je 0x4115c8
mov ecx, dword [esp + 0x30]
movzx eax, word [ecx + 0xa]
mov dword [esi], eax
movzx eax, word [ecx + 8]
mov dword [esi + 4], eax
movzx eax, word [ecx + 0xe]
mov dword [esi + 8], eax
movzx eax, word [ecx + 0xc]
mov dword [esi + 0xc], eax
cmp byte [ebp + 8], 0
je 0x4116dc
lea eax, [esp + 0x34]
mov dword [esp + 0x2c], 0
push eax
lea eax, [esp + 0x28]
mov dword [esp + 0x2c], 0
push eax
push str.VarFileInfoTranslation
push ebx
call edi
test eax, eax
je 0x4116dc
mov eax, dword [esp + 0x34]
xor edi, edi
cdq
and edx, 3
add eax, edx
sar eax, 2
test eax, eax
jle 0x4116dc
mov eax, dword [esp + 0x24]
lea ecx, [eax + edi*4]
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
lea eax, [esp + 0x48]
push str.StringFileInfo_04x_04xProductVersion
push eax
call fcn.0040a410
add esp, 0x10
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x48]
push eax
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x4116dc
push dword [esp + 0x28]
xor eax, eax
mov dword [esp + 0x20], 0
push dword [esp + 0x30]
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], 7
mov word [esp + 0x14], ax
call fcn.00402380
lea eax, [esp + 0xc]
push eax
lea ecx, [esi + 0x10]
call fcn.0040a240
mov edx, dword [esp + 0x20]
cmp edx, 8
jb 0x4116c0
mov ecx, dword [esp + 0xc]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4116b6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411721
push edx
push ecx
call fcn.004632e1
add esp, 8
cmp dword [esi + 0x20], 0
jne 0x4116dc
mov eax, dword [esp + 0x34]
inc edi
cdq
and edx, 3
add eax, edx
sar eax, 2
cmp edi, eax
jl 0x411613
push ebx
call fcn.0046be99
add esp, 4
mov dword [esi + 0x28], 3
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x288]
xor ecx, esp
call fcn.004632a0
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x28], 1
mov ecx, dword [esp + 0x294]
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004632a0
mov esp, ebp
pop ebp
ret
call fcn.0046851b
int3