Function at 0x100dc040
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x10c
mov eax, dword [0x10438fc0]
xor eax, esp
mov dword [esp + 0x108], eax
cmp dword [0x1044d760], 0
jne 0x100dc2a6
push ebx
push esi
mov esi, dword [sym.imp.MSVCR100.dll_getenv]
push str.XML_DEBUG_CATALOG
call esi
add esp, 4
test eax, eax
je 0x100dc081
mov dword [0x1044d750], 1
call fcn.100e77b0
mov ebx, 1
push eax
mov dword [0x1044d75c], eax
mov dword [0x1044d760], ebx
call fcn.100e7800
push str.XML_DEBUG_CATALOG
call esi
add esp, 8
test eax, eax
je 0x100dc0b0
mov dword [0x1044d750], ebx
cmp dword [0x1044d758], 0
jne 0x100dc295
push ebp
push edi
push str.XML_CATALOG_FILES
call esi
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x100dc16e
push str.libxml2.dll
call sub.KERNEL32.dll_GetModuleHandleA
test eax, eax
jne 0x100dc0eb
push eax
call sub.KERNEL32.dll_GetModuleHandleA
test eax, eax
je 0x100dc169
push 0xff
lea ecx, [esp + 0x1c]
push ecx
push eax
call sub.KERNEL32.dll_GetModuleFileNameA
test eax, eax
je 0x100dc169
cmp byte [esp + eax + 0x18], 0x5c
lea eax, [esp + eax + 0x18]
je 0x100dc11f
lea ebx, [ebx]
lea edx, [esp + 0x18]
cmp eax, edx
jbe 0x100dc11f
sub eax, ebx
cmp byte [eax], 0x5c
jne 0x100dc110
lea ecx, [esp + 0x18]
cmp eax, ecx
je 0x100dc169
mov edi, dword [sym.imp.MSVCR100.dll_strncpy]
lea edx, [esp + 0x117]
sub edx, eax
push edx
push str...etccatalog
push eax
call edi
lea eax, [esp + 0x24]
push eax
call fcn.100e2eb0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100dc169
push 0xff
push esi
push str.file:___etc_xml_catalog
call edi
push esi
call dword [0x10438018]
add esp, 0x10
mov ebp, str.file:___etc_xml_catalog
mov ecx, dword [0x104382cc]
push ecx
mov edi, ebx
call fcn.100da2c0
mov esi, eax
add esp, 4
mov dword [esp + 0x14], esi
test esi, esi
je 0x100dc293
cmp byte [ebp], 0
lea edx, [esi + 0x3c]
mov dword [esp + 0x10], edx
je 0x100dc28d
mov edi, edi
mov al, byte [ebp]
cmp al, 0x20
je 0x100dc1b3
cmp al, 9
jl 0x100dc1af
cmp al, 0xa
jle 0x100dc1b3
cmp al, 0xd
jne 0x100dc1b6
inc ebp
jmp 0x100dc1a0
mov al, byte [ebp]
test al, al
je 0x100dc28d
mov ecx, ebp
cmp al, 0x20
je 0x100dc1db
cmp al, 9
jl 0x100dc1cf
cmp al, 0xa
jle 0x100dc1db
cmp al, 0xd
je 0x100dc1db
mov al, byte [ebp + 1]
inc ebp
test al, al
jne 0x100dc1c3
mov eax, ebp
sub eax, ecx
push eax
push ecx
call fcn.100d1cd0
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x100dc283
mov edi, dword [0x104382cc]
push 0x2c
call dword [0x1043801c]
mov esi, eax
xor eax, eax
add esp, 4
cmp esi, eax
jne 0x100dc238
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 fcn.100cebb0
add esp, 0x44
xor esi, esi
jmp 0x100dc267
push ebx
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 fcn.100d1d20
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
mov ecx, dword [esp + 0x10]
mov dword [ecx], esi
test esi, esi
je 0x100dc275
mov dword [esp + 0x10], esi
push ebx
call dword [0x10438018]
mov esi, dword [esp + 0x18]
add esp, 4
cmp byte [ebp], 0
jne 0x100dc1a0
mov dword [0x1044d758], esi
pop edi
pop ebp
mov edx, dword [0x1044d75c]
push edx
call fcn.100e7820
add esp, 4
pop esi
pop ebx
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.10148524
add esp, 0x10c
ret