Function at 0x476c15
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x59d523
mov eax, dword fs:[0]
push eax
sub esp, 0x450
mov eax, dword [0x6274d0]
xor eax, esp
mov dword [esp + 0x448], eax
push ebx
push esi
push edi
mov eax, dword [0x6274d0]
xor eax, esp
push eax
lea eax, [esp + 0x460]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor esi, esi
lea eax, [edi + 0x10]
mov dword [edi], esi
mov dword [edi + 4], esi
mov dword [edi + 8], esi
mov dword [edi + 0xc], esi
cmp dword [eax + 0x14], 8
mov dword [esp + 0x3c], eax
mov dword [eax + 0x10], esi
jb 0x476c77
mov eax, dword [eax]
xor ecx, ecx
lea ebx, [esp + 0x24]
mov word [eax], cx
call fcn.00476b4c
mov ecx, dword [eax]
mov dword [edi + 0x30], ecx
mov eax, dword [eax + 4]
mov dword [edi + 0x34], eax
lea eax, [esp + 0x1c]
push eax
push fcn.00476c15
push 6
mov dword [esp + 0x28], esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
test eax, eax
jne 0x476cb1
xor al, al
jmp 0x476e70
xor eax, eax
push 0x206
mov word [esp + 0x50], ax
lea eax, [esp + 0x52]
push esi
push eax
call fcn.00560d40
add esp, 0xc
push 0x104
lea eax, [esp + 0x50]
push eax
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x476caa
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x50]
push eax
mov dword [esp + 0x48], esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
cmp ebx, esi
je 0x476caa
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
mov esi, ebx
lea eax, [esp + 0x24]
call fcn.00431e99
xor esi, esi
mov dword [esp + 0x468], esi
push dword [esp + 0x24]
lea eax, [esp + 0x50]
push ebx
push esi
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x476d4b
cmp dword [esp + 0x24], esi
je 0x476caa
push dword [esp + 0x24]
call fcn.0055e74f
pop ecx
jmp 0x476caa
push 4
pop ebx
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x24]
push eax
push 0x5c2724
push dword [esp + 0x30]
mov dword [esp + 0x30], esi
mov esi, dword [sym.imp.VERSION.dll_VerQueryValueW]
mov dword [esp + 0x48], ebx
call esi
test eax, eax
jne 0x476d7b
cmp dword [esp + 0x24], eax
jmp 0x476d36
mov eax, dword [esp + 0x20]
movzx ecx, word [eax + 0xa]
mov dword [edi], ecx
mov edx, dword [eax + 8]
mov ecx, 0xffff
and edx, ecx
mov dword [edi + 4], edx
movzx edx, word [eax + 0xe]
mov dword [edi + 8], edx
mov eax, dword [eax + 0x30]
and eax, ecx
mov dword [edi + 0xc], eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x4c]
push eax
mov dword [esp + 0x1c], ebx
mov ebx, dword [esp + 0x2c]
push str.VarFileInfoTranslation
push ebx
call esi
test eax, eax
jne 0x476dcd
test ebx, ebx
je 0x476caa
push ebx
jmp 0x476d40
xor eax, eax
push 0x1fe
mov word [esp + 0x258], ax
xor edi, edi
lea eax, [esp + 0x25a]
push edi
push eax
call fcn.00560d40
add esp, 0xc
test dword [esp + 0x14], 0xfffffffc
jbe 0x476e63
mov eax, dword [esp + 0x48]
lea eax, [eax + edi*4]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push ecx
push eax
lea eax, [esp + 0x25c]
push str.StringFileInfo_04x_04xFileDescription
push eax
call fcn.00476efe
and dword [esp + 0x54], 0
and dword [esp + 0x28], 0
add esp, 0x10
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x25c]
push eax
push ebx
call esi
test eax, eax
je 0x476e48
cmp dword [esp + 0x18], 0
jne 0x476e56
mov eax, dword [esp + 0x14]
inc edi
shr eax, 2
cmp edi, eax
jb 0x476df9
jmp 0x476e63
push dword [esp + 0x18]
push dword [esp + 0x40]
call fcn.0040ad38
test ebx, ebx
je 0x476e6e
push ebx
call fcn.0055e74f
pop ecx
mov al, 1
mov ecx, dword [esp + 0x460]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x448]
xor ecx, esp
call fcn.0055d7fe
mov esp, ebp
pop ebp
ret