Function at 0x476770
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x898
push esi
push edi
lea edi, [ebp - 0x898]
mov ecx, 0x226
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x4f3280]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
je 0x4767a7
mov eax, dword [ebp + 8]
movzx ecx, word [eax]
test ecx, ecx
jne 0x4767ae
xor eax, eax
jmp 0x476b49
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov word [ebp - 0x220], 0
push 0x208
push 0
lea edx, [ebp - 0x21e]
push edx
call fcn.004a1d00
add esp, 0xc
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x244], 0
mov dword [ebp - 0x250], 0
mov word [ebp - 0x464], 0
push 0x208
push 0
lea eax, [ebp - 0x462]
push eax
call fcn.004a1d00
add esp, 0xc
mov word [ebp - 0x678], 0
push 0x208
push 0
lea ecx, [ebp - 0x676]
push ecx
call fcn.004a1d00
add esp, 0xc
mov word [ebp - 0x88c], 0
push 0x208
push 0
lea edx, [ebp - 0x88a]
push edx
call fcn.004a1d00
add esp, 0xc
push 0
mov eax, dword [ebp + 8]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x476882
xor eax, eax
jmp 0x476b49
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.004a0665
add esp, 4
mov dword [ebp - 0x894], eax
mov edx, dword [ebp - 0x894]
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 0
jne 0x4768ad
jmp 0x476b21
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x4768ce
jmp 0x476b21
lea eax, [ebp - 0x244]
push eax
lea ecx, [ebp - 0x250]
push ecx
push str.VarFileInfoTranslation
mov edx, dword [ebp - 0xc]
push edx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x4768f8
jmp 0x476b21
push 0x20a
push 0
lea eax, [ebp - 0x220]
push eax
call fcn.004a1d00
add esp, 0xc
mov ecx, dword [ebp - 0x250]
movzx edx, word [ecx + 2]
push edx
mov eax, dword [ebp - 0x250]
movzx ecx, word [eax]
push ecx
push str.StringFileInfo_04x_04xFileDescription
push 0x104
lea edx, [ebp - 0x220]
push edx
call fcn.004a54fd
add esp, 0x14
lea eax, [ebp - 0x238]
push eax
lea ecx, [ebp - 0x22c]
push ecx
lea edx, [ebp - 0x220]
push edx
mov eax, dword [ebp - 0xc]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x476989
cmp dword [ebp - 0x238], 0
jbe 0x476989
mov esi, esp
push 0x104
mov ecx, dword [ebp - 0x22c]
push ecx
lea edx, [ebp - 0x464]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
cmp esi, esp
call fcn.004c39d6
push 0x20a
push 0
lea eax, [ebp - 0x220]
push eax
call fcn.004a1d00
add esp, 0xc
mov ecx, dword [ebp - 0x250]
movzx edx, word [ecx + 2]
push edx
mov eax, dword [ebp - 0x250]
movzx ecx, word [eax]
push ecx
push str.StringFileInfo_04x_04xFileVersion
push 0x104
lea edx, [ebp - 0x220]
push edx
call fcn.004a54fd
add esp, 0x14
lea eax, [ebp - 0x238]
push eax
lea ecx, [ebp - 0x22c]
push ecx
lea edx, [ebp - 0x220]
push edx
mov eax, dword [ebp - 0xc]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x476a1a
cmp dword [ebp - 0x238], 0
jbe 0x476a1a
mov esi, esp
push 0x104
mov ecx, dword [ebp - 0x22c]
push ecx
lea edx, [ebp - 0x678]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
cmp esi, esp
call fcn.004c39d6
push 0x20a
push 0
lea eax, [ebp - 0x220]
push eax
call fcn.004a1d00
add esp, 0xc
mov ecx, dword [ebp - 0x250]
movzx edx, word [ecx + 2]
push edx
mov eax, dword [ebp - 0x250]
movzx ecx, word [eax]
push ecx
push str.StringFileInfo_04x_04xProductName
push 0x104
lea edx, [ebp - 0x220]
push edx
call fcn.004a54fd
add esp, 0x14
lea eax, [ebp - 0x238]
push eax
lea ecx, [ebp - 0x22c]
push ecx
lea edx, [ebp - 0x220]
push edx
mov eax, dword [ebp - 0xc]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x476aab
cmp dword [ebp - 0x238], 0
jbe 0x476aab
mov esi, esp
push 0x104
mov ecx, dword [ebp - 0x22c]
push ecx
lea edx, [ebp - 0x88c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
cmp esi, esp
call fcn.004c39d6
cmp dword [ebp + 0xc], 0
je 0x476ad0
mov esi, esp
push 0x104
lea eax, [ebp - 0x464]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
cmp esi, esp
call fcn.004c39d6
cmp dword [ebp + 0x10], 0
je 0x476af5
mov esi, esp
push 0x104
lea edx, [ebp - 0x678]
push edx
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
cmp esi, esp
call fcn.004c39d6
cmp dword [ebp + 0x14], 0
je 0x476b1a
mov esi, esp
push 0x104
lea ecx, [ebp - 0x88c]
push ecx
mov edx, dword [ebp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
cmp esi, esp
call fcn.004c39d6
mov dword [ebp - 8], 1
cmp dword [ebp - 0xc], 0
je 0x476b3f
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x898], eax
mov ecx, dword [ebp - 0x898]
push ecx
call fcn.004a171e
add esp, 4
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 8]
push edx
mov ecx, ebp
push eax
lea edx, [0x476b78]
call fcn.004c39f9
pop eax
pop edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a1723
add esp, 0x898
cmp ebp, esp
call fcn.004c39d6
mov esp, ebp
pop ebp
ret