Function at 0x407aff
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
lea eax, [ebp - 0x18]
push edi
push eax
xor ebx, ebx
push dword [ebp + 8]
mov esi, ecx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], 0x104
mov dword [ebp - 4], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeA
cmp eax, ebx
mov dword [ebp - 0x1c], eax
je 0x407cee
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, eax
push edi
push dword [ebp - 0x1c]
push dword [ebp - 0x18]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push str.LanguageInfoEnglishName
push edi
call sub.VERSION.dll_VerQueryValueA
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x407cdc
push dword [ebp - 0xc]
lea ecx, [esi + 4]
call fcn.0054c5e7
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push str.LanguageInfoLanguageId
push edi
call sub.VERSION.dll_VerQueryValueA
and dword [ebp - 4], eax
je 0x407cdc
lea eax, [esi + 0x14]
push eax
push str._04X
push dword [ebp - 0xc]
call fcn.0052a510
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push str.LanguageInfoFileVersion
push edi
call sub.VERSION.dll_VerQueryValueA
and dword [ebp - 4], eax
je 0x407cdc
push dword [ebp - 0xc]
lea ecx, [esi + 0x10]
call fcn.0054c5e7
lea eax, [ebp + 8]
mov dword [ebp + 8], ebx
push eax
mov ax, word [esi + 0x14]
push eax
call fcn.00407cf8
mov edi, eax
pop ecx
cmp edi, ebx
pop ecx
mov dword [ebp - 0x24], edi
je 0x407cb8
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
lea eax, [edi]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x14]
add dword [ebp - 0x14], 2
dec dword [ebp - 0x1c]
mov cl, byte [eax]
mov dl, byte [eax + 1]
mov byte [eax], dl
mov byte [eax + 1], cl
jne 0x407c02
call dword [sym.imp.KERNEL32.dll_GetACP]
push eax
call fcn.0048adda
movzx eax, al
pop ecx
push eax
lea eax, [edi + edi]
push eax
push dword [ebp + 8]
call fcn.0048b161
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
lea eax, [edi]
add esp, 0xc
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x14]
add dword [ebp - 0x14], 2
dec dword [ebp - 0x1c]
mov dl, byte [ecx]
mov al, byte [ecx + 1]
mov byte [ecx], al
mov byte [ecx + 1], dl
jne 0x407c46
push dword [ebp - 0x20]
call fcn.0048ae6c
pop ecx
mov word [esi + 0xc], ax
push ebx
push ebx
push ebx
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push dword [ebp + 8]
movzx eax, ax
push ebx
push eax
call edi
mov dword [ebp - 0x20], eax
inc eax
push eax
call fcn.004868bd
pop ecx
mov dword [ebp - 0x1c], eax
push ebx
push ebx
push dword [ebp - 0x20]
push eax
push dword [ebp - 0x24]
movzx eax, word [esi + 0xc]
push dword [ebp + 8]
push ebx
push eax
call edi
mov edi, dword [ebp - 0x1c]
lea ecx, [esi + 8]
push edi
mov byte [edi + eax], bl
call fcn.0054c5e7
push edi
call fcn.00486983
pop ecx
jmp 0x407cce
lea eax, [esi + 4]
lea ecx, [esi + 8]
push eax
call fcn.0054c598
call dword [sym.imp.KERNEL32.dll_GetACP]
mov word [esi + 0xc], ax
cmp dword [ebp + 8], ebx
je 0x407cdc
push dword [ebp + 8]
call fcn.00486983
pop ecx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 4