Function at 0x47a2f0
Capabilities:
Get file version info
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2b0
mov eax, dword [0x535a40]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov dword [ebp - 0x298], eax
mov eax, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
mov ecx, edi
mov dword [ebp - 0x2a0], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x2a4], eax
mov eax, dword [ebp + 0x18]
lea edx, [ecx + 2]
mov dword [ebp - 0x2a8], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47a332
sub ecx, edx
sar ecx, 1
lea eax, [ecx + 1]
push eax
push edi
call fcn.004c9ae9
push 0xc
call fcn.004c3653
mov esi, eax
add esp, 0xc
test esi, esi
je 0x47a716
push edi
mov dword [esi + 4], 0
mov dword [esi + 8], 1
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [esi], eax
test eax, eax
jne 0x47a382
test edi, edi
jne 0x47a716
push 0x50d770
push eax
mov dword [ebp - 0x29c], esi
call fcn.004c580a
add esp, 8
or ebx, 0xffffffff
test eax, eax
je 0x47a6c4
push 0x50d770
push dword [esi]
call fcn.004c580a
add esp, 8
lea ecx, [ebp - 0x290]
add eax, 0x16
push eax
call fcn.00404a70
mov edi, eax
lea eax, [ebp - 0x29c]
cmp eax, edi
je 0x47a41a
mov ecx, ebx
lock xadd dword [esi + 8], ecx
dec ecx
jne 0x47a40a
mov eax, dword [esi]
test eax, eax
je 0x47a3e8
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x47a3ff
push eax
call fcn.004c3683
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.004c34a9
add esp, 8
mov esi, dword [edi]
mov dword [ebp - 0x29c], esi
test esi, esi
je 0x47a41a
lock inc dword [esi + 8]
lea ecx, [ebp - 0x290]
call fcn.00404db0
lea eax, [ebp - 0x29c]
push eax
lea eax, [ebp - 0x290]
push 0x4f9e8c
push eax
call fcn.00404fa0
add esp, 0xc
mov eax, dword [eax]
test eax, eax
je 0x47a44a
mov eax, dword [eax]
jmp 0x47a44c
xor eax, eax
lea ecx, [ebp - 0x294]
push ecx
push 0x20019
push 0
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea ecx, [ebp - 0x290]
mov edi, eax
call fcn.00404db0
test edi, edi
jne 0x47a6c4
lea eax, [ebp - 0x2b0]
mov dword [ebp - 0x2b0], 0x208
push eax
lea eax, [ebp - 0x28c]
push eax
push edi
push edi
push edi
push dword [ebp - 0x294]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x47a4c9
lea eax, [ebp - 0x28c]
push eax
call fcn.004c8d00
mov ecx, dword [ebp - 0x298]
add esp, 4
push dword [ebp - 0x294]
mov dword [ecx], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x29c]
push eax
lea eax, [ebp - 0x2ac]
push 0x4f9e8c
push eax
call fcn.00404fa0
add esp, 0xc
lea ecx, [ebp - 0x290]
mov edi, eax
push 0x50d788
call fcn.00404a70
mov eax, dword [edi]
mov dword [ebp - 0x298], eax
test eax, eax
je 0x47a506
lock inc dword [eax + 8]
lea eax, [ebp - 0x290]
push eax
lea ecx, [ebp - 0x298]
call fcn.00405180
mov eax, dword [ebp - 0x298]
test eax, eax
je 0x47a526
mov eax, dword [eax]
jmp 0x47a528
xor eax, eax
lea ecx, [ebp - 0x294]
push ecx
push 0x20019
push 0
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea ecx, [ebp - 0x298]
mov edi, eax
call fcn.00404db0
lea ecx, [ebp - 0x290]
call fcn.00404db0
lea ecx, [ebp - 0x2ac]
call fcn.00404db0
test edi, edi
jne 0x47a6c4
push edi
push dword [ebp - 0x294]
call fcn.00478d80
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x47a6b5
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47a590
sub ecx, edx
sar ecx, 1
lea eax, [ecx + 1]
push eax
push ebx
call fcn.004c98b5
push ebx
call fcn.004c8d00
mov ecx, dword [ebp - 0x2a0]
push 0x4f9d20
push 0x40
mov dword [ecx], eax
lea eax, [ebp - 0x84]
push eax
call fcn.004c913a
mov eax, dword [ebp - 0x2a4]
add esp, 0x18
mov dword [eax], 0
mov eax, dword [ebp - 0x2a8]
mov dword [eax], 0
lea eax, [ebp - 0x2ac]
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x2a0], eax
test eax, eax
jne 0x47a607
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x47a6ac
push eax
call fcn.004c8d7a
add esp, 4
mov edi, eax
push edi
push dword [ebp - 0x2a0]
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x47a6a3
push 0x40
lea eax, [ebp - 0x84]
push eax
push dword [edi + 0x30]
push dword [edi + 0x34]
call fcn.004904f0
push 0x4fa65c
push edi
call fcn.00492ab0
add esp, 0x18
test eax, eax
jne 0x47a65d
push 0x50d358
push edi
call fcn.00492ab0
add esp, 8
test eax, eax
je 0x47a66e
push eax
call fcn.004c8d00
mov ecx, dword [ebp - 0x2a4]
add esp, 4
mov dword [ecx], eax
push 0x4fa67c
push edi
call fcn.00492ab0
add esp, 8
test eax, eax
jne 0x47a692
push 0x50d380
push edi
call fcn.00492ab0
add esp, 8
test eax, eax
je 0x47a6a3
push eax
call fcn.004c8d00
mov ecx, dword [ebp - 0x2a8]
add esp, 4
mov dword [ecx], eax
push edi
call fcn.004c8d5f
add esp, 4
push ebx
call fcn.004c8d5f
add esp, 4
push dword [ebp - 0x294]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or ebx, 0xffffffff
test esi, esi
je 0x47a705
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x47a705
mov eax, dword [esi]
test eax, eax
je 0x47a6e3
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x47a6fa
push eax
call fcn.004c3683
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.004c34a9
add esp, 8
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004c34b7
mov esp, ebp
pop ebp
ret
push 0x8007000e
call fcn.004c3020
int3