Function at 0x4929b0
Capabilities:
Get file version info

Disassembly:
push 0xffffffffffffffff
push 0x4e583b
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.00407180
mov ecx, dword [0x4ea898]
push ecx
push 0
push esi
lea ecx, [esp + 0x1c]
call fcn.00406ba0
mov eax, dword [ebx + 4]
mov dword [esp + 0x438], 0
test eax, eax
mov esi, 0x4ea894
je 0x492a12
mov esi, eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [0x4ea898]
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 0x492a35
call fcn.004c09c1
test edi, edi
jbe 0x492a75
mov eax, dword [esp + 0x18]
push 0
lea ecx, [esp + 0x14]
lea ebp, [eax + edi]
push ebp
call fcn.00408590
test al, al
je 0x492a75
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.00408570
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x492a82
mov eax, 0x4ea894
lea ecx, [esp + 0x28]
push ecx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov ebp, eax
test ebp, ebp
je 0x492adc
push ebp
call fcn.004d456e
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 0x492ac2
mov eax, 0x4ea894
mov edx, dword [esp + 0x28]
push esi
push ebp
push edx
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x492b05
push esi
call fcn.004d4597
add esp, 4
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x492bbf
mov al, byte [ecx - 1]
test al, al
je 0x492bb5
cmp al, 0xff
je 0x492bb5
dec al
mov byte [ecx - 1], al
jmp 0x492bbf
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x24]
push eax
push ecx
push 0x5095a0
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.004aed8c
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.00408590
test al, al
je 0x492b92
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.004d4597
mov ecx, dword [esp + 0x18]
add esp, 4
test ecx, ecx
je 0x492bbf
mov al, byte [ecx - 1]
test al, al
je 0x492bb5
cmp al, 0xff
je 0x492bb5
dec al
mov byte [ecx - 1], al
jmp 0x492bbf
dec ecx
push ecx
call fcn.004d4597
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