Function at 0x459460
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x47d8b8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a6eb0]
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.00404460
mov edx, dword [0x4a743c]
mov eax, dword [edx + 0xc]
mov ecx, 0x4a743c
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x14], edi
cmp byte [0x4a73c4], 0
mov dword [esp + 0x44], 0
jne 0x4594c8
mov byte [0x4a73c4], 1
push 0x17
push 0
add ebp, 0x14
push str.Msxml2.DOMDocument.4.0
mov ecx, ebp
call fcn.00458d70
test eax, eax
jge 0x459785
push eax
lea ecx, [esp + 0x18]
push str.WM___Msxml2.DOMDocument.4.0_hr__0x_x
push ecx
call fcn.00402e80
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.00458d70
test eax, eax
jge 0x459785
push eax
lea edx, [esp + 0x18]
push str.WM___Msxml2.DOMDocument.5.0_hr__0x_x
push edx
call fcn.00402e80
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.00458d70
mov ebx, eax
push ebx
lea ecx, [esp + 0x18]
push str.WM___Msxml2.DOMDocument.6.0_hr__0x_x
push ecx
call fcn.00402e80
mov edi, dword [esp + 0x20]
add esp, 0xc
push edi
call esi
xor eax, eax
cmp ebx, eax
jge 0x459785
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.004069c0
test eax, eax
jne 0x459595
xor ecx, ecx
jmp 0x4595af
mov ecx, eax
lea edi, [ecx + 2]
lea ebx, [ebx]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x4595a0
sub ecx, edi
sar ecx, 1
mov edi, dword [esp + 0x18]
push ecx
push eax
mov ecx, edi
call fcn.004028b0
mov edx, dword [edi]
push edx
lea eax, [esp + 0x18]
push str.WM___lasterror_:__s
push eax
call fcn.00402e80
mov edi, dword [esp + 0x20]
add esp, 0xc
push edi
call esi
cmp ebx, 0x800401f0
jne 0x4597bf
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
push 0x17
push 0
push str.Msxml2.DOMDocument.4.0
mov ecx, ebp
call fcn.00458d70
test eax, eax
jge 0x459759
push eax
lea ecx, [esp + 0x18]
push str.WM___Msxml2.DOMDocument.4.0_hr__0x_x
push ecx
call fcn.00402e80
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.00458d70
test eax, eax
jge 0x459759
push eax
lea edx, [esp + 0x18]
push str.WM___Msxml2.DOMDocument.5.0_hr__0x_x
push edx
call fcn.00402e80
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.00458d70
mov ebp, eax
push ebp
lea ecx, [esp + 0x18]
push str.WM___Msxml2.DOMDocument.6.0_hr__0x_x
push ecx
call fcn.00402e80
mov edi, dword [esp + 0x20]
add esp, 0xc
push edi
call esi
test ebp, ebp
jge 0x459759
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.004069c0
mov edi, dword [esp + 0x18]
push eax
mov ecx, edi
call fcn.00403480
mov edx, dword [edi]
push edx
lea eax, [esp + 0x18]
push str.WM___lasterror_:__s
push eax
call fcn.00402e80
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 0x4596ea
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 0x4596fb
push eax
call esi
mov eax, dword [esp + 0x24]
mov byte [esp + 0x44], 0
mov dword [esp + 0x1c], ebx
cmp eax, ebp
je 0x459714
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x28]
cmp eax, ebp
je 0x45971f
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 0x459743
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 0x459776
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x28]
test eax, eax
je 0x459785
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 0x4597a9
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 0x4597dc
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x28]
test eax, eax
je 0x45971f
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x45971f