Function at 0x417800
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x429df3
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x43c014]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x48], 0
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], 0
call dword [sym.imp.mfc140u.dll_Ordinal_296]
push 0
mov byte [ebp - 4], 1
push dword [ebp + 8]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test edi, edi
jne 0x417869
mov ecx, esi
call dword [sym.imp.mfc140u.dll_Ordinal_296]
jmp 0x4179c5
lea eax, [edi + 1]
push eax
call dword [sym.imp.mfc140u.dll_operator_1]
add esp, 4
mov ebx, eax
push ebx
push edi
push 0
push dword [ebp + 8]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x4179af
mov edi, dword [sym.imp.VERSION.dll_VerQueryValueW]
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x38]
mov dword [ebp - 0x44], 0
push eax
push 0x42cbf0
push ebx
mov dword [ebp - 0x38], 0
call edi
cmp dword [ebp - 0x38], 0
je 0x4179af
lea ecx, [ebp - 0x34]
call dword [sym.imp.mfc140u.dll_Ordinal_296]
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x38]
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
lea eax, [ebp - 0x34]
push str.StringFileInfo_04x_04xFileVersion
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__14]
add esp, 0x10
mov dword [ebp - 0x3c], 0
lea eax, [ebp - 0x40]
mov dword [ebp - 0x40], 0
push eax
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0x34]
push ebx
call edi
mov edx, dword [ebp - 0x3c]
test edx, edx
je 0x4179a2
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
cmp word [edx], ax
jne 0x41792a
xor ecx, ecx
jmp 0x41793f
mov ecx, edx
lea edi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x417930
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x2c]
call fcn.00402410
mov byte [ebp - 4], 3
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], 8
lea ecx, [ebp - 0x30]
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::operator]
push 0x2e
push 0x2c
lea ecx, [ebp - 0x30]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__10]
push 0x30
push 0x20
lea ecx, [ebp - 0x30]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__10]
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x41798e
inc eax
push eax
push dword [ebp - 0x2c]
call fcn.004025c0
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
push ebx
call dword [sym.imp.mfc140u.dll_operator]
add esp, 4
lea eax, [ebp - 0x30]
mov ecx, esi
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__13]
lea ecx, [ebp - 0x30]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp + 8]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00426682
mov esp, ebp
pop ebp
ret