Function at 0x449810
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57a47b
mov eax, dword fs:[0]
push eax
sub esp, 0x42c
mov eax, dword [0x5c4104]
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 esi, edx
mov dword [ebp - 0x42c], esi
mov ebx, ecx
mov dword [ebp - 0x430], ebx
mov eax, dword [ebp + 8]
push 0x208
mov dword [ebp - 0x434], eax
lea eax, [ebp - 0x420]
push 0
push eax
mov dword [ebp - 0x438], 0
call fcn.0051f290
add esp, 0xc
push 0
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [ebp - 0x430], eax
call fcn.00406e20
mov ecx, eax
test ecx, ecx
jne 0x44989b
push 0x80004005
call fcn.004071e0
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4498b0
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x4498b2
call edx
lea esi, [eax + 0x10]
mov dword [ebp - 0x424], esi
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x430]
test eax, eax
je 0x449a57
push eax
call fcn.0051b749
mov edi, eax
add esp, 4
test edi, edi
jne 0x4498fb
push 0x59af0c
mov ecx, ebx
call fcn.00404e80
lea ecx, [ebp - 0x424]
call fcn.00404e00
jmp 0x449aa9
push edi
push dword [ebp - 0x430]
push 0
push dword [ebp - 0x42c]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x449a4c
lea eax, [ebp - 0x430]
mov dword [ebp - 0x428], 0
push eax
lea eax, [ebp - 0x428]
mov dword [ebp - 0x42c], 0
push eax
push str.VarFileInfoTranslation
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x44996f
mov ecx, dword [ebp - 0x428]
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
lea eax, [ebp - 0x424]
push str._04x_04x
push eax
call fcn.0041f560
add esp, 0x10
jmp 0x449988
push str.041904b0
lea eax, [ebp - 0x424]
push 0x59aeec
push eax
call fcn.0041f560
add esp, 0xc
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0051f290
mov esi, dword [ebp - 0x424]
add esp, 0xc
cmp dword [esi - 4], 1
jle 0x4499be
push dword [esi - 0xc]
lea ecx, [ebp - 0x424]
call fcn.00405b80
mov esi, dword [ebp - 0x424]
push dword [ebp - 0x434]
lea eax, [ebp - 0x218]
push esi
push str.StringFileInfo_s_s
push 0x104
push eax
call fcn.0044b850
add esp, 0x14
mov dword [ebp - 0x428], 0
lea eax, [ebp - 0x42c]
mov dword [ebp - 0x42c], 0
push eax
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x218]
push eax
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x449a4c
cmp dword [ebp - 0x42c], 0
je 0x449a4c
mov eax, dword [ebp - 0x428]
test eax, eax
je 0x449a4c
push 2
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x449a4c
push dword [ebp - 0x428]
lea eax, [ebp - 0x420]
push 0x104
push eax
call fcn.0053c7ec
add esp, 0xc
push 1
push edi
call fcn.0051aa47
add esp, 8
lea eax, [ebp - 0x420]
mov ecx, ebx
push eax
call fcn.00404e80
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x449aa9
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x449aa7
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x449aa7
push 0
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x449aa9
call edx
mov eax, ebx
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.0051b15a
mov esp, ebp
pop ebp
ret