Function at 0x457390
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x47a2d8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push ebp
push esi
push edi
mov eax, dword [0x49ef38]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
mov ebp, ecx
lea eax, [ebp + 0x24]
lea ecx, [ebp + 0x20]
push eax
mov dword [esp + 0x1c], ecx
call fcn.00404480
mov edx, dword [0x49f4e4]
mov eax, dword [edx + 0xc]
mov ecx, 0x49f4e4
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x14], edi
cmp byte [0x49f46c], 0
mov dword [esp + 0x44], 0
jne 0x4573f8
mov byte [0x49f46c], 1
push 0x17
push 0
add ebp, 0x14
push str.Msxml2.DOMDocument.4.0
mov ecx, ebp
call fcn.00456ca0
test eax, eax
jge 0x4576b5
push eax
lea ecx, [esp + 0x18]
push str.WM___Msxml2.DOMDocument.4.0_hr__0x_x
push ecx
call fcn.00402eb0
mov edi, dword [esp + 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add esp, 0xc
push edi
call esi
push 0x17
push 0
push str.Msxml2.DOMDocument.5.0
mov ecx, ebp
call fcn.00456ca0
test eax, eax
jge 0x4576b5
push eax
lea edx, [esp + 0x18]
push str.WM___Msxml2.DOMDocument.5.0_hr__0x_x
push edx
call fcn.00402eb0
mov eax, dword [esp + 0x20]
add esp, 0xc
push eax
call esi
push 0x17
push 0
push str.Msxml2.DOMDocument.6.0
mov ecx, ebp
call fcn.00456ca0
mov ebx, eax
push ebx
lea ecx, [esp + 0x18]
push str.WM___Msxml2.DOMDocument.6.0_hr__0x_x
push ecx
call fcn.00402eb0
mov edi, dword [esp + 0x20]
add esp, 0xc
push edi
call esi
xor eax, eax
cmp ebx, eax
jge 0x4576b5
mov dword [esp + 0x1c], vtable._com_error.0
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x44], 1
call fcn.00406880
test eax, eax
jne 0x4574c5
xor ecx, ecx
jmp 0x4574df
mov ecx, eax
lea edi, [ecx + 2]
lea ebx, [ebx]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x4574d0
sub ecx, edi
sar ecx, 1
mov edi, dword [esp + 0x18]
push ecx
push eax
mov ecx, edi
call fcn.004028e0
mov edx, dword [edi]
push edx
lea eax, [esp + 0x18]
push str.WM___lasterror_:__s
push eax
call fcn.00402eb0
mov edi, dword [esp + 0x20]
add esp, 0xc
push edi
call esi
cmp ebx, 0x800401f0
jne 0x4576ef
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
push 0x17
push 0
push str.Msxml2.DOMDocument.4.0
mov ecx, ebp
call fcn.00456ca0
test eax, eax
jge 0x457689
push eax
lea ecx, [esp + 0x18]
push str.WM___Msxml2.DOMDocument.4.0_hr__0x_x
push ecx
call fcn.00402eb0
mov edi, dword [esp + 0x20]
add esp, 0xc
push edi
call esi
push 0x17
push 0
push str.Msxml2.DOMDocument.5.0
mov ecx, ebp
call fcn.00456ca0
test eax, eax
jge 0x457689
push eax
lea edx, [esp + 0x18]
push str.WM___Msxml2.DOMDocument.5.0_hr__0x_x
push edx
call fcn.00402eb0
mov eax, dword [esp + 0x20]
add esp, 0xc
push eax
call esi
push 0x17
push 0
push str.Msxml2.DOMDocument.6.0
mov ecx, ebp
call fcn.00456ca0
mov ebp, eax
push ebp
lea ecx, [esp + 0x18]
push str.WM___Msxml2.DOMDocument.6.0_hr__0x_x
push ecx
call fcn.00402eb0
mov edi, dword [esp + 0x20]
add esp, 0xc
push edi
call esi
test ebp, ebp
jge 0x457689
mov dword [esp + 0x30], ebp
xor ebp, ebp
mov ebx, vtable._com_error.0
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], ebp
lea ecx, [esp + 0x2c]
mov byte [esp + 0x44], 2
call fcn.00406880
mov edi, dword [esp + 0x18]
push eax
mov ecx, edi
call fcn.004034b0
mov edx, dword [edi]
push edx
lea eax, [esp + 0x18]
push str.WM___lasterror_:__s
push eax
call fcn.00402eb0
mov edi, dword [esp + 0x20]
add esp, 0xc
push edi
call esi
mov eax, dword [esp + 0x34]
mov byte [esp + 0x44], 1
mov dword [esp + 0x2c], ebx
cmp eax, ebp
je 0x45761a
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x38]
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
cmp eax, ebp
je 0x45762b
push eax
call esi
mov eax, dword [esp + 0x24]
mov byte [esp + 0x44], 0
mov dword [esp + 0x1c], ebx
cmp eax, ebp
je 0x457644
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x28]
cmp eax, ebp
je 0x45764f
push eax
call esi
lea eax, [edi - 0x10]
mov dword [esp + 0x44], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x457673
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
mov eax, dword [esp + 0x24]
mov byte [esp + 0x44], 0
mov dword [esp + 0x1c], vtable._com_error.0
test eax, eax
je 0x4576a6
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x28]
test eax, eax
je 0x4576b5
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea eax, [edi - 0x10]
mov dword [esp + 0x44], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4576d9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
mov eax, dword [esp + 0x24]
mov byte [esp + 0x44], 0
mov dword [esp + 0x1c], vtable._com_error.0
test eax, eax
je 0x45770c
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x28]
test eax, eax
je 0x45764f
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x45764f