Function at 0x476b00
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x585c1b
mov eax, dword fs:[0]
push eax
sub esp, 0x42c
mov eax, dword [0x5ce104]
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.00526bd0
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 0x476b8b
push 0x80004005
call fcn.004071e0
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x476ba0
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x476ba2
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 0x476d2a
push eax
call fcn.00523089
mov edi, eax
add esp, 4
test edi, edi
jne 0x476beb
push 0x5a3e2c
mov ecx, ebx
call fcn.00404e80
lea ecx, [ebp - 0x42c]
call fcn.00404e00
jmp 0x476d7c
push edi
push dword [ebp - 0x430]
push 0
push dword [ebp - 0x428]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x476d1f
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 0x476c5f
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.00420620
add esp, 0x10
jmp 0x476c78
push str.041904b0
lea eax, [ebp - 0x42c]
push 0x5a3e0c
push eax
call fcn.00420620
add esp, 0xc
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00526bd0
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.00478990
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 0x476d1f
cmp dword [ebp - 0x428], 0
je 0x476d1f
mov eax, dword [ebp - 0x424]
test eax, eax
je 0x476d1f
push 2
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x476d1f
push dword [ebp - 0x424]
lea eax, [ebp - 0x420]
push 0x104
push eax
call fcn.0054412f
add esp, 0xc
push 1
push edi
call fcn.00522387
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 0x476d7c
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x476d7a
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x476d7a
push 0
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x476d7c
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.00522a9a
mov esp, ebp
pop ebp
ret