Function at 0x427760
Capabilities:
Get file version info

Disassembly:
push 0xffffffffffffffff
push 0x46db6b
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.00404a20
mov ecx, dword [0x4717b8]
push ecx
push 0
push esi
lea ecx, [esp + 0x1c]
call fcn.004044b0
mov eax, dword [ebx + 4]
mov dword [esp + 0x438], 0
test eax, eax
mov esi, 0x4717b4
je 0x4277c2
mov esi, eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [0x4717b8]
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 0x4277e5
call fcn.0044c49d
test edi, edi
jbe 0x427825
mov eax, dword [esp + 0x18]
push 0
lea ecx, [esp + 0x14]
lea ebp, [eax + edi]
push ebp
call fcn.00405bc0
test al, al
je 0x427825
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.00405ba0
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x427832
mov eax, 0x4717b4
lea ecx, [esp + 0x28]
push ecx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov ebp, eax
test ebp, ebp
je 0x42788c
push ebp
call fcn.0045fe04
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 0x427872
mov eax, 0x4717b4
mov edx, dword [esp + 0x28]
push esi
push ebp
push edx
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x4278b5
push esi
call fcn.0045fe2d
add esp, 4
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x42796f
mov al, byte [ecx - 1]
test al, al
je 0x427965
cmp al, 0xff
je 0x427965
dec al
mov byte [ecx - 1], al
jmp 0x42796f
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x24]
push eax
push ecx
push 0x489384
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.0043d08e
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.00405bc0
test al, al
je 0x427942
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.0045fe2d
mov ecx, dword [esp + 0x18]
add esp, 4
test ecx, ecx
je 0x42796f
mov al, byte [ecx - 1]
test al, al
je 0x427965
cmp al, 0xff
je 0x427965
dec al
mov byte [ecx - 1], al
jmp 0x42796f
dec ecx
push ecx
call fcn.0045fe2d
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