Function at 0x10041380
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a0595
mov eax, dword fs:[0]
push eax
sub esp, 0x4b4
mov eax, dword [0x100c34c0]
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, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x4b0], 0
mov dword [ebp - 0x418], 0
mov dword [ebp - 0x414], 0
mov dword [ebp - 0x4bc], esi
mov dword [ebp - 0x4a4], edi
mov dword [ebp - 0x414], 0xf
mov dword [ebp - 0x418], 0
mov byte [ebp - 0x428], 0
mov dword [ebp - 4], 1
test edi, edi
jne 0x1004142e
xor ecx, ecx
lea edx, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10041410
sub ecx, edx
jne 0x1004142e
lea eax, [ebp - 0x428]
push eax
mov ecx, esi
call fcn.10010730
jmp 0x10041841
push 0x3ff
lea eax, [ebp - 0x40f]
push 0
push eax
mov byte [ebp - 0x410], 0
call fcn.1007c850
add esp, 0xc
lea ecx, [ebp - 0x440]
mov dword [ebp - 0x4a8], 0
call fcn.100027c0
mov byte [ebp - 4], 2
mov ecx, eax
call fcn.10023030
mov ebx, eax
mov byte [ebp - 4], 1
cmp dword [ebp - 0x42c], 8
jb 0x10041488
push dword [ebp - 0x440]
call fcn.10076e4c
add esp, 4
xor eax, eax
mov dword [ebp - 0x42c], 7
mov dword [ebp - 0x430], 0
mov word [ebp - 0x440], ax
test ebx, ebx
je 0x100417cb
lea ecx, [ebp - 0x458]
call fcn.10020fe0
mov byte [ebp - 4], 3
mov ecx, eax
call fcn.10023030
mov dword [ebp - 0x4b8], eax
mov byte [ebp - 4], 1
cmp dword [ebp - 0x444], 8
jb 0x100414ea
push dword [ebp - 0x458]
call fcn.10076e4c
mov eax, dword [ebp - 0x4b8]
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x444], 7
mov dword [ebp - 0x448], 0
mov word [ebp - 0x458], cx
test eax, eax
je 0x100417cb
lea ecx, [ebp - 0x488]
call fcn.10021170
mov byte [ebp - 4], 4
mov ecx, eax
call fcn.10023030
mov dword [ebp - 0x4b4], eax
mov byte [ebp - 4], 1
cmp dword [ebp - 0x474], 8
jb 0x1004154c
push dword [ebp - 0x488]
call fcn.10076e4c
mov eax, dword [ebp - 0x4b4]
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x474], 7
mov dword [ebp - 0x478], 0
mov word [ebp - 0x488], cx
test eax, eax
je 0x100417cb
lea ecx, [ebp - 0x470]
call fcn.10021300
mov byte [ebp - 4], 5
mov ecx, eax
call fcn.10023030
mov edi, eax
mov byte [ebp - 4], 1
cmp dword [ebp - 0x45c], 8
jb 0x100415a4
push dword [ebp - 0x470]
call fcn.10076e4c
add esp, 4
xor eax, eax
mov dword [ebp - 0x45c], 7
mov dword [ebp - 0x460], 0
mov word [ebp - 0x470], ax
test edi, edi
je 0x100417c5
lea ecx, [ebp - 0x470]
call fcn.10021490
mov byte [ebp - 4], 6
cmp dword [eax + 0x14], 0x10
jb 0x100415e0
mov eax, dword [eax]
mov edx, eax
mov ecx, ebx
call fcn.10023ba0
mov ebx, eax
mov dword [ebp - 0x4ac], ebx
mov byte [ebp - 4], 1
cmp dword [ebp - 0x45c], 0x10
jb 0x1004160c
push dword [ebp - 0x470]
call fcn.10076e4c
add esp, 4
mov dword [ebp - 0x45c], 0xf
mov dword [ebp - 0x460], 0
mov byte [ebp - 0x470], 0
test ebx, ebx
je 0x100417c5
lea ecx, [ebp - 0x4a0]
call fcn.10021680
mov byte [ebp - 4], 7
cmp dword [eax + 0x14], 0x10
jb 0x10041646
mov eax, dword [eax]
mov ecx, dword [ebp - 0x4b8]
mov edx, eax
call fcn.10023ba0
mov ebx, eax
mov byte [ebp - 4], 1
cmp dword [ebp - 0x48c], 0x10
jb 0x10041670
push dword [ebp - 0x4a0]
call fcn.10076e4c
add esp, 4
mov dword [ebp - 0x48c], 0xf
mov dword [ebp - 0x490], 0
mov byte [ebp - 0x4a0], 0
test ebx, ebx
je 0x100417c5
lea ecx, [ebp - 0x458]
call fcn.1003f120
mov byte [ebp - 4], 8
cmp dword [eax + 0x14], 0x10
jb 0x100416aa
mov eax, dword [eax]
mov ecx, dword [ebp - 0x4b4]
mov edx, eax
call fcn.10023ba0
mov edi, eax
mov byte [ebp - 4], 1
cmp dword [ebp - 0x444], 0x10
jb 0x100416d4
push dword [ebp - 0x458]
call fcn.10076e4c
add esp, 4
mov dword [ebp - 0x444], 0xf
mov dword [ebp - 0x448], 0
mov byte [ebp - 0x458], 0
test edi, edi
je 0x100417c5
push 0xe
xor eax, eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 0x42c], 0
push str.SeTcbPrivilege
lea ecx, [ebp - 0x440]
mov dword [ebp - 0x42c], 7
mov dword [ebp - 0x430], 0
mov word [ebp - 0x440], ax
call fcn.10012a10
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x440]
call fcn.10023110
mov byte [ebp - 4], 1
cmp dword [ebp - 0x42c], 8
jb 0x10041764
push dword [ebp - 0x440]
call fcn.10076e4c
add esp, 4
xor eax, eax
mov dword [ebp - 0x42c], 7
mov dword [ebp - 0x430], 0
mov word [ebp - 0x440], ax
call dword [ebp - 0x4ac]
lea ecx, [ebp - 0x4a8]
push ecx
push eax
call ebx
test eax, eax
je 0x100417c5
push 0x400
lea eax, [ebp - 0x410]
push eax
push dword [ebp - 0x4a4]
push dword [ebp - 0x4a8]
call edi
test eax, eax
je 0x100417c5
lea eax, [ebp - 0x410]
push eax
lea ecx, [ebp - 0x428]
call fcn.10010850
mov edi, dword [ebp - 0x4a4]
cmp dword [ebp - 0x418], 0
jne 0x1004181d
push 0x400
lea eax, [ebp - 0x410]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
je 0x1004181d
cmp byte [ebp - 0x410], 0
jne 0x100417f8
xor ecx, ecx
jmp 0x1004180a
lea ecx, [ebp - 0x410]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10041801
sub ecx, edx
push ecx
lea eax, [ebp - 0x410]
push eax
lea ecx, [ebp - 0x428]
call fcn.10011ad0
push dword [ebp - 0x4a8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x428]
push eax
mov ecx, esi
mov dword [ebp - 0x4a8], 0
call fcn.10010730
mov dword [ebp - 0x4b0], 1
mov byte [ebp - 4], 0
cmp dword [ebp - 0x414], 0x10
jb 0x10041866
push dword [ebp - 0x428]
call fcn.10076e4c
add esp, 4
mov dword [ebp - 0x414], 0xf
mov dword [ebp - 0x418], 0
mov byte [ebp - 0x428], 0
mov eax, esi
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.10076e3d
mov esp, ebp
pop ebp
ret 8