Function at 0x41e930
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cd216
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x4fbf60]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor esi, esi
mov ebx, ecx
mov dword [ebp - 0x240], esi
cmp dword [ebx + 0x14], 8
mov dword [ebp - 0x254], eax
mov dword [ebp - 0x238], esi
jb 0x41e980
mov eax, dword [ebx]
jmp 0x41e982
mov eax, ebx
lea ecx, [ebp - 0x238]
push ecx
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [ebp - 0x234], eax
cmp eax, esi
jne 0x41e9bb
push esi
xor edx, edx
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], esi
push 0x4da6dc
mov ecx, edi
mov word [edi], dx
call fcn.004028fc
jmp 0x41ec17
mov dword [ebp - 0x250], esi
mov dword [ebp - 0x24c], esi
mov dword [ebp - 0x248], esi
lea esi, [ebp - 0x250]
call fcn.00420a50
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x24c]
mov esi, dword [ebp - 0x250]
sub eax, esi
jne 0x41e9f9
push str.invalid_vector_T__subscript
call fcn.0047e619
cmp dword [ebx + 0x14], 8
jb 0x41ea01
mov ebx, dword [ebx]
mov ecx, dword [ebp - 0x234]
mov edx, dword [ebp - 0x238]
push esi
push ecx
push edx
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x41ea3c
push eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], eax
push 0x4da6dc
mov ecx, edi
mov word [edi], ax
call fcn.004028fc
test esi, esi
jmp 0x41ec0c
xor ebx, ebx
xor ecx, ecx
push ebx
mov word [ebp - 0x230], cx
push 0x4da6dc
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], ebx
call fcn.004028fc
lea edx, [ebp - 0x23c]
push edx
lea eax, [ebp - 0x258]
push eax
push str.VarFileInfoTranslation
push esi
mov byte [ebp - 4], 1
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x41eb46
mov ecx, dword [ebp - 0x23c]
shr ecx, 2
xor esi, esi
test ecx, ecx
jle 0x41eb40
mov ecx, dword [ebp - 0x254]
mov ebx, dword [ebp - 0x258]
call fcn.00402495
movzx edx, word [ebx + esi*4 + 2]
push eax
movzx eax, word [ebx + esi*4]
push edx
push eax
push str.StringFileInfo_04x_04x_s
mov ecx, 0x100
lea ebx, [ebp - 0x214]
call fcn.0041b990
add esp, 0x10
test eax, eax
jne 0x41eb2c
lea ecx, [ebp - 0x234]
push ecx
mov ecx, dword [ebp - 0x250]
lea edx, [ebp - 0x240]
push edx
mov eax, ebx
push eax
push ecx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x41eb2c
cmp dword [ebp - 0x234], 0
jbe 0x41eb2c
mov edx, dword [ebp - 0x240]
mov eax, edx
lea ebx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41eb10
sub eax, ebx
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0x230]
call fcn.004028fc
mov edx, dword [ebp - 0x23c]
inc esi
shr edx, 2
cmp esi, edx
jl 0x41eaa1
xor ebx, ebx
mov esi, dword [ebp - 0x250]
xor eax, eax
lea ecx, [ebp - 0x230]
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], ebx
mov word [edi], ax
cmp edi, ecx
je 0x41ebd9
cmp dword [edi + 0x14], 8
jb 0x41eb70
mov edx, dword [edi]
push edx
call fcn.0047f3b4
add esp, 4
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], ebx
mov word [edi], ax
cmp dword [ebp - 0x21c], 8
jae 0x41ebb7
mov ecx, dword [ebp - 0x220]
lea edx, [ecx + ecx + 2]
push edx
lea eax, [ebp - 0x230]
push eax
push edi
call fcn.0047f3c0
mov edx, dword [ebp - 0x220]
mov eax, dword [ebp - 0x21c]
add esp, 0xc
mov dword [edi + 0x10], edx
mov dword [edi + 0x14], eax
jmp 0x41ebf1
mov ecx, dword [ebp - 0x230]
mov edx, dword [ebp - 0x220]
mov eax, dword [ebp - 0x21c]
mov dword [edi], ecx
mov dword [ebp - 0x230], ebx
mov dword [edi + 0x10], edx
mov dword [edi + 0x14], eax
jmp 0x41ebf1
cmp dword [ebp - 0x21c], 8
jb 0x41ebf1
mov ecx, dword [ebp - 0x230]
push ecx
call fcn.0047f3b4
add esp, 4
xor edx, edx
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], ebx
mov word [ebp - 0x230], dx
cmp esi, ebx
je 0x41ec17
push esi
call fcn.0047f3b4
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0047f164
mov esp, ebp
pop ebp
ret