Function at 0x436084
Capabilities:
Get file version info

Disassembly:
push 0x110
mov eax, 0x47e93c
call fcn.00450819
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov edi, dword [ebp + 8]
mov ecx, edi
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x48]
push eax
mov dword [ebp - 0x48], ebx
call fcn.004071ba
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
test esi, esi
jne 0x4360ce
push str.GetFileVersionInfoSize_Failed
push 1
call fcn.00406d9c
pop ecx
pop ecx
xor al, al
jmp 0x4362ed
push esi
lea ecx, [ebp - 0x64]
call fcn.0040cf65
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x64]
call fcn.0040732b
mov ecx, edi
mov dword [ebp - 0x44], eax
push dword [eax]
push esi
push ebx
call fcn.004071ba
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x43614e
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x11c]
mov esi, eax
call fcn.00408d76
mov edi, eax
mov byte [ebp - 4], 1
push str.GetFileVersionInfo_Failed_with_Error_code_
push edi
call fcn.0040b812
pop ecx
pop ecx
push esi
mov ecx, edi
call fcn.0040a427
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.00408d5d
mov byte [ebp - 4], 2
lea eax, [ebp - 0x28]
push eax
push 1
call fcn.00406d81
pop ecx
pop ecx
mov byte [ebp - 4], 1
jmp 0x4362c9
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x4c]
push eax
mov eax, dword [ebp - 0x44]
push 0x4914c0
push dword [eax]
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x43627b
mov eax, dword [ebp - 0x4c]
lea ecx, [ebp - 0x11c]
movzx esi, word [eax + 0xa]
movzx edi, word [eax + 8]
movzx ebx, word [eax + 0xe]
movzx eax, word [eax + 0xc]
mov dword [ebp - 0x50], eax
call fcn.00408d76
mov dword [ebp - 0x44], eax
mov byte [ebp - 4], 3
push esi
mov esi, eax
mov ecx, esi
call fcn.0040e0c2
push 0x2e
push esi
call fcn.0040b9d8
push 0
lea eax, [ebp - 0x74]
push 2
push eax
call fcn.0044f90b
add esp, 0x14
mov edx, eax
mov ecx, esi
call fcn.0040c7d8
mov eax, dword [esi]
push 0x30
pop ecx
push edi
mov eax, dword [eax + 4]
mov word [eax + esi + 0x40], cx
mov ecx, esi
call fcn.0040e0c2
push 0x2e
push esi
call fcn.0040b9d8
push 0
lea eax, [ebp - 0x84]
push 2
push eax
call fcn.0044f90b
add esp, 0x14
mov edx, eax
mov ecx, esi
call fcn.0040c7d8
mov eax, dword [esi]
mov ecx, esi
push 0x30
pop edi
push ebx
mov eax, dword [eax + 4]
mov word [eax + esi + 0x40], di
call fcn.0040e0c2
push 0x2e
push esi
call fcn.0040b9d8
xor ebx, ebx
lea eax, [ebp - 0x20]
push ebx
push 4
push eax
call fcn.0044f90b
add esp, 0x14
mov edx, eax
mov ecx, esi
call fcn.0040c7d8
mov eax, dword [esi]
mov ecx, esi
push dword [ebp - 0x50]
mov eax, dword [eax + 4]
mov word [eax + esi + 0x40], di
call fcn.0040e0c2
lea eax, [ebp - 0x40]
mov ecx, esi
push eax
call fcn.00408d5d
mov byte [ebp - 4], 4
push eax
mov ecx, dword [ebp - 0x54]
call fcn.0041508c
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x40]
call fcn.00407241
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x11c]
call fcn.0040878b
mov bl, 1
jmp 0x4362df
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x11c]
mov esi, eax
call fcn.00408d76
mov edi, eax
mov byte [ebp - 4], 5
push str.VerQueryValue_Failed_with_error_code_
push edi
call fcn.0040b812
pop ecx
pop ecx
push esi
mov ecx, edi
call fcn.0040a427
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.00408d5d
mov byte [ebp - 4], 6
lea eax, [ebp - 0x28]
push eax
push 1
call fcn.00406d81
pop ecx
pop ecx
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x28]
call fcn.00407241
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x11c]
call fcn.0040878b
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64]
call fcn.0040c901
mov al, bl
call fcn.004507c3
ret 8