Function at 0x420d70
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x4ccbf8]
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 [0x4e4f60], 0
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0x98], eax
test eax, eax
jne 0x420e52
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.00435f20
test eax, eax
je 0x420e30
call fcn.00435f20
cmp dword [eax], 0
je 0x420e30
mov eax, dword [0x4edee0]
test eax, eax
je 0x420df4
mov esi, dword [eax + 0x190]
jmp 0x420dfa
mov esi, dword [0x4edee4]
call fcn.00435f20
test eax, eax
je 0x420e0c
call fcn.00435f20
mov ecx, dword [eax]
jmp 0x420e0e
xor ecx, ecx
mov eax, dword [ebp - 0x9c]
push eax
push eax
push dword [0x4edee0]
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, 0x4b1aef
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047f41c
mov esp, ebp
pop ebp
ret
push eax
call fcn.00486927
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 0x420f23
push 0x4a0f24
push eax
call fcn.00401045
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 0x420fbd
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 0x4e4f60
call fcn.004236c0
add esp, 0x30
jmp 0x420fbd
push edi
push str.StringFileInfo040904e2_s
push eax
call fcn.00401045
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 0x420f6f
mov ecx, dword [ebp - 0xa0]
mov edx, 0x4e4f60
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 0x420f60
jmp 0x420fbd
push edi
lea eax, [ebp - 0x68]
push str.StringFileInfo040904b0_s
push eax
call fcn.00401045
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 0x420fbd
mov ecx, dword [ebp - 0xa0]
mov edx, 0x4e4f60
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 0x420fb0
push esi
call fcn.0048690c
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
mov eax, 0x4e4f60
pop edi
pop esi
pop ebx
call fcn.0047f41c
mov esp, ebp
pop ebp
ret