Function at 0x1106c420
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x11182c34
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x111ec774]
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 esi, ecx
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x10]
mov ebx, dword [eax + 0xc]
mov edi, edx
mov edx, dword [eax + 8]
mov dword [ebp - 0x220], eax
mov eax, dword [edx + 0x54]
mov dword [ebp - 0x224], eax
xor eax, eax
mov dword [ebp - 0x22c], ecx
mov dword [ebp - 0x214], eax
cmp dword [esi + 0x60c], eax
je 0x1106c493
mov dword [ebp - 0x214], pe_nt_image_headers32
mov eax, dword [ebp - 0x214]
cmp dword [esi + 0x138], 0
push 0
je 0x1106c4d6
lea edx, [esi + 0x13c]
push edx
and eax, 0xfffffffe
push eax
lea ecx, [esi + 0x23c]
push esi
mov edx, edi
call fcn.11069ca0
add esp, 0x10
test eax, eax
je 0x1106c520
push 0
push 1
push 1
call fcn.1106b140
add esp, 0xc
neg eax
sbb eax, eax
inc eax
jmp 0x1106c967
push 1
push 0x111a2dbc
push 0x111a0f78
mov ecx, ebx
call fcn.1105e820
mov dword [ebp - 0x228], eax
push 0
mov edx, edi
test eax, eax
je 0x1106c527
mov eax, dword [ebp - 0x224]
lea ecx, [eax + 0xdc64]
add eax, 0xdb64
push eax
mov eax, dword [ebp - 0x214]
or eax, 1
push eax
push esi
call fcn.11069ca0
add esp, 0x10
test eax, eax
jne 0x1106c53d
xor eax, eax
jmp 0x1106c967
mov ecx, dword [ebp - 0x214]
or ecx, 1
push 0x11195264
push ecx
mov ecx, 0x11195264
jmp 0x1106c513
push 0
push 1
push 0
call fcn.1106b140
add esp, 0xc
mov dword [ebp - 0x21c], eax
test edi, edi
je 0x1106c5a7
test dword [esi + 0x3b4], 0x10000000
jne 0x1106c575
push 0x111a303c
call fcn.11147060
add esp, 4
xor eax, eax
jmp 0x1106c967
cmp eax, 0x18a7
jne 0x1106c593
push 0x111a3028
call fcn.11147060
add esp, 4
mov eax, 1
jmp 0x1106c967
push 0x111a3010
call fcn.11147060
add esp, 4
xor eax, eax
jmp 0x1106c967
cmp eax, 0x18a7
jne 0x1106c929
cmp dword [ebp + 8], 0
je 0x1106c622
cmp dword [esi + 0x614], 0
je 0x1106c520
xor eax, eax
mov dword [ebp - 0x23c], eax
push 0x1955
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x234], eax
mov dword [ebp - 0x230], eax
mov dword [ebp - 0x23c], 3
call fcn.11146710
mov edx, dword [esi + 0x61c]
mov ecx, dword [esi + 0x618]
push edx
mov edx, dword [esi + 0x614]
mov dword [ebp - 0x234], eax
lea eax, [ebp - 0x23c]
push eax
push ecx
push 0
call edx
add esp, 0x14
xor eax, eax
jmp 0x1106c967
mov edi, 8
mov dword [ebp - 0x218], 0
call fcn.11143a20
cmp eax, 0x14
jge 0x1106c65b
test dword [esi + 0x3b4], 0x40000
je 0x1106c65b
mov eax, dword [ebp - 0x220]
mov ecx, dword [eax + 0x20]
mov edi, 0x88
mov dword [ebp - 0x218], ecx
push 0x3a8
call fcn.111101b0
mov edx, eax
add esp, 4
mov dword [ebp - 0x21c], edx
mov dword [ebp - 4], 0
test edx, edx
je 0x1106c6a5
mov eax, dword [ebp - 0x218]
mov ecx, dword [ebp - 0x220]
push eax
push ecx
push 0
push edi
call fcn.11064cf0
mov ecx, dword [ebp - 0x22c]
push eax
push ebx
push ecx
mov ecx, edx
call fcn.110eea20
mov edi, eax
jmp 0x1106c6a7
xor edi, edi
mov dword [ebp - 0x240], edi
mov edx, dword [ebx]
mov edx, dword [edx + 4]
push 0
push 0x100
lea eax, [ebp - 0x210]
push eax
push 0x111a3000
push 0x111a0f78
mov ecx, ebx
mov dword [ebp - 4], 1
call edx
push 0x100
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KeRneL32.DLl_ExpandEnvironmentStringsA]
cmp dword [ebp - 0x228], 0
je 0x1106c799
mov eax, dword [ebp - 0x224]
add eax, 0xdb64
cmp byte [eax], 0
je 0x1106c799
lea edx, [edi + 0x7c]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x1106c714
lea edx, [ebp - 0x110]
push edx
lea eax, [edi + 0x7c]
push eax
call fcn.11081e70
add esp, 8
test eax, eax
je 0x1106c7b0
push 0x80
lea ecx, [ebp - 0x23c]
call fcn.110cfe80
mov eax, dword [ebx]
mov edx, dword [eax + 8]
push 0
lea ecx, [ebp - 0x23c]
push ecx
push 0x111a2ff4
push 0x111a0f78
mov ecx, ebx
mov byte [ebp - 4], 2
call edx
lea ecx, [ebp - 0x23c]
call fcn.110094d0
push eax
lea eax, [edi + 0x7c]
push eax
call fcn.11081e70
add esp, 8
test eax, eax
je 0x1106c788
mov byte [edi + 0x28c], 1
lea ecx, [ebp - 0x23c]
mov byte [ebp - 4], 1
call fcn.110d0a10
jmp 0x1106c7b7
lea eax, [ebp - 0x110]
lea edx, [edi + 0x7c]
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x1106c7a6
mov byte [edi + 0x28c], 1
mov eax, 0x100
mov dword [edi + 0x280], eax
mov dword [edi + 0x284], eax
mov dword [ebp - 0x218], 0
push 1
push 0x191f
mov ecx, edi
call fcn.110ce820
cmp eax, 2
je 0x1106c89d
test dword [esi + 0x3b4], 0x40000
je 0x1106c835
mov ecx, edi
call fcn.110eeb00
test al, al
je 0x1106c835
mov ebx, dword [edi + 0x290]
test ebx, ebx
je 0x1106c8ae
lea ecx, [ebx + 0x6c]
call fcn.11063c60
test al, al
je 0x1106c8ae
mov edx, dword [ebp - 0x214]
push ebx
lea eax, [edi + 0x7c]
and edx, 0xfffffffe
push eax
or edx, 0x100
push edx
jmp 0x1106c845
push 0
lea eax, [edi + 0x7c]
push eax
mov eax, dword [ebp - 0x214]
and eax, 0xfffffffe
push eax
push esi
xor edx, edx
lea ecx, [edi + 0x180]
call fcn.11069ca0
add esp, 0x10
test eax, eax
je 0x1106c8ae
mov ecx, edi
call fcn.110eeb00
movzx ecx, al
push ecx
push 1
push 1
call fcn.1106b140
add esp, 0xc
mov dword [ebp - 0x21c], eax
cmp eax, 0x18a7
je 0x1106c885
cmp eax, 0x1952
jne 0x1106c8ca
mov eax, dword [ebp - 0x218]
inc eax
mov dword [ebp - 0x218], eax
cmp eax, 3
jl 0x1106c7d2
jmp 0x1106c914
mov ecx, dword [ebp - 0x22c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x20]
push 0
push 1
call eax
mov edx, dword [edi]
mov eax, dword [edx + 0x110]
push 1
mov ecx, edi
mov dword [ebp - 4], 0xffffffff
call eax
xor eax, eax
jmp 0x1106c967
test eax, eax
jne 0x1106c914
cmp dword [ebp - 0x228], eax
je 0x1106c914
mov ecx, edi
call fcn.110eeb00
test al, al
jne 0x1106c914
mov esi, dword [ebp - 0x224]
lea eax, [edi + 0x7c]
mov edx, esi
sub edx, eax
mov edi, edi
mov cl, byte [eax]
mov byte [edx + eax + 0xdb64], cl
inc eax
test cl, cl
jne 0x1106c8f0
lea eax, [edi + 0x180]
sub esi, eax
mov cl, byte [eax]
mov byte [esi + eax + 0xdc64], cl
inc eax
test cl, cl
jne 0x1106c906
mov edx, dword [edi]
mov eax, dword [edx + 0x110]
push 1
mov ecx, edi
mov dword [ebp - 4], 0xffffffff
call eax
mov esi, dword [ebp - 0x220]
push 0
push 0x111a2fdc
mov ecx, esi
call fcn.11067870
test eax, eax
jne 0x1106c95c
mov ecx, 0x2f
lea edx, [ebp - 0x214]
mov word [ebp - 0x214], cx
mov ecx, dword [esi + 8]
push edx
call fcn.11064730
xor eax, eax
cmp dword [ebp - 0x21c], eax
sete al
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.11162bb7
mov esp, ebp
pop ebp
ret