Function at 0x4275bf
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x4ea792
call fcn.004e6580
sub esp, 0x248
push ebx
push esi
push edi
push 0x104
lea eax, [ebp - 0x254]
push eax
mov edi, ecx
xor ebx, ebx
push ebx
mov dword [ebp - 0x18], edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push str...CustomDir.xml
lea eax, [ebp - 0x254]
push eax
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x254]
push eax
lea ecx, [ebp - 0x2c]
call fcn.004021ce
push dword [ebp - 0x2c]
lea ecx, [edi + 0x48]
mov dword [ebp - 4], ebx
call fcn.00402e77
lea esi, [edi + 0x40]
mov dword [edi + 0x14], 5
mov eax, dword [esi]
cmp eax, ebx
je 0x427634
mov dword [esi], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 0x17
push ebx
push str.Msxml2.DOMDocument
mov ecx, esi
call fcn.00425bc2
push dword [ebp - 0x2c]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
mov ebx, dword [sym.imp.OLEAUT32.dll_SysStringLen]
jne 0x427751
and dword [ebp - 0x18], 0
push str.dirs
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.004021ce
mov eax, dword [eax]
mov ecx, dword [esi]
lea edx, [ebp - 0x18]
push edx
mov dword [ebp - 0x20], eax
push dword [ebp - 0x20]
mov eax, dword [ecx]
push ecx
mov byte [ebp - 4], 2
call dword [eax + 0xbc]
push dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 1
call ebx
cmp dword [ebp - 0x14], 0
je 0x4276a4
mov eax, dword [ebp - 0x18]
jmp 0x427820
push 0x503d04
lea ecx, [ebp - 0x1c]
call fcn.004021ce
push dword [eax]
lea ecx, [ebp - 0x20]
push 0x503d40
mov byte [ebp - 4], 3
call fcn.004021ce
push dword [eax]
mov byte [ebp - 4], 4
push ecx
mov dword [ebp - 0x28], esp
mov ecx, esp
push dword [ebp - 0x18]
call fcn.004115dc
mov ecx, edi
call fcn.0042667d
push dword [ebp - 0x20]
mov edi, eax
call ebx
push dword [ebp - 0x1c]
call ebx
test edi, edi
je 0x4276f7
mov eax, dword [ebp - 0x18]
jmp 0x4277b4
and dword [ebp - 0x10], 0
mov esi, dword [esi]
mov eax, dword [esi]
lea ecx, [ebp - 0x10]
push ecx
push dword [ebp - 0x18]
mov byte [ebp - 4], 5
push esi
call dword [eax + 0x54]
mov esi, eax
test esi, esi
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], 1
je 0x42772f
test eax, eax
je 0x427725
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x18]
test eax, eax
jmp 0x4279e6
test eax, eax
je 0x427739
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x18]
test eax, eax
mov byte [ebp - 4], 0
je 0x42774a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor esi, esi
jmp 0x427a0d
and word [ebp - 0x40], 0
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x40]
call fcn.0041a14d
mov eax, dword [esi]
mov ecx, dword [eax]
lea edx, [ebp - 0x30]
push edx
sub esp, 0x10
mov edi, esp
lea esi, [ebp - 0x40]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push eax
mov byte [ebp - 4], 6
movsd dword es:[edi], dword [esi]
call dword [ecx + 0xe8]
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
and dword [ebp - 0x24], 0
mov esi, dword [ebp - 0x18]
lea edx, [ebp - 0x24]
add esi, 0x40
mov eax, dword [esi]
mov ecx, dword [eax]
push edx
push eax
mov byte [ebp - 4], 7
call dword [ecx + 0x34]
mov edi, eax
test edi, edi
je 0x4277c9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [ebp - 0x24]
test eax, eax
mov byte [ebp - 4], 0
je 0x4277c2
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, edi
jmp 0x427a0d
and dword [ebp - 0x28], 0
lea eax, [ebp - 0x28]
push eax
push 0x503d40
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 8
call fcn.004021ce
push dword [eax]
mov byte [ebp - 4], 9
push ecx
mov dword [ebp - 0x10], esp
mov ecx, esp
push dword [ebp - 0x24]
call fcn.004115dc
mov edi, dword [ebp - 0x18]
mov ecx, edi
call fcn.00425fb8
push dword [ebp - 0x20]
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 8
call ebx
cmp dword [ebp - 0x14], 0
je 0x427836
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x28]
call ebx
mov eax, dword [ebp - 0x24]
test eax, eax
mov byte [ebp - 4], 0
je 0x42782e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, dword [ebp - 0x14]
jmp 0x427a0d
push 0x503d04
lea ecx, [ebp - 0x28]
call fcn.00402219
test al, al
je 0x4279f4
push 0x503d28
lea ecx, [ebp - 0x10]
call fcn.004021ce
mov eax, dword [eax]
mov ecx, dword [esi]
mov edx, dword [ecx]
add edi, 0x5c
push edi
push eax
push ecx
mov byte [ebp - 4], 0xa
call dword [edx + 0xdc]
push dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 8
call ebx
cmp dword [ebp - 0x14], 0
jne 0x42790c
mov eax, dword [edi]
mov ecx, dword [eax]
lea edx, [ebp - 0x14]
push edx
push eax
call dword [ecx + 0x20]
xor ecx, ecx
cmp eax, ecx
jne 0x42790c
cmp dword [ebp - 0x14], ecx
jle 0x42790c
mov dword [ebp - 0x1c], ecx
mov edi, dword [edi]
mov eax, dword [edi]
lea edx, [ebp - 0x1c]
push edx
push ecx
push edi
mov byte [ebp - 4], 0xb
call dword [eax + 0x1c]
test eax, eax
jne 0x4278fb
and dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
lea edx, [ebp - 0x10]
push edx
push eax
mov byte [ebp - 4], 0xc
call dword [ecx + 0x68]
push dword [ebp - 0x10]
lea ecx, [ebp - 0x4c]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
cmp dword [ebp - 0x34], 8
mov eax, dword [ebp - 0x48]
jae 0x4278df
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.MSVCR71.dll__wtoi]
pop ecx
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x14], eax
lea ecx, [ebp - 0x4c]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
push dword [ebp - 0x10]
call ebx
mov eax, dword [ebp - 0x1c]
test eax, eax
mov byte [ebp - 4], 8
je 0x42790c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 0x503cfc
lea ecx, [ebp - 0x10]
call fcn.004021ce
mov edi, dword [ebp - 0x18]
mov eax, dword [eax]
mov esi, dword [esi]
mov ecx, dword [esi]
add edi, 0x58
push edi
push eax
push esi
mov byte [ebp - 4], 0xd
call dword [ecx + 0xdc]
push dword [ebp - 0x10]
mov byte [ebp - 4], 8
call ebx
mov eax, dword [edi]
mov ecx, dword [eax]
lea edx, [ebp - 0x20]
push edx
push eax
call dword [ecx + 0x20]
xor esi, esi
cmp dword [ebp - 0x20], esi
mov dword [ebp - 0x10], esi
jle 0x4279dc
mov dword [ebp - 0x14], esi
mov eax, dword [edi]
mov ecx, dword [eax]
lea edx, [ebp - 0x14]
push edx
push dword [ebp - 0x10]
mov byte [ebp - 4], 0xe
push eax
call dword [ecx + 0x1c]
cmp eax, esi
jne 0x4279bc
mov dword [ebp - 0x1c], esi
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
lea edx, [ebp - 0x1c]
push edx
push eax
mov byte [ebp - 4], 0xf
call dword [ecx + 0x68]
cmp eax, esi
push dword [ebp - 0x1c]
jne 0x4279ba
lea ecx, [ebp - 0x4c]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
mov ecx, dword [ebp - 0x18]
mov eax, dword [ecx + 0x1c]
add ecx, 0x18
lea edx, [ebp - 0x4c]
push edx
push eax
mov byte [ebp - 4], 0x10
call fcn.004269fe
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0xf
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
push dword [ebp - 0x1c]
call ebx
mov eax, dword [ebp - 0x14]
cmp eax, esi
mov byte [ebp - 4], 8
je 0x4279cd
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x20]
jl 0x427955
push dword [ebp - 0x28]
call ebx
mov eax, dword [ebp - 0x24]
cmp eax, esi
mov byte [ebp - 4], 0
je 0x427a0d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x427a0d
push dword [ebp - 0x28]
call ebx
mov eax, dword [ebp - 0x24]
test eax, eax
mov byte [ebp - 4], 0
je 0x427a0a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor esi, esi
inc esi
push dword [ebp - 0x2c]
call ebx
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret