Function at 0x491e70
Capabilities:
Get file version info

Disassembly:
push 0xffffffffffffffff
push 0x4e47eb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x420
push ebx
mov ebx, ecx
push ebp
push esi
mov al, byte [ebx + 0x44]
lea esi, [ebx + 0x44]
push edi
push 0
lea ecx, [esp + 0x14]
mov byte [esp + 0x14], al
call fcn.00406ab0
mov ecx, dword [0x4e9898]
push ecx
push 0
push esi
lea ecx, [esp + 0x1c]
call fcn.00406540
mov eax, dword [ebx + 4]
mov dword [esp + 0x438], 0
test eax, eax
mov esi, 0x4e9894
je 0x491ed2
mov esi, eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [0x4e9898]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
mov ecx, dword [esp + 0x18]
sub edx, ecx
cmp edx, edi
ja 0x491ef5
call fcn.004bfa61
test edi, edi
jbe 0x491f35
mov eax, dword [esp + 0x18]
push 0
lea ecx, [esp + 0x14]
lea ebp, [eax + edi]
push ebp
call fcn.00407ec0
test al, al
je 0x491f35
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ecx, edi
push ebp
lea edi, [eax + edx]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
call fcn.00407ea0
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x491f42
mov eax, 0x4e9894
lea ecx, [esp + 0x28]
push ecx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov ebp, eax
test ebp, ebp
je 0x491f9c
push ebp
call fcn.004d35be
mov esi, eax
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x34]
mov dword [esi], 0
add esp, 4
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], esi
test eax, eax
jne 0x491f82
mov eax, 0x4e9894
mov edx, dword [esp + 0x28]
push esi
push ebp
push edx
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x491fc5
push esi
call fcn.004d35e7
add esp, 4
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x49207f
mov al, byte [ecx - 1]
test al, al
je 0x492075
cmp al, 0xff
je 0x492075
dec al
mov byte [ecx - 1], al
jmp 0x49207f
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x24]
push eax
push ecx
push 0x50857c
push esi
call sub.VERSION.dll_VerQueryValueA
mov eax, dword [esp + 0x24]
xor edx, edx
mov dx, word [eax + 0xc]
mov ecx, dword [eax + 0xc]
push edx
xor edx, edx
mov dx, word [eax + 8]
mov eax, dword [eax + 8]
shr ecx, 0x10
push ecx
push edx
shr eax, 0x10
push eax
lea ecx, [esp + 0x40]
push str._u._u._u._u
push ecx
call fcn.004add1e
lea edi, [esp + 0x48]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x18
add ebx, 0x34
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov ebp, ecx
mov ecx, ebx
push ebp
call fcn.00407ec0
test al, al
je 0x492052
mov edi, dword [ebx + 4]
mov ecx, ebp
mov edx, ecx
lea esi, [esp + 0x30]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 4]
mov esi, dword [esp + 0x20]
mov dword [ebx + 8], ebp
mov byte [eax + ebp], 0
push esi
call fcn.004d35e7
mov ecx, dword [esp + 0x18]
add esp, 4
test ecx, ecx
je 0x49207f
mov al, byte [ecx - 1]
test al, al
je 0x492075
cmp al, 0xff
je 0x492075
dec al
mov byte [ecx - 1], al
jmp 0x49207f
dec ecx
push ecx
call fcn.004d35e7
add esp, 4
mov ecx, dword [esp + 0x430]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x42c
ret