Function at 0x110bd500
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x111e19db
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x11279148]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov ebx, dword [ebp + 0x14]
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov edx, dword [eax + 8]
xor edi, edi
mov dword [ebp - 0x228], esi
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x21c], edx
mov dword [ebp - 0x214], edi
cmp ebx, edi
jne 0x110bd569
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x218], ecx
lea ebx, [edi + 2]
add eax, 0xc
push eax
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x234], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], edi
cmp ebx, 2
jae 0x110bd59e
push 0x24b
push str...ctl32Config.cpp
push str.buflen___sizeof__TCHAR_
call fcn.11067750
add esp, 0xc
cmp word [esi], 0x2a
jne 0x110bd5ad
add esi, 2
mov dword [ebp - 0x228], esi
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x210]
sub edx, eax
jmp 0x110bd5c0
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, di
jne 0x110bd5c0
lea edi, [ebp - 0x210]
add edi, 0xfffffffe
jmp 0x110bd5e0
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x110bd5e0
mov edx, dword [0x11203288]
mov eax, esi
mov dword [edi], edx
mov edx, eax
jmp 0x110bd600
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x110bd600
lea edi, [ebp - 0x210]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x110bd616
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
test byte [ebp + 0x18], 0x20
rep movsb byte es:[edi], byte [esi]
jne 0x110bd740
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x224]
call fcn.110bbb90
mov edi, dword [ebp - 0x21c]
lea ecx, [ebp - 0x224]
push ecx
lea edx, [ebp - 0x21c]
push edx
lea ecx, [edi + 0x118]
call fcn.110bd190
mov esi, dword [ebp - 0x21c]
cmp esi, dword [edi + 0x11c]
je 0x110bd72f
mov eax, dword [esi + 0x14]
cmp ebx, eax
jl 0x110bd690
mov dword [ebp - 0x214], eax
mov edi, eax
jmp 0x110bd6a0
mov ecx, dword [ebp - 0x218]
xor eax, eax
mov word [ebx + ecx - 2], ax
lea edi, [ebx - 2]
test byte [ebp + 0x18], 0x80
je 0x110bd6e5
mov eax, dword [ebp - 0x218]
mov ecx, dword [esi + 0x10]
mov edx, ebx
shr edx, 1
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x110bd6e5
lea edx, [eax + eax]
cmp edx, ebx
jg 0x110bd6e5
mov eax, dword [ebp - 0x218]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x110bd6d0
sub eax, edx
sar eax, 1
lea esi, [eax + eax + 2]
jmp 0x110bd706
mov eax, dword [esi + 0x10]
mov ecx, dword [ebp - 0x218]
push edi
push eax
push ecx
call sub.MSVCR100.dll_memcpy
add esp, 0xc
test byte [ebp + 0x18], 0x40
je 0x110bd704
mov esi, dword [esi + 0x14]
jmp 0x110bd706
mov esi, edi
mov edx, dword [ebp - 0x224]
push edx
mov dword [ebp - 0x214], esi
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp - 0x220]
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
jmp 0x110bd8dc
mov ecx, dword [ebp - 0x224]
push ecx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
jmp 0x110bd746
mov edi, dword [ebp - 0x21c]
mov edx, dword [edi]
or edx, dword [ebp + 0x18]
mov esi, dword [ebp - 0x218]
test dl, 1
jne 0x110bd7e2
cmp dword [edi + 0x10], 0
je 0x110bd7e2
lea ecx, [ebp - 0x214]
push ecx
push esi
lea edx, [ebp - 0x22c]
push edx
push 0
lea ecx, [ebp - 0x210]
mov dword [ebp - 0x214], ebx
mov eax, dword [edi + 0x10]
push ecx
push eax
call fcn.111b8970
add esp, 0x18
test eax, eax
jne 0x110bd7db
cmp dword [ebp - 0x22c], 4
jne 0x110bd839
cmp ebx, 0x14
jbe 0x110bd839
mov edx, dword [esi]
push 0xa
push esi
push edx
call dword [sym.imp.MSVCR100.dll__ultow]
mov eax, esi
add esp, 0xc
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x110bd7c0
sub eax, edx
sar eax, 1
lea edi, [eax + eax + 2]
mov dword [ebp - 0x214], edi
jmp 0x110bd83f
cmp eax, 0xea
je 0x110bd839
mov eax, dword [ebp - 0x228]
mov ecx, str._present
lea ecx, [ecx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x110bd816
test dx, dx
je 0x110bd812
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x110bd816
add eax, 4
add ecx, 4
test dx, dx
jne 0x110bd7f0
xor eax, eax
jmp 0x110bd81b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x110bd839
mov ecx, dword [ebp - 0x220]
xor eax, eax
push ecx
mov word [esi], ax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
or eax, 0xffffffff
jmp 0x110bd8dc
mov edi, dword [ebp - 0x214]
test edi, edi
je 0x110bd8cd
test byte [ebp + 0x18], 0x80
je 0x110bd8cd
push ebx
call dword [sym.imp.MSVCR100.dll_malloc]
push edi
mov edi, dword [ebp - 0x218]
mov esi, eax
push edi
push esi
call sub.MSVCR100.dll_memcpy
add esp, 0x10
mov edx, ebx
shr edx, 1
push edx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x110bd8bd
add eax, eax
cmp eax, ebx
jg 0x110bd8bd
mov edx, edi
mov eax, esi
sub edx, esi
jmp 0x110bd890
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x110bd890
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x110bd8a4
sub eax, edx
sar eax, 1
lea ecx, [eax + eax + 2]
mov dword [ebp - 0x214], ecx
push esi
call dword [sym.imp.MSVCR100.dll_free]
mov edi, dword [ebp - 0x214]
add esp, 4
mov edx, dword [ebp - 0x220]
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.111d9022
mov esp, ebp
pop ebp
ret 0x14