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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f3b88
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
push ebx
mov dword [ebp - 0x10], ecx
push esi
push edi
lea ecx, [ebp - 0x1c]
call fcn.00427790
xor ebx, ebx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], ebx
call fcn.00427790
lea ecx, [ebp - 0x14]
call fcn.00427790
push str.files
lea ecx, [ebp - 0x40]
mov word [ebp - 0x40], bx
call fcn.00406940
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x40]
push eax
lea esi, [edi + 4]
push ecx
push str.selectNodes
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.004080f0
lea edx, [ebp - 0x40]
mov dword [edi], eax
push edx
mov byte [ebp - 4], 2
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
cmp dword [edi], ebx
jl 0x47f9d1
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x47f9d1
push eax
lea ecx, [ebp - 0x1c]
call fcn.004080d0
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.0042ca10
lea ecx, [ebp - 0x14]
call fcn.00427790
push str.file
lea ecx, [ebp - 0x40]
mov word [ebp - 0x40], bx
call fcn.00406940
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x40]
push eax
push ecx
push str.selectNodes
mov ecx, esi
mov byte [ebp - 4], 5
call fcn.004080f0
lea edx, [ebp - 0x40]
mov dword [edi], eax
push edx
mov byte [ebp - 4], 4
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
cmp dword [edi], ebx
jl 0x47fa32
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x47fa32
push eax
lea ecx, [ebp - 0x2c]
call fcn.004080d0
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.0042ca10
mov eax, dword [ebp - 0x10]
xor edi, edi
cmp dword [eax + 0x24], ebx
jne 0x47fb89
xor esi, esi
mov word [ebp - 0x40], bx
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 6
push ecx
push str.length
lea ecx, [ebp - 0x1c]
call fcn.00469ae0
cmp eax, ebx
mov dword [ebp - 0x20], eax
jl 0x47fa78
cmp word [ebp - 0x40], 3
jne 0x47fa78
mov esi, dword [ebp - 0x38]
lea edx, [ebp - 0x40]
mov byte [ebp - 4], 1
push edx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
cmp edi, esi
jge 0x47fb89
lea ecx, [ebp - 0x24]
call fcn.00427790
xor esi, esi
cmp edi, ebx
jl 0x47fb70
lea ecx, [ebp - 0x14]
call fcn.00427790
mov word [ebp - 0x50], 3
mov dword [ebp - 0x48], edi
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x50]
push eax
push ecx
push str.item
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 9
call fcn.004080f0
lea edx, [ebp - 0x50]
mov dword [ebp - 0x20], eax
push edx
mov byte [ebp - 4], 8
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
cmp dword [ebp - 0x20], ebx
jl 0x47faf5
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x47faf5
push eax
lea ecx, [ebp - 0x24]
call fcn.004080d0
mov esi, 1
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 7
call fcn.0042ca10
cmp esi, ebx
je 0x47fb70
lea eax, [ebp - 0x18]
push 0x50e548
push eax
lea ecx, [ebp - 0x28]
call fcn.004086e0
mov ecx, dword [ebp - 0x18]
mov byte [ebp - 4], 0xa
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x47fb37
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x28]
push edx
call fcn.00469c20
jmp 0x47fb43
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x28]
push eax
call fcn.0047f940
mov eax, dword [ebp - 0x18]
mov edx, dword [0x50d0e4]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x47fb70
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x47fb70
mov edx, dword [ebp - 0x18]
lea eax, [edx - 0xc]
push eax
call fcn.004de3a6
add esp, 4
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call fcn.0042ca10
mov eax, dword [ebp - 0x10]
inc edi
cmp dword [eax + 0x24], ebx
je 0x47fa4c
mov ecx, dword [ebp - 0x10]
xor esi, esi
mov dword [ebp - 0x14], esi
cmp dword [ecx + 0x24], ebx
jne 0x47fc4f
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [ebp - 0x30]
call fcn.004639e0
cmp esi, eax
jge 0x47fc4f
lea ecx, [ebp - 0x28]
call fcn.004098a0
lea edx, [ebp - 0x24]
lea ecx, [ebp - 0x30]
push edx
push esi
mov byte [ebp - 4], 0xb
call fcn.00463aa0
test eax, eax
je 0x47fc31
lea eax, [ebp - 0x18]
push 0x50e548
push eax
lea ecx, [ebp - 0x28]
call fcn.004086e0
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 0xc
test eax, eax
mov edi, eax
je 0x47fc0d
push eax
call ebx
lea esi, [eax + eax + 2]
mov eax, esi
add eax, 3
and al, 0xfc
call fcn.004ded50
mov eax, esp
push 0
push esi
push edi
push eax
call fcn.00406870
mov esi, dword [ebp - 0x14]
push 0
push eax
call fcn.004e03cb
add esp, 8
cmp eax, 0xffffffff
jne 0x47fc29
lea ecx, [ebp - 0x28]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00469c20
lea ecx, [ebp - 0x18]
call fcn.00402160
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call fcn.0042ca10
mov edx, dword [ebp - 0x10]
inc esi
mov dword [ebp - 0x14], esi
mov eax, dword [edx + 0x24]
test eax, eax
je 0x47fba0
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0
call fcn.0042ca10
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0xffffffff
call fcn.0042ca10
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0x5c]
mov eax, 1
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4