Function at 0x473d20
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x582c5b
mov eax, dword fs:[0]
push eax
sub esp, 0x42c
mov eax, dword [0x5ca104]
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 - 0x428], 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.00524040
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 0x473dab
push 0x80004005
call fcn.004071e0
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x473dc0
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x473dc2
call edx
lea esi, [eax + 0x10]
mov dword [ebp - 0x42c], esi
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x430]
test eax, eax
je 0x473f4a
push eax
call fcn.005204f9
mov edi, eax
add esp, 4
test edi, edi
jne 0x473e0b
push 0x5a0e3c
mov ecx, ebx
call fcn.00404e80
lea ecx, [ebp - 0x42c]
call fcn.00404e00
jmp 0x473f9c
push edi
push dword [ebp - 0x430]
push 0
push dword [ebp - 0x428]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x473f3f
lea eax, [ebp - 0x430]
mov dword [ebp - 0x424], 0
push eax
lea eax, [ebp - 0x424]
mov dword [ebp - 0x428], 0
push eax
push str.VarFileInfoTranslation
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x473e7f
mov ecx, dword [ebp - 0x424]
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
lea eax, [ebp - 0x42c]
push str._04x_04x
push eax
call fcn.00420660
add esp, 0x10
jmp 0x473e98
push str.041904b0
lea eax, [ebp - 0x42c]
push 0x5a0e1c
push eax
call fcn.00420660
add esp, 0xc
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00524040
push dword [ebp - 0x434]
mov esi, dword [ebp - 0x42c]
lea eax, [ebp - 0x218]
push esi
push str.StringFileInfo_s_s
push 0x104
push eax
call fcn.00475ba0
add esp, 0x20
mov dword [ebp - 0x424], 0
lea eax, [ebp - 0x428]
mov dword [ebp - 0x428], 0
push eax
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x218]
push eax
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x473f3f
cmp dword [ebp - 0x428], 0
je 0x473f3f
mov eax, dword [ebp - 0x424]
test eax, eax
je 0x473f3f
push 2
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x473f3f
push dword [ebp - 0x424]
lea eax, [ebp - 0x420]
push 0x104
push eax
call fcn.0054159d
add esp, 0xc
push 1
push edi
call fcn.0051f7e9
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 0x473f9c
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x473f9a
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x473f9a
push 0
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x473f9c
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.0051fefc
mov esp, ebp
pop ebp
ret