Function at 0x407bb9
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
mov esi, str.version.dll
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, eax
xor ebx, ebx
cmp edi, ebx
jne 0x407bea
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x407bea
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x407bf3
mov dword [eax], ebx
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x407bfc
mov dword [eax], ebx
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetFileVersionInfoSizeExA
push edi
call esi
push str.GetFileVersionInfoExA
push edi
mov dword [ebp - 0xc], eax
call esi
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0xc], ebx
je 0x407c73
cmp eax, ebx
je 0x407c73
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 8]
push ebx
call dword [ebp - 0xc]
mov esi, eax
cmp esi, ebx
je 0x407be3
lea eax, [esi + 0x800]
push eax
call fcn.0046e0d4
mov edi, eax
pop ecx
mov dword [ebp - 0x1c], edi
cmp edi, ebx
je 0x407be3
lea eax, [edi + esi]
mov dword [ebp - 4], eax
cmp dword [ebp - 0xc], ebx
je 0x407c81
cmp dword [ebp - 0x14], ebx
je 0x407c81
push edi
push esi
push ebx
push dword [ebp + 8]
push ebx
call dword [ebp - 0x14]
cmp eax, 1
je 0x407c9f
push edi
call fcn.0046c1c7
pop ecx
jmp 0x407be3
lea eax, [ebp - 0x24]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
jmp 0x407c2c
push edi
push esi
push ebx
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
cmp eax, 1
je 0x407c9f
push edi
call fcn.0046c1c7
pop ecx
mov eax, ebx
jmp 0x407be5
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x18]
push eax
push str.VarFileInfoTranslation
push edi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 8], ebx
call sub.VERSION.dll_VerQueryValueA
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x494bb0
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x407cea
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x10]
cmp ecx, ebx
je 0x407cde
mov edx, dword [eax + 8]
mov dword [ecx], edx
mov ecx, dword [ebp + 0x10]
cmp ecx, ebx
je 0x407cea
mov eax, dword [eax + 0xc]
mov dword [ecx], eax
mov eax, dword [ebp - 0x18]
cmp eax, ebx
je 0x407cfc
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push ecx
push eax
jmp 0x407d06
push 0x4e4
push 0x409
push str.StringFileInfo_04x_04x_
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
add edi, dword [ebp - 4]
cmp dword [ebp + 0x14], ebx
mov dword [ebp - 0xc], ebx
jle 0x407d73
mov ebx, dword [ebp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [ebp - 0xc]
push dword [ebx + eax*8]
push edi
call esi
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 4]
push dword [ebp - 0x1c]
call sub.VERSION.dll_VerQueryValueA
cmp dword [ebp - 8], 0
je 0x407d68
push dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
push dword [ebx + eax*8 + 4]
call esi
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0x14]
jl 0x407d36
mov edi, dword [ebp - 0x1c]
xor ebx, ebx
inc ebx
jmp 0x407c91