Function at 0x4d1af0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x587f5c
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5ca104]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 4], 1
mov eax, dword [ebx]
push dword [eax + 4]
call fcn.004d3560
mov eax, dword [ebx]
mov dword [eax + 4], eax
mov eax, dword [ebx]
mov dword [eax], eax
mov eax, dword [ebx]
mov dword [eax + 8], eax
mov dword [ebx + 4], 0
mov byte [ebp - 4], 2
lea ecx, [ebx + 8]
mov eax, dword [ebx + 8]
push dword [eax + 4]
call fcn.004d3200
mov eax, dword [ebx + 8]
lea ecx, [ebx + 0x10]
mov dword [eax + 4], eax
mov eax, dword [ebx + 8]
mov dword [eax], eax
mov eax, dword [ebx + 8]
mov byte [ebp - 4], 0
mov dword [eax + 8], eax
mov eax, dword [ebp + 8]
mov dword [ebx + 0xc], 0
mov edi, dword [ecx]
sub edi, 0x10
lea esi, [eax - 0x10]
cmp esi, edi
je 0x4d1baf
cmp dword [edi + 0xc], 0
jl 0x4d1ba6
mov edx, dword [esi]
cmp edx, dword [edi]
jne 0x4d1ba6
push esi
call fcn.00405650
add esp, 4
mov ecx, edi
mov esi, eax
call fcn.00407070
lea eax, [esi + 0x10]
mov dword [ebx + 0x10], eax
jmp 0x4d1baf
push dword [eax - 0xc]
push eax
call fcn.00405730
mov eax, dword [ebx + 0x18]
cmp dword [eax + 0x10], 0
je 0x4d1bc0
lea ecx, [ebx + 0x14]
call fcn.004d73b0
call fcn.00406e20
mov ecx, eax
test ecx, ecx
jne 0x4d1bd5
push 0x80004005
call fcn.004071e0
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4d1bea
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x4d1bec
call edx
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 3
lea eax, [ebp - 0x10]
push dword [ebp + 8]
push 0x5a9fb4
push eax
call fcn.00420660
add esp, 0xc
call fcn.00406e20
mov ecx, eax
test ecx, ecx
jne 0x4d1c1f
push 0x80004005
call fcn.004071e0
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4d1c34
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x4d1c36
call edx
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 4
lea eax, [ebp - 0x14]
mov edi, dword [ebp - 0x10]
push edi
push str._DLLRepair___s_n
push eax
call fcn.00420660
mov esi, dword [ebp - 0x14]
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov byte [ebp - 4], 3
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4d1ca0
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4d1c9e
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x4d1c9e
push 0
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x4d1ca0
call edx
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x4d1cf4
mov esi, dword [ebx + 0x18]
lea edx, [ebx + 0x14]
mov eax, dword [esi + 0x10]
test eax, eax
je 0x4d1cd0
cmp dword [esi + 4], 0
je 0x4d1cc9
push eax
call fcn.0052ea76
mov ecx, dword [ebp + 0xc]
lea edx, [ebx + 0x14]
add esp, 4
mov dword [esi + 0x10], 0
mov eax, dword [ebp + 0x10]
push eax
mov dword [esi + 0x10], ecx
push ecx
mov ecx, edx
mov dword [esi + 0xc], eax
mov dword [esi + 8], 0
mov dword [esi + 4], 0
call fcn.004d75a0
test al, al
jne 0x4d1d18
test edi, edi
jne 0x4d1d1c
xor esi, esi
mov dword [ebp + 0xc], esi
push ecx
push esi
lea ecx, [ebx + 0x14]
mov byte [ebp - 4], 5
call fcn.004d7260
push esi
mov bl, al
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
test bl, bl
je 0x4d1d36
xor esi, esi
jmp 0x4d1d3b
push edi
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
mov dword [ebp + 0xc], esi
test esi, esi
jne 0x4d1cfd
push 0x8007000e
call fcn.004071e0
mov esi, 0x80070057
or ebx, 0xffffffff
mov byte [ebp - 4], 0
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x4d1d80
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4d1d7e
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x4d1d7e
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
push 0
push dword [ecx + 4]
call edi
jmp 0x4d1d86
call edx
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x4d1dc8
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov ebx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4d1dc4
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov ebx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x4d1dc4
push 0
push dword [edx + 4]
call edi
jmp 0x4d1dc8
mov ecx, edx
call ebx
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