Function at 0x10033740
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x102d8a20]
sub esp, 0x108
test eax, eax
jne 0x10033993
push ebx
push esi
mov esi, dword [sym.imp.MSVCR120.dll_getenv]
push str.XML_DEBUG_CATALOG
call esi
add esp, 4
test eax, eax
mov ebx, 1
je 0x10033774
mov dword [0x102d8a10], ebx
call fcn.10031490
push eax
mov dword [0x102d8a1c], eax
mov dword [0x102d8a20], ebx
call fcn.100314c0
push str.XML_DEBUG_CATALOG
call esi
add esp, 8
test eax, eax
je 0x1003379e
mov dword [0x102d8a10], ebx
mov eax, dword [0x102d8a18]
test eax, eax
jne 0x10033982
push edi
push str.XML_CATALOG_FILES
call esi
mov esi, eax
add esp, 4
test esi, esi
jne 0x10033860
push str.libxml2.dll
call sub.KERNEL32.dll_GetModuleHandleA
test eax, eax
jne 0x100337dc
push eax
call sub.KERNEL32.dll_GetModuleHandleA
test eax, eax
je 0x1003385b
push 0xff
lea ecx, [esp + 0x18]
push ecx
push eax
call sub.KERNEL32.dll_GetModuleFileNameA
test eax, eax
je 0x1003385b
mov cl, byte [esp + eax + 0x14]
cmp cl, 0x5c
lea eax, [esp + eax + 0x14]
je 0x10033811
lea ecx, [ecx]
lea edx, [esp + 0x14]
cmp eax, edx
jbe 0x10033811
mov cl, byte [eax - 1]
dec eax
cmp cl, 0x5c
jne 0x10033800
lea ecx, [esp + 0x14]
cmp eax, ecx
je 0x1003385b
mov edi, dword [sym.imp.MSVCR120.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 fcn.100175a0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1003385b
push 0xff
push esi
push str.file:___etc_xml_catalog
call edi
push esi
call dword [0x102d00c0]
add esp, 0x10
mov esi, str.file:___etc_xml_catalog
mov ecx, dword [0x102d064c]
push ecx
call fcn.10031ae0
mov edi, eax
add esp, 4
test edi, edi
mov dword [esp + 0x10], edi
je 0x10033981
cmp byte [esi], 0
lea edx, [edi + 0x3c]
mov ebx, esi
mov dword [esp + 0xc], edx
je 0x1003397b
push ebp
mov al, byte [ebx]
cmp al, 0x20
je 0x100338a2
cmp al, 9
jl 0x1003389e
cmp al, 0xa
jle 0x100338a2
cmp al, 0xd
jne 0x100338a5
inc ebx
jmp 0x10033890
mov al, byte [ebx]
test al, al
je 0x1003397a
mov ecx, ebx
cmp al, 0x20
je 0x100338c9
cmp al, 9
jl 0x100338bd
cmp al, 0xa
jle 0x100338c9
cmp al, 0xd
je 0x100338c9
mov al, byte [ebx + 1]
inc ebx
test al, al
jne 0x100338b1
mov eax, ebx
sub eax, ecx
push eax
push ecx
call fcn.1000ac60
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x10033971
mov edi, dword [0x102d064c]
push 0x2c
call dword [0x102d00c4]
mov esi, eax
xor eax, eax
add esp, 4
cmp esi, eax
jne 0x10033926
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.100090b0
add esp, 0x44
xor esi, esi
jmp 0x10033955
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 fcn.1000acb0
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 0x10033963
mov dword [esp + 0x10], esi
push ebp
call dword [0x102d00c0]
mov edi, dword [esp + 0x18]
add esp, 4
cmp byte [ebx], 0
jne 0x10033890
pop ebp
mov dword [0x102d8a18], edi
pop edi
mov edx, dword [0x102d8a1c]
push edx
call fcn.100314e0
add esp, 4
pop esi
pop ebx
add esp, 0x108
ret