Function at 0x10035ea8
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2f0
mov eax, dword [0x102a8430]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push ebx
mov dword [ebp - 0x2d8], edx
xor ebx, ebx
mov edx, dword [ebp + 0x14]
and dword [ebp - 0x2c4], ebx
push esi
mov dword [ebp - 0x2d0], edx
mov edx, dword [ebp + 0x18]
push edi
mov dword [ebp - 0x2dc], edx
lea edx, [ebp - 0x2c4]
push edx
push eax
mov dword [ebp - 0x2c8], ebx
call fcn.1000b2d0
test al, al
je 0x1003637e
mov edi, dword [ebp - 0x2c4]
test edi, edi
je 0x1003637e
mov esi, dword [edi + 8]
mov edi, dword [edi + 0xc]
mov dword [ebp - 0x2e0], edi
jmp 0x1003636c
mov ecx, dword [esi]
lea edx, [ebp - 0x2bc]
and dword [ebp - 0x2bc], 0
push edx
mov eax, dword [ecx]
call dword [eax + 0x2c]
test al, al
je 0x10036369
cmp dword [ebp - 0x2bc], 0
je 0x10036369
and dword [ebp - 0x22c], 0
xor eax, eax
mov word [ebp - 0x23c], ax
or ebx, 1
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x228], 7
push eax
push 4
lea eax, [ebp - 0x26c]
push 0x1006e078
push eax
call fcn.100384cf
mov ecx, dword [ebp - 0x2bc]
add esp, 0xc
push eax
call fcn.1000b280
test al, al
je 0x10035fa5
cmp dword [ebp - 0x22c], 0
mov byte [ebp - 0x2b5], 0
jne 0x10035fac
mov byte [ebp - 0x2b5], 1
push 0
push 1
lea ecx, [ebp - 0x26c]
and ebx, 0xfffffffe
call fcn.10001360
cmp byte [ebp - 0x2b5], 0
jne 0x1003635a
push ecx
push ecx
mov ecx, esp
push dword [ebp - 0x2d0]
call fcn.10008080
push 0xe
lea eax, [ebp - 0x26c]
push 0x1006e088
push eax
call fcn.1003851e
pop ecx
mov ecx, esp
push eax
call fcn.10008080
lea eax, [ebp - 0x23c]
push 0
push eax
call fcn.1000d800
add esp, 0x18
lea ecx, [ebp - 0x26c]
push 0
push 1
call fcn.100085e0
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.1003c940
add esp, 0xc
lea ecx, [ebp - 0x20c]
cmp dword [ebp - 0x228], 8
lea eax, [ebp - 0x23c]
cmovae eax, dword [ebp - 0x23c]
push 0x104
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x20c]
push eax
call fcn.10007050
pop ecx
push eax
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x23c]
call fcn.100089c0
and dword [ebp - 0x2c0], 0
lea eax, [ebp - 0x2c0]
push eax
push 7
lea eax, [ebp - 0x26c]
or ebx, 2
push 0x1006e058
push eax
call fcn.100384cf
mov ecx, dword [ebp - 0x2bc]
add esp, 0xc
push eax
call fcn.1000b2d0
test al, al
je 0x100360ba
cmp dword [ebp - 0x2c0], 0
mov byte [ebp - 0x2b5], 1
jne 0x100360c1
mov byte [ebp - 0x2b5], 0
push 0
and ebx, 0xfffffffd
lea ecx, [ebp - 0x26c]
push 1
mov dword [ebp - 0x2c8], ebx
call fcn.10001360
cmp byte [ebp - 0x2b5], 0
je 0x1003635a
mov ecx, dword [ebp - 0x2c0]
and dword [ebp - 0x2d4], 0
mov eax, dword [ecx + 0xc]
sub eax, dword [ecx + 8]
sar eax, 2
test eax, eax
je 0x1003635a
mov edi, dword [ebp - 0x2d4]
mov esi, dword [ebp - 0x2d8]
mov ebx, dword [ebp - 0x2dc]
and dword [ebp - 0x244], 0
xor eax, eax
mov word [ebp - 0x254], ax
lea eax, [ebp - 0x254]
push eax
push edi
mov dword [ebp - 0x240], 7
call fcn.1000bb10
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x284]
push esi
push eax
call fcn.100175c0
add esp, 0xc
lea ecx, [ebp - 0x254]
push eax
call fcn.1000c630
push 0
push 1
lea ecx, [ebp - 0x284]
call fcn.100085e0
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x224]
push eax
call fcn.1000a0c0
push dword [ebp - 0x214]
lea eax, [ebp - 0x26c]
push eax
call fcn.10035056
cmp dword [ebp - 0x210], 0x10
lea ecx, [ebp - 0x224]
push dword [ebp - 0x214]
cmovae ecx, dword [ebp - 0x224]
lea eax, [ebp - 0x224]
cmovae eax, dword [ebp - 0x224]
push ecx
push eax
lea eax, [ebp - 0x26c]
push eax
call fcn.100063b0
cmp dword [ebp - 0x210], 0x10
lea eax, [ebp - 0x224]
cmovae eax, dword [ebp - 0x224]
mov dword [ebp - 0x2e8], eax
mov eax, dword [ebp - 0x214]
mov dword [ebp - 0x2e4], eax
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x2e8]
push eax
call fcn.10006e80
cmp dword [ebp - 0x210], 0x10
lea eax, [ebp - 0x224]
cmovae eax, dword [ebp - 0x224]
mov dword [ebp - 0x2f0], eax
mov eax, dword [ebp - 0x214]
mov dword [ebp - 0x2ec], eax
lea eax, [ebp - 0x2f0]
push eax
lea eax, [ebp - 0x29c]
push eax
call fcn.1000a0e0
add esp, 0x30
push eax
push 7
lea eax, [ebp - 0x2b4]
push 0x1006e080
push eax
call fcn.1003851e
add esp, 0xc
push eax
lea eax, [ebp - 0x284]
push eax
call fcn.10034f83
add esp, 0xc
lea ecx, [ebp - 0x254]
push eax
call fcn.1000c630
push 0
push 1
lea ecx, [ebp - 0x284]
call fcn.100085e0
push 0
push 1
lea ecx, [ebp - 0x2b4]
call fcn.100085e0
push 0
push 1
lea ecx, [ebp - 0x29c]
call fcn.100085e0
push 0x100687d4
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x29c]
push eax
call fcn.10034fca
add esp, 0xc
lea ecx, [ebp - 0x254]
push 0xffffffffffffffff
push 0
push ecx
mov ecx, eax
call fcn.10008be0
push eax
lea ecx, [ebp - 0x284]
call fcn.10008ff0
lea eax, [ebp - 0x284]
mov ecx, ebx
push eax
call fcn.10007f40
push 0
push 1
lea ecx, [ebp - 0x284]
call fcn.100085e0
push 0
push 1
lea ecx, [ebp - 0x29c]
call fcn.100085e0
push 0
push 1
lea ecx, [ebp - 0x26c]
call fcn.10001360
push 0
push 1
lea ecx, [ebp - 0x224]
call fcn.10001360
push 0
push 1
lea ecx, [ebp - 0x254]
call fcn.100085e0
mov ecx, dword [ebp - 0x2c0]
inc edi
mov eax, dword [ecx + 0xc]
sub eax, dword [ecx + 8]
sar eax, 2
cmp edi, eax
jb 0x10036116
mov esi, dword [ebp - 0x2cc]
mov edi, dword [ebp - 0x2e0]
mov ebx, dword [ebp - 0x2c8]
push 0
push 1
lea ecx, [ebp - 0x23c]
call fcn.100085e0
add esi, 4
mov dword [ebp - 0x2cc], esi
cmp esi, edi
jne 0x10035f21
mov al, 1
jmp 0x10036380
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003ae2a
mov esp, ebp
pop ebp
ret