Function at 0x3000babd
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x30012970]
push ebx
push esi
push edi
mov ebx, ecx
push ebx
push dword [ebp + 0x14]
mov esi, edx
push dword [ebp + 0x10]
mov dword [ebp - 4], eax
push esi
push dword [ebp + 0xc]
push dword [0x30013cd4]
push dword [ebp + 8]
call fcn.30003118
xor edi, edi
jmp 0x3000bc41
cmp ax, di
je 0x3000bc59
push esi
push 0xfa
push 0x300140f8
call fcn.30007174
push 1
push edi
lea eax, [ebp - 0x418]
push eax
push dword [ebp + 0x10]
mov eax, esi
mov dword [ebp - 0x418], edi
call fcn.3000a33b
add esp, 0x1c
test eax, eax
je 0x3000bc0e
cmp word [esi], 0x25
jne 0x3000bc0e
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 2
jle 0x3000bc0e
push esi
call fcn.3000690b
cmp word [eax], 0x25
pop ecx
jne 0x3000bc0e
push esi
call fcn.3000690b
mov word [eax], di
mov dword [esp], 0x208
lea eax, [ebp - 0x414]
push eax
lea eax, [esi + 2]
push eax
mov word [ebp - 0x414], di
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp dword [ebp + 0x10], 0x7fffffff
ja 0x3000bb9d
push 0x30001dc4
push dword [ebp + 0x10]
push esi
call fcn.3000405a
cmp word [ebp - 0x414], di
lea eax, [ebp - 0x414]
mov dword [0x300129d8], eax
je 0x3000bc28
push 1
push ebx
push dword [ebp + 0x14]
mov eax, 0x30014300
call fcn.30009205
mov edi, eax
add esp, 0xc
test edi, edi
je 0x3000bc7b
push esi
push edi
push dword [ebp + 0x14]
push ebx
call fcn.30007233
add esp, 0x10
test eax, eax
je 0x3000bc7b
lea eax, [ebp - 0x414]
push eax
lea eax, [edi + 4]
push eax
push dword [ebp + 0x14]
push ebx
call fcn.30007233
add esp, 0x10
test eax, eax
je 0x3000bc7b
mov ax, word [ebp - 0x418]
mov word [edi + 0x10], ax
xor edi, edi
jmp 0x3000bc28
cmp dword [ebp + 0x14], edi
je 0x3000bc28
push 0x34
push 0x34a
push ebx
call fcn.3000a4ca
add esp, 0xc
cmp eax, 2
je 0x3000bc7b
push ebx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
push dword [ebp + 0xc]
push dword [0x30013cd4]
push dword [ebp + 8]
call fcn.30003118
add esp, 0x1c
cmp eax, edi
jne 0x3000bd0b
mov ax, word [esi]
cmp ax, 0x5b
jne 0x3000baf5
cmp word [esi], di
mov dword [0x300129d8], esi
je 0x3000bc83
push esi
call fcn.3000690b
cmp word [eax], 0x5d
pop ecx
je 0x3000bc83
mov eax, 0x332
jmp 0x3000bd0b
push 7
pop eax
jmp 0x3000bd0b
mov esi, dword [0x30014300]
cmp esi, edi
je 0x3000bd09
push dword [esi + 4]
mov edi, esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, dword [esi + 0x14]
test ebx, ebx
mov dword [ebp - 0x418], eax
je 0x3000bced
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, dword [ebp - 0x418]
jbe 0x3000bcbe
mov dword [ebp - 0x418], eax
mov edi, ebx
mov ebx, dword [ebx + 0x14]
test ebx, ebx
jne 0x3000bca5
cmp esi, edi
je 0x3000bced
mov ecx, dword [edi]
mov eax, dword [esi]
mov dword [esi], ecx
mov ecx, dword [edi + 4]
mov dword [edi], eax
mov eax, dword [esi + 4]
mov dword [esi + 4], ecx
mov cx, word [edi + 0x10]
mov dword [edi + 4], eax
mov ax, word [esi + 0x10]
mov word [esi + 0x10], cx
mov word [edi + 0x10], ax
push dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
call edi
push dword [esi + 4]
mov dword [esi + 8], eax
call edi
mov dword [esi + 0xc], eax
mov esi, dword [esi + 0x14]
test esi, esi
jne 0x3000bc8d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.300101bf
leave
ret