Function at 0x47c0c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dead0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x522f10]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x18], ebx
cmp edi, ebx
jne 0x47c0f8
mov edi, 0x528f38
lea eax, [edi + 0x158]
mov dword [ebp - 0x14], eax
mov eax, dword [eax]
cmp dword [eax - 0xc], ebx
jne 0x47c2ff
push edi
push ebx
push ebx
push ecx
mov esi, esp
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x1c], esi
call fcn.004aa2e3
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x47c132
push 0x80004005
call fcn.00422000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
mov ecx, str.VirtReg.dat
mov dword [ebp - 4], ebx
test ecx, 0xffff0000
jne 0x47c16a
mov edx, ecx
movzx ebx, dx
push ebx
call fcn.004b2260
test eax, eax
je 0x47c184
push ebx
push eax
mov ecx, esi
call fcn.00424e90
jmp 0x47c184
push str.VirtReg.dat
call fcn.004b8a1a
add esp, 4
push eax
push str.VirtReg.dat
mov ecx, esi
call fcn.00425413
mov ebx, 1
lea eax, [ebp - 0x18]
push ebx
push eax
mov dword [ebp - 4], 0xffffffff
call fcn.0047b9e0
add esp, 0x18
push edi
push 0
push 0
push ecx
mov dword [ebp - 4], ebx
mov esi, esp
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x1c], esi
call fcn.004aa2e3
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x47c1c8
push 0x80004005
call fcn.00422000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
mov ecx, str.VirtReg.Transitory.dat
mov byte [ebp - 4], 2
test ecx, 0xffff0000
jne 0x47c201
mov edx, ecx
movzx edi, dx
push edi
call fcn.004b2260
test eax, eax
je 0x47c21b
push edi
push eax
mov ecx, esi
call fcn.00424e90
jmp 0x47c21b
push str.VirtReg.Transitory.dat
call fcn.004b8a1a
add esp, 4
push eax
push str.VirtReg.Transitory.dat
mov ecx, esi
call fcn.00425413
lea eax, [ebp - 0x10]
push ebx
push eax
mov byte [ebp - 4], bl
call fcn.0047b9e0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
push eax
call fcn.00425484
add esp, 0x1c
lea esi, [eax + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
lea eax, [esi - 0x10]
lea edx, [eax + 0xc]
mov edi, ecx
mov ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x47c26d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ecx
mov dword [ebp - 0x1c], esp
test edi, edi
je 0x47c293
mov ecx, esp
push str._VirtNames_RepositoryDataRegHive:_using_transitory_reg_dat_file:_VirtReg.Transitory.dat
push ecx
call fcn.0046aaf0
add esp, 8
call fcn.0047b2f0
add esp, 4
lea edx, [ebp - 0x10]
push edx
jmp 0x47c2af
mov eax, esp
push str.VirtNames_RepositoryDataRegHive:_using_normal_reg_dat_file:_VirtReg.dat
push eax
call fcn.0046aaf0
add esp, 8
call fcn.0047b2f0
add esp, 4
lea ecx, [ebp - 0x18]
push ecx
mov ecx, dword [ebp - 0x14]
call fcn.00424f1e
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x47c2d9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47c2ff
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx]
sub eax, 0x10
push eax
call fcn.00425484
mov edx, eax
mov eax, dword [ebp + 8]
add esp, 4
add edx, 0x10
mov dword [eax], edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret