Function at 0x470530
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57d28b
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.0051edd0
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 0x4705bb
push 0x80004005
call fcn.004071e0
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4705d0
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x4705d2
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 0x470777
push eax
call fcn.0051b289
mov edi, eax
add esp, 4
test edi, edi
jne 0x47061b
push 0x59aeec
mov ecx, ebx
call fcn.00404e80
lea ecx, [ebp - 0x424]
call fcn.00404e00
jmp 0x4707c9
push edi
push dword [ebp - 0x430]
push 0
push dword [ebp - 0x42c]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x47076c
lea eax, [ebp - 0x430]
mov dword [ebp - 0x428], 0
push eax
lea eax, [ebp - 0x428]
mov dword [ebp - 0x42c], 0
push eax
push 0x5a1ea8
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x47068f
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 0x4706a8
push str.041904b0
lea eax, [ebp - 0x424]
push 0x59aecc
push eax
call fcn.0041f560
add esp, 0xc
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0051edd0
mov esi, dword [ebp - 0x424]
add esp, 0xc
cmp dword [esi - 4], 1
jle 0x4706de
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.004723f0
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 0x47076c
cmp dword [ebp - 0x42c], 0
je 0x47076c
mov eax, dword [ebp - 0x428]
test eax, eax
je 0x47076c
push 2
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x47076c
push dword [ebp - 0x428]
lea eax, [ebp - 0x420]
push 0x104
push eax
call fcn.0053c32c
add esp, 0xc
push 1
push edi
call fcn.0051a57b
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 0x4707c9
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4707c7
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x4707c7
push 0
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x4707c9
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.0051ac8e
mov esp, ebp
pop ebp
ret