Function at 0x401a20
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4281c3
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x43c014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x44], edx
mov esi, ecx
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x48], 0
lea ecx, [ebp - 0x2c]
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 ebx, eax
test ebx, ebx
jne 0x401a8c
mov ecx, esi
call dword [sym.imp.mfc140u.dll_Ordinal_296]
jmp 0x401bf5
lea eax, [ebx + 1]
push eax
call dword [sym.imp.mfc140u.dll_operator_1]
add esp, 4
mov edi, eax
push edi
push ebx
push 0
push dword [ebp + 8]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x401bdf
mov ebx, dword [sym.imp.VERSION.dll_VerQueryValueW]
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x34]
mov dword [ebp - 0x40], 0
push eax
push 0x42cbf0
push edi
mov dword [ebp - 0x34], 0
call ebx
cmp dword [ebp - 0x34], 0
je 0x401bdf
lea ecx, [ebp - 0x30]
call dword [sym.imp.mfc140u.dll_Ordinal_296]
cmp dword [ebp - 0x44], 0
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x34]
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
lea eax, [ebp - 0x30]
je 0x401b07
push str.StringFileInfo_04x_04xFileVersion
jmp 0x401b0c
push str.StringFileInfo_04x_04xProductVersion
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 - 0x38], 0
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x3c], 0
push eax
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x30]
push edi
call ebx
mov edx, dword [ebp - 0x38]
test edx, edx
je 0x401bd2
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp word [edx], ax
jne 0x401b5a
xor ecx, ecx
jmp 0x401b6f
mov ecx, edx
lea ebx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401b60
sub ecx, ebx
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00402410
mov byte [ebp - 4], 3
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::operator]
push 0x2e
push 0x2c
lea ecx, [ebp - 0x2c]
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 - 0x2c]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__10]
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x401bbe
inc eax
push eax
push dword [ebp - 0x28]
call fcn.004025c0
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
push edi
call dword [sym.imp.mfc140u.dll_operator]
add esp, 4
lea eax, [ebp - 0x2c]
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 - 0x2c]
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 - 0x10]
xor ecx, ebp
call fcn.00426682
mov esp, ebp
pop ebp
ret