Function at 0x406c27
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 0x406e15
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 0x406e03
push dword [ebp - 0xc]
lea ecx, [esi + 4]
call fcn.005f0744
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 0x406e03
lea eax, [esi + 0x14]
push eax
push str._04X
push dword [ebp - 0xc]
call fcn.0044c66c
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 0x406e03
push dword [ebp - 0xc]
lea ecx, [esi + 0x10]
call fcn.005f0744
lea eax, [ebp + 8]
mov dword [ebp + 8], ebx
push eax
mov ax, word [esi + 0x14]
push eax
call fcn.00406e1f
mov edi, eax
pop ecx
cmp edi, ebx
pop ecx
mov dword [ebp - 0x24], edi
je 0x406ddf
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 0x406d2a
call dword [sym.imp.KERNEL32.dll_GetACP]
push eax
call fcn.005d4812
movzx eax, al
push eax
lea eax, [edi + edi]
push eax
push dword [ebp + 8]
call fcn.005d4c8d
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
lea eax, [edi]
add esp, 0x10
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 0x406d6d
push dword [ebp - 0x20]
call fcn.005d4884
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.0059347c
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 [eax + edi], bl
call fcn.005f0744
push edi
call fcn.00593542
pop ecx
jmp 0x406df5
lea eax, [esi + 4]
lea ecx, [esi + 8]
push eax
call fcn.005f06f4
call dword [sym.imp.KERNEL32.dll_GetACP]
mov word [esi + 0xc], ax
cmp dword [ebp + 8], ebx
je 0x406e03
push dword [ebp + 8]
call fcn.00593542
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