Function at 0x41b410
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b0fa0
mov eax, dword fs:[0]
push eax
sub esp, 0x27c
mov eax, dword [0x4d8c20]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
mov edi, edx
mov dword [ebp - 0x264], esi
cmp dword [edi + 0x14], 8
mov ebx, ecx
mov dword [ebp - 0x250], ebx
mov dword [ebp - 0x254], esi
jb 0x41b460
mov eax, dword [edi]
jmp 0x41b462
mov eax, edi
lea ecx, [ebp - 0x254]
push ecx
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [ebp - 0x24c], eax
cmp eax, esi
jne 0x41b49d
push esi
xor edx, edx
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], esi
push 0x4b9470
mov ecx, ebx
mov word [ebx], dx
call fcn.00404447
mov eax, ebx
jmp 0x41b71c
mov dword [ebp - 0x274], esi
mov dword [ebp - 0x270], esi
mov dword [ebp - 0x26c], esi
lea esi, [ebp - 0x274]
call fcn.0041d930
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x270]
mov esi, dword [ebp - 0x274]
sub eax, esi
jne 0x41b4db
push str.invalid_vector_T__subscript
call fcn.0048f6d7
cmp dword [edi + 0x14], 8
jb 0x41b4e3
mov edi, dword [edi]
mov ecx, dword [ebp - 0x24c]
mov edx, dword [ebp - 0x254]
push esi
push ecx
push edx
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x41b52b
push eax
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], eax
push 0x4b9470
mov ecx, ebx
mov word [ebx], ax
call fcn.00404447
test esi, esi
je 0x41b524
push esi
call fcn.00475dcb
add esp, 4
mov eax, ebx
jmp 0x41b71c
xor edi, edi
xor ecx, ecx
push edi
mov word [ebp - 0x22c], cx
push 0x4b9470
lea ecx, [ebp - 0x22c]
mov dword [ebp - 0x218], 7
mov dword [ebp - 0x21c], edi
call fcn.00404447
lea edx, [ebp - 0x258]
push edx
lea eax, [ebp - 0x260]
push eax
push str.VarFileInfoTranslation
push esi
mov byte [ebp - 4], 2
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x41b624
mov ecx, dword [ebp - 0x258]
shr ecx, 2
test ecx, ecx
jle 0x41b624
mov edi, edi
mov eax, dword [ebp - 0x260]
movzx edx, word [eax + edi*4 + 2]
movzx eax, word [eax + edi*4]
push edx
push eax
push str.StringFileInfo_04x_04xFileVersion
mov ecx, 0x100
lea ebx, [ebp - 0x210]
call fcn.004185f0
add esp, 0xc
test eax, eax
jne 0x41b60c
lea ecx, [ebp - 0x24c]
push ecx
lea edx, [ebp - 0x25c]
push edx
mov eax, ebx
push eax
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x41b60c
cmp dword [ebp - 0x24c], 0
jbe 0x41b60c
mov edx, dword [ebp - 0x25c]
mov eax, edx
lea ebx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41b5f0
sub eax, ebx
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0x22c]
call fcn.00404447
mov ecx, dword [ebp - 0x258]
inc edi
shr ecx, 2
cmp edi, ecx
jl 0x41b590
mov ebx, dword [ebp - 0x250]
lea edx, [ebp - 0x284]
push edx
mov edi, str._d._
call fcn.0040f080
xor eax, eax
mov byte [ebp - 4], 3
push eax
push 0x4b9470
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x234], 7
mov dword [ebp - 0x238], 0
mov word [ebp - 0x248], ax
call fcn.00404447
lea ecx, [ebp - 0x284]
push ecx
lea edx, [ebp - 0x22c]
push edx
push ebx
lea ebx, [ebp - 0x248]
mov byte [ebp - 4], 4
call fcn.0040f2d0
mov edi, 8
add esp, 0xc
mov dword [ebp - 0x264], 1
cmp dword [ebp - 0x234], edi
jb 0x41b6ae
mov eax, dword [ebp - 0x248]
push eax
call fcn.00475dcb
add esp, 4
lea edx, [ebp - 0x284]
xor ecx, ecx
xor ebx, ebx
push edx
mov dword [ebp - 0x234], 7
mov dword [ebp - 0x238], ebx
mov word [ebp - 0x248], cx
mov byte [ebp - 4], 2
call fcn.0040f140
cmp dword [ebp - 0x218], edi
jb 0x41b6f0
mov eax, dword [ebp - 0x22c]
push eax
call fcn.00475dcb
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x218], 7
mov dword [ebp - 0x21c], ebx
mov word [ebp - 0x22c], cx
cmp esi, ebx
je 0x41b716
push esi
call fcn.00475dcb
add esp, 4
mov eax, dword [ebp - 0x250]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004751dc
mov esp, ebp
pop ebp
ret