Function at 0x10006ae0
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x100ea808]
sub esp, 0x108
test eax, eax
jne 0x10006d33
push ebx
push esi
mov esi, dword [sym.imp.msvcrt.dll_getenv]
push str.XML_DEBUG_CATALOG
call esi
add esp, 4
test eax, eax
mov ebx, 1
je 0x10006b14
mov dword [0x100ea7f8], ebx
call sym.libxml2.dll_xmlNewRMutex
push eax
mov dword [0x100ea804], eax
mov dword [0x100ea808], ebx
call sym.libxml2.dll_xmlRMutexLock
push str.XML_DEBUG_CATALOG
call esi
add esp, 8
test eax, eax
je 0x10006b3e
mov dword [0x100ea7f8], ebx
mov eax, dword [0x100ea800]
test eax, eax
jne 0x10006d22
push edi
push str.XML_CATALOG_FILES
call esi
mov esi, eax
add esp, 4
test esi, esi
jne 0x10006c00
push 0x100bb274
call sub.KERNEL32.dll_GetModuleHandleA
test eax, eax
jne 0x10006b7c
push eax
call sub.KERNEL32.dll_GetModuleHandleA
test eax, eax
je 0x10006bfb
push 0xff
lea ecx, [esp + 0x18]
push ecx
push eax
call sub.KERNEL32.dll_GetModuleFileNameA
test eax, eax
je 0x10006bfb
mov cl, byte [esp + eax + 0x14]
cmp cl, 0x5c
lea eax, [esp + eax + 0x14]
je 0x10006bb1
lea ecx, [ecx]
lea edx, [esp + 0x14]
cmp eax, edx
jbe 0x10006bb1
mov cl, byte [eax - 1]
dec eax
cmp cl, 0x5c
jne 0x10006ba0
lea ecx, [esp + 0x14]
cmp eax, ecx
je 0x10006bfb
mov edi, dword [sym.imp.msvcrt.dll_strncpy]
lea edx, [esp + 0x113]
sub edx, eax
push edx
push str...etccatalog
push eax
call edi
lea eax, [esp + 0x20]
push eax
call sym.libxml2.dll_xmlCanonicPath
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10006bfb
push 0xff
push esi
push str.file:___etc_xml_catalog
call edi
push esi
call dword [sym.libxml2.dll_xmlFree]
add esp, 0x10
mov esi, str.file:___etc_xml_catalog
mov ecx, dword [0x100e9104]
push ecx
call fcn.10003730
mov edi, eax
add esp, 4
test edi, edi
mov dword [esp + 0x10], edi
je 0x10006d21
cmp byte [esi], 0
lea edx, [edi + 0x3c]
mov ebx, esi
mov dword [esp + 0xc], edx
je 0x10006d1b
push ebp
mov al, byte [ebx]
cmp al, 0x20
je 0x10006c42
cmp al, 9
jl 0x10006c3e
cmp al, 0xa
jle 0x10006c42
cmp al, 0xd
jne 0x10006c45
inc ebx
jmp 0x10006c30
mov al, byte [ebx]
test al, al
je 0x10006d1a
mov ecx, ebx
cmp al, 0x20
je 0x10006c69
cmp al, 9
jl 0x10006c5d
cmp al, 0xa
jle 0x10006c69
cmp al, 0xd
je 0x10006c69
mov al, byte [ebx + 1]
inc ebx
test al, al
jne 0x10006c51
mov eax, ebx
sub eax, ecx
push eax
push ecx
call sym.libxml2.dll_xmlStrndup
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x10006d11
mov edi, dword [0x100e9104]
push 0x2c
call dword [sym.libxml2.dll_xmlMalloc]
mov esi, eax
xor eax, eax
add esp, 4
cmp esi, eax
jne 0x10006cc6
push str.allocating_catalog_entry
push str.Memory_allocation_failed_:__s_n
push eax
push eax
push eax
push eax
push str.allocating_catalog_entry
push eax
push eax
push 2
push 2
push 0x14
push eax
push eax
push eax
push eax
push eax
call sym.libxml2.dll___xmlRaiseError
add esp, 0x44
xor esi, esi
jmp 0x10006cf5
push ebp
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], 1
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
call sym.libxml2.dll_xmlStrdup
add esp, 4
mov dword [esi + 0x18], eax
xor eax, eax
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
test esi, esi
mov ecx, dword [esp + 0x10]
mov dword [ecx], esi
je 0x10006d03
mov dword [esp + 0x10], esi
push ebp
call dword [sym.libxml2.dll_xmlFree]
mov edi, dword [esp + 0x18]
add esp, 4
cmp byte [ebx], 0
jne 0x10006c30
pop ebp
mov dword [0x100ea800], edi
pop edi
mov edx, dword [0x100ea804]
push edx
call sym.libxml2.dll_xmlRMutexUnlock
add esp, 4
pop esi
pop ebx
add esp, 0x108
ret