Function at 0x102f8fe0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x10c
mov eax, dword [0x106499c8]
xor eax, esp
mov dword [esp + 0x108], eax
cmp dword [0x1065f5c0], 0
jne 0x102f925e
push esi
mov esi, dword [sym.imp.MSVCR110.dll_getenv]
push edi
push str.XML_DEBUG_CATALOG
call esi
mov ecx, dword [0x1065f5b0]
test eax, eax
mov edi, 1
cmovne ecx, edi
mov dword [0x1065f5b0], ecx
call sym.php5.dll_xmlNewRMutex
push eax
mov dword [0x1065f5bc], eax
mov dword [0x1065f5c0], edi
call sym.php5.dll_xmlRMutexLock
push str.XML_DEBUG_CATALOG
call esi
mov ecx, dword [0x1065f5b0]
add esp, 0xc
test eax, eax
cmovne ecx, edi
cmp dword [0x1065f5b8], 0
mov dword [0x1065f5b0], ecx
jne 0x102f924e
push str.XML_CATALOG_FILES
call esi
mov esi, eax
add esp, 4
test esi, esi
jne 0x102f910d
push str.libxml2.dll
call sub.KERNEL32.dll_GetModuleHandleA
test eax, eax
jne 0x102f9090
push eax
call sub.KERNEL32.dll_GetModuleHandleA
test eax, eax
je 0x102f9108
push 0xff
lea ecx, [esp + 0x14]
push ecx
push eax
call sub.KERNEL32.dll_GetModuleFileNameA
test eax, eax
je 0x102f9108
lea ecx, [esp + 0x10]
add ecx, eax
cmp byte [ecx], 0x5c
je 0x102f90be
nop
lea eax, [esp + 0x10]
cmp ecx, eax
jbe 0x102f90be
dec ecx
cmp byte [ecx], 0x5c
jne 0x102f90b0
lea eax, [esp + 0x10]
cmp ecx, eax
je 0x102f9108
mov edi, dword [sym.imp.MSVCR110.dll_strncpy]
lea eax, [esp + 0x10f]
sub eax, ecx
push eax
push str...etccatalog
push ecx
call edi
lea eax, [esp + 0x1c]
push eax
call sym.php5.dll_xmlCanonicPath
mov esi, eax
add esp, 0x10
test esi, esi
je 0x102f9108
push 0xff
push esi
push str.file:___etc_xml_catalog
call edi
push esi
call dword [sym.php5.dll_xmlFree]
add esp, 0x10
mov esi, str.file:___etc_xml_catalog
push dword [0x106492fc]
push 1
call fcn.102f8310
mov edx, eax
add esp, 8
mov dword [esp + 0xc], edx
test edx, edx
je 0x102f924e
cmp byte [esi], 0
lea ecx, [edx + 0x3c]
mov dword [esp + 8], ecx
je 0x102f9248
push ebx
push ebp
lea ecx, [ecx]
mov al, byte [esi]
cmp al, 0x20
je 0x102f9152
cmp al, 9
jl 0x102f914e
cmp al, 0xa
jle 0x102f9152
cmp al, 0xd
jne 0x102f9155
inc esi
jmp 0x102f9140
mov al, byte [esi]
test al, al
je 0x102f9242
mov ecx, esi
cmp al, 0x20
je 0x102f9179
cmp al, 9
jl 0x102f916d
cmp al, 0xa
jle 0x102f9179
cmp al, 0xd
je 0x102f9179
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x102f9161
mov eax, esi
sub eax, ecx
push eax
push ecx
call sym.php5.dll_xmlStrndup
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x102f9239
mov ebp, dword [0x106492fc]
push 0x2c
call dword [sym.php5.dll_xmlMalloc]
mov edi, eax
add esp, 4
test edi, edi
jne 0x102f91d2
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.10260ef0
add esp, 0x44
jmp 0x102f921f
push ebx
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 1
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
call sym.php5.dll_xmlStrdup
add esp, 4
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], ebp
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov ebp, dword [esp + 0x10]
test edi, edi
mov dword [ebp], edi
cmovne ebp, edi
push ebx
mov dword [esp + 0x14], ebp
call dword [sym.php5.dll_xmlFree]
add esp, 4
cmp byte [esi], 0
jne 0x102f9140
mov edx, dword [esp + 0x14]
pop ebp
pop ebx
mov dword [0x1065f5b8], edx
push dword [0x1065f5bc]
call sym.php5.dll_xmlRMutexUnlock
add esp, 4
pop edi
pop esi
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.10311bec
add esp, 0x10c
ret