Function at 0x4218d0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x4cdbf8]
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 [0x4e5f60], 0
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0x98], eax
test eax, eax
jne 0x4219b2
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.00436990
test eax, eax
je 0x421990
call fcn.00436990
cmp dword [eax], 0
je 0x421990
mov eax, dword [0x4eeee0]
test eax, eax
je 0x421954
mov esi, dword [eax + 0x190]
jmp 0x42195a
mov esi, dword [0x4eeee4]
call fcn.00436990
test eax, eax
je 0x42196c
call fcn.00436990
mov ecx, dword [eax]
jmp 0x42196e
xor ecx, ecx
mov eax, dword [ebp - 0x9c]
push eax
push eax
push dword [0x4eeee0]
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, 0x4b19af
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047fe8c
mov esp, ebp
pop ebp
ret
push eax
call fcn.00487397
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 0x421a83
push 0x4a0eb4
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 0x421b1d
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 0x4e5f60
call fcn.00424110
add esp, 0x30
jmp 0x421b1d
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 0x421acf
mov ecx, dword [ebp - 0xa0]
mov edx, 0x4e5f60
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 0x421ac0
jmp 0x421b1d
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 0x421b1d
mov ecx, dword [ebp - 0xa0]
mov edx, 0x4e5f60
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 0x421b10
push esi
call fcn.0048737c
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
mov eax, 0x4e5f60
pop edi
pop esi
pop ebx
call fcn.0047fe8c
mov esp, ebp
pop ebp
ret