Function at 0x40b930
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x4a9bf0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x84]
push esi
push edi
mov edi, dword [ebp + 0xc]
push eax
push ebx
mov byte [0x4b47a0], 0
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0x98], eax
test eax, eax
jne 0x40ba12
push eax
push eax
lea eax, [ebp - 0x9c]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
call fcn.0041fd60
test eax, eax
je 0x40b9f0
call fcn.0041fd60
cmp dword [eax], 0
je 0x40b9f0
mov eax, dword [0x4bd720]
test eax, eax
je 0x40b9b4
mov esi, dword [eax + 0x190]
jmp 0x40b9ba
mov esi, dword [0x4bd724]
call fcn.0041fd60
test eax, eax
je 0x40b9cc
call fcn.0041fd60
mov ecx, dword [eax]
jmp 0x40b9ce
xor ecx, ecx
mov eax, dword [ebp - 0x9c]
push eax
push eax
push dword [0x4bd720]
push esi
push 0
push 0x1340
push str.D:MyProjectsProPilotLibMisc.c
push 2
call ecx
add esp, 0x20
push dword [ebp - 0x9c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
mov eax, 0x490b7c
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046300c
mov esp, ebp
pop ebp
ret
push eax
call fcn.0046dc45
add esp, 4
mov esi, eax
push esi
push dword [ebp - 0x98]
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoA
lea eax, [ebp - 0x68]
test edi, edi
jne 0x40bae3
push 0x47fe4c
push eax
call fcn.00401030
add esp, 8
lea eax, [ebp - 0x98]
push eax
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0x68]
push eax
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40bb7d
mov ecx, dword [ebp - 0x9c]
mov eax, dword [ecx + 0x30]
mov dword [ebp - 0x80], eax
mov eax, dword [ecx + 0x2c]
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x94]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SystemTimeToTzSpecificLocalTime]
movzx eax, word [ebp - 0x6c]
push str._04d__02d__02d__02d:_02d:_02d
push eax
movzx eax, word [ebp - 0x6e]
push eax
movzx eax, word [ebp - 0x70]
push eax
movzx eax, word [ebp - 0x72]
push eax
movzx eax, word [ebp - 0x76]
push eax
movzx eax, word [ebp - 0x78]
push eax
push 0x1354
push str.D:MyProjectsProPilotLibMisc.c
push str._04d__02d__02d__02d:_02d:_02d
push 0x12c
push 0x4b47a0
call fcn.0040dc20
add esp, 0x30
jmp 0x40bb7d
push edi
push str.StringFileInfo040904e2_s
push eax
call fcn.00401030
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0x68]
push eax
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40bb2f
mov ecx, dword [ebp - 0xa0]
mov edx, 0x4b47a0
sub edx, ecx
nop dword [eax + eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x40bb20
jmp 0x40bb7d
push edi
lea eax, [ebp - 0x68]
push str.StringFileInfo040904b0_s
push eax
call fcn.00401030
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0x68]
push eax
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40bb7d
mov ecx, dword [ebp - 0xa0]
mov edx, 0x4b47a0
sub edx, ecx
nop word [eax + eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x40bb70
push esi
call fcn.00468056
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
mov eax, 0x4b47a0
pop edi
pop esi
pop ebx
call fcn.0046300c
mov esp, ebp
pop ebp
ret