Function at 0x4807af
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x59caa3
mov eax, dword fs:[0]
push eax
sub esp, 0x450
mov eax, dword [0x631350]
xor eax, esp
mov dword [esp + 0x448], eax
push ebx
push esi
push edi
mov eax, dword [0x631350]
xor eax, esp
push eax
lea eax, [esp + 0x460]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor esi, esi
lea eax, [edi + 0x10]
mov dword [edi], esi
mov dword [edi + 4], esi
mov dword [edi + 8], esi
mov dword [edi + 0xc], esi
cmp dword [eax + 0x14], 8
mov dword [esp + 0x3c], eax
mov dword [eax + 0x10], esi
jb 0x480811
mov eax, dword [eax]
xor ecx, ecx
lea ebx, [esp + 0x24]
mov word [eax], cx
call fcn.004806e6
mov ecx, dword [eax]
mov dword [edi + 0x30], ecx
mov eax, dword [eax + 4]
mov dword [edi + 0x34], eax
lea eax, [esp + 0x1c]
push eax
push fcn.004807af
push 6
mov dword [esp + 0x28], esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
test eax, eax
jne 0x48084b
xor al, al
jmp 0x480a0a
xor eax, eax
push 0x206
mov word [esp + 0x50], ax
lea eax, [esp + 0x52]
push esi
push eax
call fcn.0055fda0
add esp, 0xc
push 0x104
lea eax, [esp + 0x50]
push eax
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x480844
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x50]
push eax
mov dword [esp + 0x48], esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
cmp ebx, esi
je 0x480844
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
mov esi, ebx
lea eax, [esp + 0x24]
call fcn.00404170
xor esi, esi
mov dword [esp + 0x468], esi
push dword [esp + 0x24]
lea eax, [esp + 0x50]
push ebx
push esi
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x4808e5
cmp dword [esp + 0x24], esi
je 0x480844
push dword [esp + 0x24]
call fcn.0055da69
pop ecx
jmp 0x480844
push 4
pop ebx
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x24]
push eax
push 0x5c8a58
push dword [esp + 0x30]
mov dword [esp + 0x30], esi
mov esi, dword [sym.imp.VERSION.dll_VerQueryValueW]
mov dword [esp + 0x48], ebx
call esi
test eax, eax
jne 0x480915
cmp dword [esp + 0x24], eax
jmp 0x4808d0
mov eax, dword [esp + 0x20]
movzx ecx, word [eax + 0xa]
mov dword [edi], ecx
mov edx, dword [eax + 8]
mov ecx, 0xffff
and edx, ecx
mov dword [edi + 4], edx
movzx edx, word [eax + 0xe]
mov dword [edi + 8], edx
mov eax, dword [eax + 0x30]
and eax, ecx
mov dword [edi + 0xc], eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x4c]
push eax
mov dword [esp + 0x1c], ebx
mov ebx, dword [esp + 0x2c]
push str.VarFileInfoTranslation
push ebx
call esi
test eax, eax
jne 0x480967
test ebx, ebx
je 0x480844
push ebx
jmp 0x4808da
xor eax, eax
push 0x1fe
mov word [esp + 0x258], ax
xor edi, edi
lea eax, [esp + 0x25a]
push edi
push eax
call fcn.0055fda0
add esp, 0xc
test dword [esp + 0x14], 0xfffffffc
jbe 0x4809fd
mov eax, dword [esp + 0x48]
lea eax, [eax + edi*4]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push ecx
push eax
lea eax, [esp + 0x25c]
push str.StringFileInfo_04x_04xFileDescription
push eax
call fcn.00480a5a
and dword [esp + 0x54], 0
and dword [esp + 0x28], 0
add esp, 0x10
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x25c]
push eax
push ebx
call esi
test eax, eax
je 0x4809e2
cmp dword [esp + 0x18], 0
jne 0x4809f0
mov eax, dword [esp + 0x14]
inc edi
shr eax, 2
cmp edi, eax
jb 0x480993
jmp 0x4809fd
push dword [esp + 0x18]
push dword [esp + 0x40]
call fcn.00404560
test ebx, ebx
je 0x480a08
push ebx
call fcn.0055da69
pop ecx
mov al, 1
mov ecx, dword [esp + 0x460]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x448]
xor ecx, esp
call fcn.0055c9d4
mov esp, ebp
pop ebp
ret