Function at 0x112e5d0
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 0x100d6c4
add eax, 0x83d4
push 0x100bfcc
push eax
call fcn.010842c0
mov edi, eax
test edi, edi
je 0x112e657
lea eax, [esi + 0x420]
test eax, eax
je 0x112e61a
push 0x103
push edi
push eax
call dword [sym.imp.msvcrt.dll_wcsncpy]
add esp, 0xc
cmp word [edi], 0
mov eax, edi
je 0x112e62b
add eax, 2
cmp word [eax], 0
jne 0x112e622
mov edx, dword [esi]
lea ecx, [esi + 0x303ec]
push ecx
sub eax, edi
push 0x107e600
sar eax, 1
push eax
mov eax, dword [edx]
push edi
push eax
call fcn.0102e510
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 + 0x8ae4], 6
jb 0x112e695
movzx eax, word [eax + 0x87fc]
push eax
push 0x1021500
push 0x103
lea ecx, [ebp - 0x20c]
push ecx
jmp 0x112e6ae
movzx edx, word [eax + 0x87fc]
push edx
push 0x10214e4
push 0x103
lea eax, [ebp - 0x20c]
push eax
call fcn.0102d240
lea eax, [esi + 0x62a]
add esp, 0x10
test eax, eax
je 0x112e6d6
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 0x112e6ef
add eax, 2
cmp word [eax], 0
jne 0x112e6e6
lea ecx, [ebp - 0x20c]
lea edx, [esi + 0x303f4]
push edx
sub eax, ecx
push 0x107e600
sar eax, 1
push eax
mov eax, dword [esi]
mov edx, ecx
mov ecx, dword [eax]
push edx
push ecx
call fcn.0102e510
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 0x10110c4
call dword [sym.imp.KERNEL32.DLL_ExpandEnvironmentStringsW]
test eax, eax
je 0x112e7a1
lea eax, [esi + 0x216]
test eax, eax
je 0x112e764
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 0x112e77d
add eax, 2
cmp word [eax], 0
jne 0x112e774
lea ecx, [ebp - 0x20c]
lea edx, [esi + 0x303e8]
push edx
sub eax, ecx
push 0x107e600
sar eax, 1
push eax
mov eax, dword [esi]
mov edx, ecx
mov ecx, dword [eax]
push edx
push ecx
call fcn.0102e510
mov edx, dword [esi]
mov edi, dword [edx]
push 0x2000
call fcn.0102ab20
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.010b8740
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 0x112e82d
push esi
push 0x112e420
lea eax, [ebp - 0x20c]
push eax
call fcn.0102ce80
mov edx, dword [esi]
push eax
mov eax, dword [edx]
lea ecx, [ebp - 0x20c]
push ecx
push eax
call fcn.0102e510
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 0x112e8ae
lea eax, [esi + 0xc]
test eax, eax
je 0x112e884
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 0x107e600
lea eax, [ebp - 0x20c]
push eax
call fcn.0102ce80
mov edx, dword [esi]
push eax
mov eax, dword [edx]
lea ecx, [ebp - 0x20c]
push ecx
push eax
call fcn.0102e510
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