Function at 0x435c25
Capabilities:
Get file version info

Disassembly:
push 0x110
mov eax, 0x4a1674
call fcn.0045201c
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.00402109
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
test esi, esi
jne 0x435c6f
push str.GetFileVersionInfoSize_Failed
push 1
call fcn.00401235
pop ecx
pop ecx
xor al, al
jmp 0x435e99
push ecx
push esi
lea ecx, [ebp - 0x64]
call fcn.0040a2ce
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x64]
call fcn.00401ffa
mov ecx, edi
mov dword [ebp - 0x44], eax
push dword [eax]
push esi
push ebx
call fcn.00402109
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x435cf5
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x11c]
mov esi, eax
call fcn.00402a5a
mov edi, eax
mov byte [ebp - 4], 1
push str.GetFileVersionInfo_Failed_with_Error_code_
push edi
call fcn.0040508d
pop ecx
pop ecx
push esi
mov ecx, edi
call fcn.00403c13
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.00402a43
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
call fcn.00402109
push eax
push 1
call fcn.00401235
pop ecx
pop ecx
mov byte [ebp - 4], 1
jmp 0x435e75
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x4c]
push eax
mov eax, dword [ebp - 0x44]
push 0x4b6b54
push dword [eax]
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x435e22
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.00402a5a
mov dword [ebp - 0x44], eax
mov byte [ebp - 4], 3
push esi
mov esi, eax
mov ecx, esi
call fcn.0040b434
push 0x2e
push esi
call fcn.00405243
push 0
lea eax, [ebp - 0x74]
push 2
push eax
call fcn.00450dcf
add esp, 0x14
mov edx, eax
mov ecx, esi
call fcn.00407490
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.0040b434
push 0x2e
push esi
call fcn.00405243
push 0
lea eax, [ebp - 0x84]
push 2
push eax
call fcn.00450dcf
add esp, 0x14
mov edx, eax
mov ecx, esi
call fcn.00407490
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.0040b434
push 0x2e
push esi
call fcn.00405243
xor ebx, ebx
lea eax, [ebp - 0x20]
push ebx
push 4
push eax
call fcn.00450dcf
add esp, 0x14
mov edx, eax
mov ecx, esi
call fcn.00407490
mov eax, dword [esi]
mov ecx, esi
push dword [ebp - 0x50]
mov eax, dword [eax + 4]
mov word [eax + esi + 0x40], di
call fcn.0040b434
lea eax, [ebp - 0x40]
mov ecx, esi
push eax
call fcn.00402a43
mov byte [ebp - 4], 4
push eax
mov ecx, dword [ebp - 0x54]
call fcn.0040165f
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x40]
call fcn.004020b0
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x11c]
call fcn.00402479
mov bl, 1
jmp 0x435e8b
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x11c]
mov esi, eax
call fcn.00402a5a
mov edi, eax
mov byte [ebp - 4], 5
push str.VerQueryValue_Failed_with_error_code_
push edi
call fcn.0040508d
pop ecx
pop ecx
push esi
mov ecx, edi
call fcn.00403c13
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.00402a43
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x28]
call fcn.00402109
push eax
push 1
call fcn.00401235
pop ecx
pop ecx
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x28]
call fcn.004020b0
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x11c]
call fcn.00402479
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64]
call fcn.004076a2
mov al, bl
call fcn.00451fc5
ret 8