Function at 0x41d880
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
push edi
push str.FaultingModule
mov esi, ecx
mov byte [ebp - 1], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
call fcn.00420e00
add esp, 4
lea ecx, [ebp - 0x34]
push eax
push str.FaultingModule
call fcn.00403040
mov ecx, dword [esi + 0x14]
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x54]
push eax
call fcn.0040f970
mov eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x28]
add eax, eax
push eax
push dword [ebp - 0x2c]
call fcn.00420bb0
mov eax, dword [ebp - 0x4c]
mov edi, 0x5b3144
test eax, eax
mov ecx, edi
push 0x5c
cmovne ecx, eax
push ecx
call dword [sym.imp.VCRUNTIME140.dll_wcsrchr]
mov ecx, dword [ebp - 0x4c]
add esp, 8
test eax, eax
je 0x41d906
lea esi, [eax + 2]
jmp 0x41d90d
test ecx, ecx
mov esi, edi
cmovne esi, ecx
test ecx, ecx
mov dword [ebp - 0x18], 0
mov eax, edi
cmovne eax, ecx
lea ecx, [ebp - 0x18]
push ecx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41daab
push ebx
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov ebx, eax
mov eax, dword [ebp - 0x4c]
mov ecx, edi
test eax, eax
push ebx
push dword [ebp - 0x14]
cmovne ecx, eax
push 0
push ecx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x41daa0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push str.VarFileInfoTranslation
push ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x41daa0
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
lea eax, [ecx + 2]
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x44]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x40], 0
push eax
push str.StringFileInfo0:x41:x4ProductName
mov dword [ebp - 0x3c], 0
call fcn.0041ae30
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
lea eax, [ecx + 2]
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x34]
lea eax, [ebp - 0x20]
push eax
push str.StringFileInfo0:x41:x4FileDescription
call fcn.0041ae30
mov eax, dword [ebp - 0x3c]
mov ecx, edi
test eax, eax
cmovne ecx, eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push ecx
push ebx
call sub.VERSION.dll_VerQueryValueW
mov eax, dword [ebp - 0x2c]
test eax, eax
cmovne edi, eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
push edi
push ebx
call sub.VERSION.dll_VerQueryValueW
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x41da69
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x41da69
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x24]
push eax
push str.DXHook.dll
push 0x54bc80
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], ecx
call fcn.0041add0
mov esi, eax
add esp, 0xc
cmp esi, str.DXHook.dll
je 0x41da69
push dword [esi + 0xc]
mov ecx, dword [ebp + 8]
mov byte [ebp - 1], 1
call fcn.0041baa0
push dword [esi + 0x10]
mov ecx, dword [ebp + 0xc]
call fcn.0041baa0
mov eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x28]
add eax, eax
push eax
push dword [ebp - 0x2c]
call fcn.00420bb0
mov eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x38]
add eax, eax
mov dword [ebp - 0x2c], 0
push eax
push dword [ebp - 0x3c]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 0
call fcn.00420bb0
push ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
pop ebx
mov ecx, dword [ebp - 0x50]
add ecx, ecx
push ecx
push dword [ebp - 0x4c]
lea ecx, [ebp - 0x48]
call fcn.00420bb0
mov al, byte [ebp - 1]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8