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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2b0
mov eax, dword [0x53ba20]
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 0x47a092
sub ecx, edx
sar ecx, 1
lea eax, [ecx + 1]
push eax
push edi
call fcn.004c9a09
push 0xc
call fcn.004c3423
mov esi, eax
add esp, 0xc
test esi, esi
je 0x47a476
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 0x47a0e2
test edi, edi
jne 0x47a476
push 0x50f780
push eax
mov dword [ebp - 0x29c], esi
call fcn.004c5729
add esp, 8
or ebx, 0xffffffff
test eax, eax
je 0x47a424
push 0x50f780
push dword [esi]
call fcn.004c5729
add esp, 8
lea ecx, [ebp - 0x290]
add eax, 0x16
push eax
call fcn.00404a20
mov edi, eax
lea eax, [ebp - 0x29c]
cmp eax, edi
je 0x47a17a
mov ecx, ebx
lock xadd dword [esi + 8], ecx
dec ecx
jne 0x47a16a
mov eax, dword [esi]
test eax, eax
je 0x47a148
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x47a15f
push eax
call fcn.004c3453
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.004c3279
add esp, 8
mov esi, dword [edi]
mov dword [ebp - 0x29c], esi
test esi, esi
je 0x47a17a
lock inc dword [esi + 8]
lea ecx, [ebp - 0x290]
call fcn.00404d60
lea eax, [ebp - 0x29c]
push eax
lea eax, [ebp - 0x290]
push 0x4fbe8c
push eax
call fcn.00404f50
add esp, 0xc
mov eax, dword [eax]
test eax, eax
je 0x47a1aa
mov eax, dword [eax]
jmp 0x47a1ac
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.00404d60
test edi, edi
jne 0x47a424
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 0x47a229
lea eax, [ebp - 0x28c]
push eax
call fcn.004c8c20
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 0x4fbe8c
push eax
call fcn.00404f50
add esp, 0xc
lea ecx, [ebp - 0x290]
mov edi, eax
push 0x50f798
call fcn.00404a20
mov eax, dword [edi]
mov dword [ebp - 0x298], eax
test eax, eax
je 0x47a266
lock inc dword [eax + 8]
lea eax, [ebp - 0x290]
push eax
lea ecx, [ebp - 0x298]
call fcn.00405140
mov eax, dword [ebp - 0x298]
test eax, eax
je 0x47a286
mov eax, dword [eax]
jmp 0x47a288
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.00404d60
lea ecx, [ebp - 0x290]
call fcn.00404d60
lea ecx, [ebp - 0x2ac]
call fcn.00404d60
test edi, edi
jne 0x47a424
push edi
push dword [ebp - 0x294]
call fcn.00478c70
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x47a415
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47a2f0
sub ecx, edx
sar ecx, 1
lea eax, [ecx + 1]
push eax
push ebx
call fcn.004c97d5
push ebx
call fcn.004c8c20
mov ecx, dword [ebp - 0x2a0]
push 0x4fbd20
push 0x40
mov dword [ecx], eax
lea eax, [ebp - 0x84]
push eax
call fcn.004c905a
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 0x47a367
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x47a40c
push eax
call fcn.004c8c9a
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 0x47a403
push 0x40
lea eax, [ebp - 0x84]
push eax
push dword [edi + 0x30]
push dword [edi + 0x34]
call fcn.004902b0
push 0x4fc65c
push edi
call fcn.00492890
add esp, 0x18
test eax, eax
jne 0x47a3bd
push 0x50f368
push edi
call fcn.00492890
add esp, 8
test eax, eax
je 0x47a3ce
push eax
call fcn.004c8c20
mov ecx, dword [ebp - 0x2a4]
add esp, 4
mov dword [ecx], eax
push 0x4fc67c
push edi
call fcn.00492890
add esp, 8
test eax, eax
jne 0x47a3f2
push 0x50f390
push edi
call fcn.00492890
add esp, 8
test eax, eax
je 0x47a403
push eax
call fcn.004c8c20
mov ecx, dword [ebp - 0x2a8]
add esp, 4
mov dword [ecx], eax
push edi
call fcn.004c8c7f
add esp, 4
push ebx
call fcn.004c8c7f
add esp, 4
push dword [ebp - 0x294]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or ebx, 0xffffffff
test esi, esi
je 0x47a465
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x47a465
mov eax, dword [esi]
test eax, eax
je 0x47a443
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x47a45a
push eax
call fcn.004c3453
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.004c3279
add esp, 8
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004c3287
mov esp, ebp
pop ebp
ret
push 0x8007000e
call fcn.004c2e60
int3