Function at 0x10008a20
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x10c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x108], eax
cmp dword [0x1010c138], 0
jne 0x10008c7b
push esi
call fcn.100089b0
mov eax, dword [0x1010c134]
mov esi, eax
test eax, eax
je 0x10008a5c
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
inc dword [esi + 0x18]
mov esi, dword [sym.imp.MSVCR90.dll_getenv]
push str.XML_DEBUG_CATALOG
call esi
add esp, 4
test eax, eax
je 0x10008a7a
mov dword [0x1010c128], 1
cmp dword [0x1010c130], 0
jne 0x10008c64
push edi
push str.XML_CATALOG_FILES
call esi
mov esi, eax
add esp, 4
test esi, esi
jne 0x10008b30
push 0x100cc2d8
call sub.KERNEL32.dll_GetModuleHandleA
test eax, eax
jne 0x10008ab4
push eax
call sub.KERNEL32.dll_GetModuleHandleA
test eax, eax
je 0x10008b2b
push 0xff
lea ecx, [esp + 0x14]
push ecx
push eax
call sub.KERNEL32.dll_GetModuleFileNameA
test eax, eax
je 0x10008b2b
cmp byte [esp + eax + 0x10], 0x5c
lea eax, [esp + eax + 0x10]
je 0x10008ae1
lea edx, [esp + 0x10]
cmp eax, edx
jbe 0x10008ae1
dec eax
cmp byte [eax], 0x5c
jne 0x10008ad3
lea ecx, [esp + 0x10]
cmp eax, ecx
je 0x10008b2b
mov edi, dword [sym.imp.MSVCR90.dll_strncpy]
lea edx, [esp + 0x10f]
sub edx, eax
push edx
push str...etccatalog
push eax
call edi
lea eax, [esp + 0x1c]
push eax
call sym.libxml2.dll_xmlCanonicPath
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10008b2b
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
push ebx
mov edi, 1
call fcn.10004d20
mov ebx, eax
mov dword [esp + 0x10], ebx
test ebx, ebx
je 0x10008c62
cmp byte [esi], 0
lea ecx, [ebx + 0x3c]
mov edi, esi
mov dword [esp + 0xc], ecx
je 0x10008c5c
push ebp
lea esp, [esp]
mov al, byte [edi]
cmp al, 0x20
je 0x10008b72
cmp al, 9
jl 0x10008b6e
cmp al, 0xa
jle 0x10008b72
cmp al, 0xd
jne 0x10008b75
inc edi
jmp 0x10008b60
mov al, byte [edi]
test al, al
je 0x10008c5b
mov ecx, edi
cmp al, 0x20
je 0x10008b99
cmp al, 9
jl 0x10008b8d
cmp al, 0xa
jle 0x10008b99
cmp al, 0xd
je 0x10008b99
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10008b81
mov edx, edi
sub edx, ecx
push edx
push ecx
call sym.libxml2.dll_xmlStrndup
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x10008c52
mov ebx, dword [0x100fae3c]
push 0x2c
call dword [sym.libxml2.dll_xmlMalloc]
mov esi, eax
xor eax, eax
add esp, 4
cmp esi, eax
jne 0x10008bf6
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 0x10008c36
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0xc], 1
cmp byte [ebp], 0
mov eax, ebp
je 0x10008c19
inc eax
cmp byte [eax], 0
jne 0x10008c13
sub eax, ebp
push eax
push ebp
call sym.libxml2.dll_xmlStrndup
add esp, 8
mov dword [esi + 0x18], eax
xor eax, eax
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov eax, dword [esp + 0x10]
mov dword [eax], esi
test esi, esi
je 0x10008c44
mov dword [esp + 0x10], esi
push ebp
call dword [sym.libxml2.dll_xmlFree]
mov ebx, dword [esp + 0x18]
add esp, 4
cmp byte [edi], 0
jne 0x10008b60
pop ebp
mov dword [0x1010c130], ebx
pop ebx
pop edi
mov eax, dword [0x1010c134]
pop esi
test eax, eax
je 0x10008c7b
add dword [eax + 0x18], 0xffffffff
jne 0x10008c7b
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.100ca320
add esp, 0x10c
ret