Function at 0x476870
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 0x4768a7
mov eax, dword [ebp + 8]
movzx ecx, word [eax]
test ecx, ecx
jne 0x4768ae
xor eax, eax
jmp 0x476c49
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.004a1e50
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.004a1e50
add esp, 0xc
mov word [ebp - 0x678], 0
push 0x208
push 0
lea ecx, [ebp - 0x676]
push ecx
call fcn.004a1e50
add esp, 0xc
mov word [ebp - 0x88c], 0
push 0x208
push 0
lea edx, [ebp - 0x88a]
push edx
call fcn.004a1e50
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 0x476982
xor eax, eax
jmp 0x476c49
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.004a07b5
add esp, 4
mov dword [ebp - 0x894], eax
mov edx, dword [ebp - 0x894]
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 0
jne 0x4769ad
jmp 0x476c21
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 0x4769ce
jmp 0x476c21
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 0x4769f8
jmp 0x476c21
push 0x20a
push 0
lea eax, [ebp - 0x220]
push eax
call fcn.004a1e50
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.004a564d
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 0x476a89
cmp dword [ebp - 0x238], 0
jbe 0x476a89
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.004c3b36
push 0x20a
push 0
lea eax, [ebp - 0x220]
push eax
call fcn.004a1e50
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.004a564d
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 0x476b1a
cmp dword [ebp - 0x238], 0
jbe 0x476b1a
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.004c3b36
push 0x20a
push 0
lea eax, [ebp - 0x220]
push eax
call fcn.004a1e50
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.004a564d
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 0x476bab
cmp dword [ebp - 0x238], 0
jbe 0x476bab
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.004c3b36
cmp dword [ebp + 0xc], 0
je 0x476bd0
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.004c3b36
cmp dword [ebp + 0x10], 0
je 0x476bf5
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.004c3b36
cmp dword [ebp + 0x14], 0
je 0x476c1a
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.004c3b36
mov dword [ebp - 8], 1
cmp dword [ebp - 0xc], 0
je 0x476c3f
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x898], eax
mov ecx, dword [ebp - 0x898]
push ecx
call fcn.004a186e
add esp, 4
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 8]
push edx
mov ecx, ebp
push eax
lea edx, [0x476c78]
call fcn.004c3b59
pop eax
pop edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a1873
add esp, 0x898
cmp ebp, esp
call fcn.004c3b36
mov esp, ebp
pop ebp
ret