Function at 0x1003b040
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004fe10
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x10063790]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 4], ebx
jne 0x1003b08d
mov eax, 0x80004002
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov esi, dword [ebp + 8]
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_IsBadStringPtrW]
test eax, eax
je 0x1003b0b9
mov eax, 0x80070057
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x20], ebx
lea eax, [edi + 8]
mov ebx, esi
mov edx, 0x104
sub ebx, eax
mov edi, edi
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x1003b0f0
movzx ecx, word [ebx + eax]
test cx, cx
je 0x1003b0f0
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x1003b0d0
jmp 0x1003b0f4
test edx, edx
jne 0x1003b0f7
sub eax, 2
push 0x80
push esi
mov word [eax], 0
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, dword [sym.imp.OLEAUT32.dll_SysReAllocString]
push str.SelectionLanguage
call esi
push str.XPath
mov dword [ebp - 0x14], eax
call esi
mov edx, dword [edi + 4]
sub esp, 0x10
mov ecx, esp
mov word [ebp - 0x34], 8
mov ebx, dword [ebp - 0x34]
mov dword [ecx], ebx
mov ebx, dword [ebp - 0x30]
mov dword [ecx + 4], ebx
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x24]
mov eax, dword [edx]
mov dword [ecx + 8], ebx
mov ebx, dword [ebp - 0x28]
mov dword [ecx + 0xc], ebx
mov ecx, dword [ebp - 0x14]
push ecx
push edx
mov edx, dword [eax + 0x140]
call edx
push 0x100549ac
call esi
push str.version_1.0___encoding_utf_16_
mov ebx, eax
call esi
mov ecx, dword [edi + 4]
mov dword [ebp - 0x24], eax
mov eax, dword [ecx]
mov eax, dword [eax + 0xd0]
lea edx, [ebp - 0x1c]
push edx
mov edx, dword [ebp - 0x24]
push edx
push ebx
push ecx
call eax
push ebx
mov ebx, dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x24]
push ecx
call ebx
mov eax, dword [ebp - 0x14]
cmp eax, 1
jne 0x1003b1bf
mov dword [ebp - 0x14], 0x80004005
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
test eax, eax
jl 0x1003b353
mov eax, dword [edi + 4]
mov edx, dword [eax]
mov edx, dword [edx + 0x54]
lea ecx, [ebp - 0x18]
push ecx
mov ecx, dword [ebp - 0x1c]
push ecx
push eax
call edx
mov ebx, eax
cmp ebx, 1
jne 0x1003b207
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
mov ebx, 0x80004005
call edx
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
test ebx, ebx
jge 0x1003b22c
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp + 0xc]
push eax
call esi
mov ebx, eax
mov eax, dword [edi + 4]
mov ecx, dword [eax]
lea edx, [ebp - 0x20]
push edx
push ebx
push eax
mov eax, dword [ecx + 0xbc]
call eax
push ebx
mov dword [ebp - 0x14], eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x14]
cmp eax, 1
je 0x1003b1a1
xor ebx, ebx
cmp eax, ebx
jl 0x1003b353
mov eax, dword [edi + 4]
mov ecx, dword [eax]
lea edx, [ebp - 0x18]
push edx
mov edx, dword [ebp - 0x20]
push edx
push eax
mov eax, dword [ecx + 0x54]
call eax
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
push 0x18
mov dword [ebp - 4], ebx
call fcn.1003c285
add esp, 4
cmp eax, ebx
je 0x1003b2ba
mov dword [eax], vtable.CSTMsXmlNode.0
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
jmp 0x1003b2bc
xor eax, eax
cmp eax, ebx
mov dword [ebp - 4], 0xffffffff
jne 0x1003b2f8
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, 0x8007000e
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp - 0x18]
mov dword [eax + 4], ecx
mov edx, dword [edi + 4]
mov ecx, dword [ebp + 0x10]
mov dword [eax + 8], edx
mov edx, dword [ebp + 8]
push edx
mov dword [ecx], eax
call esi
mov edi, dword [edi + 4]
mov ecx, dword [edi]
mov ebx, eax
sub esp, 0x10
mov eax, esp
mov word [ebp - 0x34], 8
mov edx, dword [ebp - 0x34]
mov dword [eax], edx
mov edx, dword [ebp - 0x30]
mov dword [eax + 4], edx
mov edx, dword [ebp - 0x28]
mov dword [eax + 8], ebx
mov dword [eax + 0xc], edx
mov eax, dword [ecx + 0x108]
push edi
call eax
mov esi, eax
cmp esi, 1
jne 0x1003b34a
mov esi, 0x80004005
push ebx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc