Function at 0x112efa0
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi]
mov eax, dword [eax]
push edi
push 0x100cce4
add eax, 0x7a8c
push 0x100b62c
push eax
call fcn.0107fe70
mov edi, eax
test edi, edi
je 0x112f027
lea eax, [esi + 0x420]
test eax, eax
je 0x112efea
push 0x103
push edi
push eax
call dword [sym.imp.msvcrt.dll_wcsncpy]
add esp, 0xc
cmp word [edi], 0
mov eax, edi
je 0x112effb
add eax, 2
cmp word [eax], 0
jne 0x112eff2
mov edx, dword [esi]
lea ecx, [esi + 0x303ec]
push ecx
sub eax, edi
push 0x107a450
sar eax, 1
push eax
mov eax, dword [edx]
push edi
push eax
call fcn.0102d3a0
push edi
push 0
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapFree]
push 0x20a
lea ecx, [ebp - 0x20c]
push 0
push ecx
call sub.msvcrt.dll_memset
mov edx, dword [esi]
mov eax, dword [edx]
add esp, 0xc
cmp dword [eax + 0x819c], 6
jb 0x112f065
movzx eax, word [eax + 0x7eb4]
push eax
push 0x1021c1c
push 0x103
lea ecx, [ebp - 0x20c]
push ecx
jmp 0x112f07e
movzx edx, word [eax + 0x7eb4]
push edx
push 0x1021c00
push 0x103
lea eax, [ebp - 0x20c]
push eax
call fcn.0102c0d0
lea eax, [esi + 0x62a]
add esp, 0x10
test eax, eax
je 0x112f0a6
push 0x103
lea ecx, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.msvcrt.dll_wcsncpy]
add esp, 0xc
cmp word [ebp - 0x20c], 0
lea eax, [ebp - 0x20c]
je 0x112f0bf
add eax, 2
cmp word [eax], 0
jne 0x112f0b6
lea ecx, [ebp - 0x20c]
lea edx, [esi + 0x303f4]
push edx
sub eax, ecx
push 0x107a450
sar eax, 1
push eax
mov eax, dword [esi]
mov edx, ecx
mov ecx, dword [eax]
push edx
push ecx
call fcn.0102d3a0
push 0x20a
lea edx, [ebp - 0x20c]
push 0
push edx
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x103
lea eax, [ebp - 0x20c]
push eax
push 0x1010534
call dword [sym.imp.KERNEL32.DLL_ExpandEnvironmentStringsW]
test eax, eax
je 0x112f171
lea eax, [esi + 0x216]
test eax, eax
je 0x112f134
push 0x103
lea ecx, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.msvcrt.dll_wcsncpy]
add esp, 0xc
cmp word [ebp - 0x20c], 0
lea eax, [ebp - 0x20c]
je 0x112f14d
add eax, 2
cmp word [eax], 0
jne 0x112f144
lea ecx, [ebp - 0x20c]
lea edx, [esi + 0x303e8]
push edx
sub eax, ecx
push 0x107a450
sar eax, 1
push eax
mov eax, dword [esi]
mov edx, ecx
mov ecx, dword [eax]
push edx
push ecx
call fcn.0102d3a0
mov edx, dword [esi]
mov edi, dword [edx]
push 0x2000
call fcn.01029a40
lea ebx, [eax*4 + 8]
lea eax, [ebx + edi]
push eax
call dword [sym.imp.KERNEL32.DLL_InterlockedIncrement]
push 0
push 1
push 0x2000
push edi
call fcn.010b3c70
push 0x20a
lea ecx, [ebp - 0x20c]
push 0
push ecx
call sub.msvcrt.dll_memset
mov edx, dword [esi]
mov eax, dword [edx]
mov edx, dword [eax + 0x224]
add esp, 0xc
lea ecx, [ebp - 0x20c]
push ecx
push 1
push 0
push 0x21
push 0
call edx
cmp byte [ebp - 0x20c], 0
je 0x112f1fd
push esi
push 0x112edf0
lea eax, [ebp - 0x20c]
push eax
call fcn.0102bd10
mov edx, dword [esi]
push eax
mov eax, dword [edx]
lea ecx, [ebp - 0x20c]
push ecx
push eax
call fcn.0102d3a0
push 0x20a
lea ecx, [ebp - 0x20c]
push 0
push ecx
call sub.msvcrt.dll_memset
mov edx, dword [esi]
mov eax, dword [edx]
mov edx, dword [eax + 0x224]
add esp, 0xc
lea ecx, [ebp - 0x20c]
push ecx
push 1
push 0
push 0x20
push 0
call edx
cmp byte [ebp - 0x20c], 0
je 0x112f27e
lea eax, [esi + 0xc]
test eax, eax
je 0x112f254
push 0x103
lea ecx, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.msvcrt.dll_wcsncpy]
add esp, 0xc
lea edx, [esi + 0x303f0]
push edx
push 0x107a450
lea eax, [ebp - 0x20c]
push eax
call fcn.0102bd10
mov edx, dword [esi]
push eax
mov eax, dword [edx]
lea ecx, [ebp - 0x20c]
push ecx
push eax
call fcn.0102d3a0
mov ecx, dword [esi]
mov edx, dword [ecx]
add edx, ebx
push edx
call dword [sym.imp.KERNEL32.DLL_InterlockedDecrement]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4