Function at 0x47c450
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a0b98
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x4c9144]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
lea eax, [ebp - 0x2c]
push eax
push ebx
mov byte [ebp - 0xd], 0
mov dword [ebp - 0x2c], 0
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
test esi, esi
je 0x47c66a
push esi
call fcn.00487e0b
mov edi, eax
add esp, 4
mov dword [ebp - 0x20], edi
push edi
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x2c]
push esi
push ecx
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x47c661
lea edx, [ebp - 0x28]
push edx
call fcn.0041b8b0
lea eax, [ebp - 0x24]
push eax
mov byte [ebp - 4], 1
call fcn.0041b8b0
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x30]
push edx
mov byte [ebp - 4], 2
mov ebx, dword [sym.imp.VERSION.dll_VerQueryValueW]
push str.VarFileInfoTranslation
push edi
mov dword [ebp - 0x30], 0
call ebx
test eax, eax
je 0x47c53c
cmp dword [ebp - 0x18], 4
jb 0x47c53c
mov eax, dword [ebp - 0x30]
mov eax, dword [eax]
mov esi, eax
movzx eax, ax
shr esi, 0x10
push esi
push eax
push str.StringFileInfo_04X_04XCompanyName
lea edi, [ebp - 0x28]
mov dword [ebp - 0x1c], eax
call fcn.00417250
mov ecx, dword [ebp - 0x1c]
push esi
push ecx
push str.StringFileInfo_04X_04XFileDescription
lea edi, [ebp - 0x24]
call fcn.00417250
mov edi, dword [ebp - 0x20]
add esp, 0x18
mov ecx, dword [ebp - 0x28]
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x34]
push eax
push ecx
push edi
mov dword [ebp - 0x34], 0
call ebx
test eax, eax
je 0x47c61b
mov ecx, dword [ebp - 0x24]
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x38]
push eax
push ecx
push edi
call ebx
test eax, eax
je 0x47c61b
mov ecx, dword [ebp - 0x34]
lea edx, [ebp - 0x14]
push edx
call fcn.0041be20
lea edi, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.0047d600
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], 0
jl 0x47c5ae
push str.patchou
push eax
call fcn.00489e59
add esp, 8
test eax, eax
je 0x47c5ae
sub eax, dword [ebp - 0x14]
sar eax, 1
cmp eax, 0xffffffff
jne 0x47c5c0
mov ecx, str.yuna_software
lea esi, [ebp - 0x14]
call fcn.0042f230
cmp eax, 0xffffffff
je 0x47c5f5
mov ecx, dword [ebp - 0x38]
lea eax, [ebp - 0x1c]
push eax
call fcn.0041be20
lea edi, [ebp - 0x1c]
mov byte [ebp - 4], 4
call fcn.0047d600
mov ecx, str.kids
mov esi, edi
call fcn.0042f230
cmp eax, 0xffffffff
jne 0x47c5ed
mov byte [ebp - 0xd], 1
lea eax, [ebp - 0x1c]
call fcn.0041b950
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47c618
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebp - 0x20]
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47c63e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47c661
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push edi
call fcn.00488a62
add esp, 4
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret