Function at 0x426f50
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x531986
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x56adc0]
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 0x426fa0
mov eax, dword [ebx]
jmp 0x426fa2
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 0x426fdb
push esi
xor edx, edx
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], esi
push 0x53ff0c
mov ecx, edi
mov word [edi], dx
call fcn.00404bd5
jmp 0x427237
mov dword [ebp - 0x250], esi
mov dword [ebp - 0x24c], esi
mov dword [ebp - 0x248], esi
lea esi, [ebp - 0x250]
call fcn.004286a0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x24c]
mov esi, dword [ebp - 0x250]
sub eax, esi
jne 0x427019
push str.invalid_vector_T__subscript
call fcn.005161dc
cmp dword [ebx + 0x14], 8
jb 0x427021
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 0x42705c
push eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], eax
push 0x53ff0c
mov ecx, edi
mov word [edi], ax
call fcn.00404bd5
test esi, esi
jmp 0x42722c
xor ebx, ebx
xor ecx, ecx
push ebx
mov word [ebp - 0x230], cx
push 0x53ff0c
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], ebx
call fcn.00404bd5
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 0x427166
mov ecx, dword [ebp - 0x23c]
shr ecx, 2
xor esi, esi
test ecx, ecx
jle 0x427160
mov ecx, dword [ebp - 0x254]
mov ebx, dword [ebp - 0x258]
call fcn.00403f71
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.00423bf0
add esp, 0x10
test eax, eax
jne 0x42714c
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 0x42714c
cmp dword [ebp - 0x234], 0
jbe 0x42714c
mov edx, dword [ebp - 0x240]
mov eax, edx
lea ebx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x427130
sub eax, ebx
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0x230]
call fcn.00404bd5
mov edx, dword [ebp - 0x23c]
inc esi
shr edx, 2
cmp esi, edx
jl 0x4270c1
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 0x4271f9
cmp dword [edi + 0x14], 8
jb 0x427190
mov edx, dword [edi]
push edx
call fcn.004f77ab
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 0x4271d7
mov ecx, dword [ebp - 0x220]
lea edx, [ecx + ecx + 2]
push edx
lea eax, [ebp - 0x230]
push eax
push edi
call fcn.004f6f30
mov edx, dword [ebp - 0x220]
mov eax, dword [ebp - 0x21c]
add esp, 0xc
mov dword [edi + 0x10], edx
mov dword [edi + 0x14], eax
jmp 0x427211
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 0x427211
cmp dword [ebp - 0x21c], 8
jb 0x427211
mov ecx, dword [ebp - 0x230]
push ecx
call fcn.004f77ab
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 0x427237
push esi
call fcn.004f77ab
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.004f6bad
mov esp, ebp
pop ebp
ret