Function at 0x4119e0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x28c
mov eax, dword [0x4ab00c]
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 0x411a33
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 0x411a40
sub ecx, edx
sar ecx, 1
je 0x411c5a
lea eax, [esp + 0x40]
mov dword [esp + 0x24], 0
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x411c53
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 0x411c5a
push edi
call fcn.00474e96
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x411c5a
push ebx
push edi
push dword [esp + 0x40]
push dword [esp + 0x40]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x411add
push ebx
call fcn.00474e91
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x288]
xor ecx, esp
call fcn.0046b9f0
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 0x491f40
push ebx
call edi
test eax, eax
je 0x411b18
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 0x411c2c
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 0x411c2c
mov eax, dword [esp + 0x34]
xor edi, edi
cdq
and edx, 3
add eax, edx
sar eax, 2
test eax, eax
jle 0x411c2c
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.0040a810
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 0x411c2c
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.00402430
lea eax, [esp + 0xc]
push eax
lea ecx, [esi + 0x10]
call fcn.0040a5e0
mov edx, dword [esp + 0x20]
cmp edx, 8
jb 0x411c10
mov ecx, dword [esp + 0xc]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x411c06
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411c71
push edx
push ecx
call fcn.0046ba31
add esp, 8
cmp dword [esi + 0x20], 0
jne 0x411c2c
mov eax, dword [esp + 0x34]
inc edi
cdq
and edx, 3
add eax, edx
sar eax, 2
cmp edi, eax
jl 0x411b63
push ebx
call fcn.00474e91
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.0046b9f0
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.0046b9f0
mov esp, ebp
pop ebp
ret
call fcn.00471513
int3