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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d47f0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x50cc94]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0xc], esi
jne 0x47d299
mov dword [ebp + 0xc], 0x512190
mov ecx, dword [ebp + 0xc]
lea eax, [ecx + 0xc4]
mov dword [ebp - 0x10], eax
mov eax, dword [eax]
mov eax, dword [eax - 0xc]
cmp eax, esi
jne 0x47d6ae
push ecx
push esi
push esi
push ecx
mov ebx, esp
mov dword [ebp - 0x20], esp
mov dword [ebp - 0x24], ebx
call fcn.004a1286
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x47d2d8
push 0x80004005
call fcn.00421000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebx], eax
mov ecx, str.VirtReg.dat
mov dword [ebp - 4], esi
test ecx, 0xffff0000
jne 0x47d3d2
mov edx, ecx
movzx edi, dx
push edi
call fcn.004a91be
mov esi, eax
test esi, esi
je 0x47d3ec
mov eax, edi
shr eax, 4
inc eax
movzx ecx, ax
push 6
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x47d3ec
push edi
push eax
push esi
call fcn.00421708
mov edi, eax
add esp, 0xc
test edi, edi
je 0x47d3ec
mov eax, dword [ebx]
movzx esi, word [edi]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, esi
or eax, ecx
jge 0x47d360
push esi
mov ecx, ebx
call fcn.00421527
movzx eax, word [edi]
mov edx, dword [ebx]
add edi, 2
mov dword [ebp - 0x1c], edx
cmp eax, 0xffffffff
jne 0x47d37a
push edi
call fcn.004af97a
add esp, 4
inc eax
add eax, eax
push eax
lea ecx, [esi + esi]
push edi
push ecx
mov dword [ebp - 0x20], ecx
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.004af400
add esp, 0x10
cmp eax, 0x50
ja case.0x47d4f9.1
movzx edx, byte [eax + 0x47d6ec]
jmp dword [edx*4 + 0x47d6dc]
call fcn.004a17ee
test esi, esi
jl 0x47d3c8
mov eax, dword [ebx]
cmp esi, dword [eax - 8]
jg 0x47d3c8
mov edx, dword [ebp - 0x20]
mov dword [eax - 0xc], esi
mov eax, dword [ebx]
xor ecx, ecx
mov word [edx + eax], cx
jmp 0x47d3ec
push 0x80070057
call fcn.00421000
push str.VirtReg.dat
call fcn.004af97a
add esp, 4
push eax
push str.VirtReg.dat
mov ecx, ebx
call fcn.0042423a
lea eax, [ebp - 0x18]
push 1
push eax
mov dword [ebp - 4], 0xffffffff
call fcn.0047c9b0
add esp, 0x18
mov ecx, dword [ebp + 0xc]
push ecx
push 0
push 0
push ecx
mov ebx, esp
mov dword [ebp - 4], 1
mov dword [ebp + 0xc], esp
mov dword [ebp - 0x24], ebx
call fcn.004a1286
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x47d433
push 0x80004005
call fcn.00421000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebx], eax
mov ecx, str.VirtReg.Transitory.dat
mov byte [ebp - 4], 2
test ecx, 0xffff0000
jne 0x47d528
mov edx, ecx
movzx edi, dx
push edi
call fcn.004a91be
mov esi, eax
test esi, esi
je 0x47d542
mov eax, edi
shr eax, 4
inc eax
movzx ecx, ax
push 6
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x47d542
push edi
push eax
push esi
call fcn.00421708
mov edi, eax
add esp, 0xc
test edi, edi
je 0x47d542
mov eax, dword [ebx]
movzx esi, word [edi]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, esi
or eax, ecx
jge 0x47d4bc
push esi
mov ecx, ebx
call fcn.00421527
movzx eax, word [edi]
mov edx, dword [ebx]
add edi, 2
mov dword [ebp + 0xc], edx
cmp eax, 0xffffffff
jne 0x47d4d6
push edi
call fcn.004af97a
add esp, 4
inc eax
add eax, eax
push eax
lea ecx, [esi + esi]
push edi
push ecx
mov dword [ebp - 0x20], ecx
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.004af400
add esp, 0x10
cmp eax, 0x50
ja case.0x47d4f9.1
movzx edx, byte [eax + 0x47d750]
jmp dword [edx*4 + 0x47d740]
call fcn.004a1826
test esi, esi
jl 0x47d3c8
mov eax, dword [ebx]
cmp esi, dword [eax - 8]
jg 0x47d3c8
mov edx, dword [ebp - 0x20]
mov dword [eax - 0xc], esi
mov eax, dword [ebx]
xor ecx, ecx
mov word [edx + eax], cx
jmp 0x47d542
push str.VirtReg.Transitory.dat
call fcn.004af97a
add esp, 4
push eax
push str.VirtReg.Transitory.dat
mov ecx, ebx
call fcn.0042423a
lea eax, [ebp - 0x14]
push 1
push eax
mov byte [ebp - 4], 1
call fcn.0047c9b0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
push eax
call fcn.004242ab
add esp, 0x1c
lea edi, [eax + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ebx, ebx
cmp eax, 0xffffffff
setne bl
add edi, 0xfffffff0
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47d592
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
push ecx
mov dword [ebp + 0xc], esp
test ebx, ebx
je 0x47d5f5
mov eax, esp
push str._VirtNames_RepositoryDataRegHive:_using_transitory_reg_dat_file:_VirtReg.Transitory.dat
push eax
call fcn.00468c80
add esp, 8
call fcn.0047c270
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
mov edi, dword [ecx]
lea eax, [edx - 0x10]
sub edi, 0x10
add esp, 4
cmp eax, edi
je 0x47d665
cmp dword [edi + 0xc], 0
lea ebx, [edi + 0xc]
jl 0x47d5ee
mov esi, dword [eax]
cmp esi, dword [edi]
jne 0x47d5ee
push eax
call fcn.004242ab
add esp, 4
mov esi, eax
or ecx, 0xffffffff
lock xadd dword [ebx], ecx
dec ecx
test ecx, ecx
jmp 0x47d643
mov eax, dword [edx - 0xc]
push eax
push edx
jmp 0x47d660
mov edx, esp
push str.VirtNames_RepositoryDataRegHive:_using_normal_reg_dat_file:_VirtReg.dat
push edx
call fcn.00468c80
add esp, 8
call fcn.0047c270
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
mov edi, dword [edx]
lea eax, [ecx - 0x10]
sub edi, 0x10
add esp, 4
cmp eax, edi
je 0x47d665
cmp dword [edi + 0xc], 0
lea ebx, [edi + 0xc]
jl 0x47d659
mov esi, dword [eax]
cmp esi, dword [edi]
jne 0x47d659
push eax
call fcn.004242ab
mov esi, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x47d64f
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
mov ecx, dword [ebp - 0x10]
add esi, 0x10
mov dword [ecx], esi
jmp 0x47d665
mov eax, dword [ecx - 0xc]
push eax
push ecx
mov ecx, edx
call fcn.0042423a
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x47d688
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 0x47d6ae
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx]
sub eax, 0x10
push eax
call fcn.004242ab
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