Function at 0x10004d10
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10029374
mov eax, dword fs:[0]
push eax
sub esp, 0x2ac
mov eax, dword [0x10040014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov dword [ebp - 0x284], esi
mov edi, ecx
mov dword [ebp - 0x280], edi
mov dword [ebp - 0x2a0], edi
lea eax, [esi + 0x10]
mov dword [ebp - 0x27c], 0
cmp dword [eax], 0
mov dword [ebp - 0x280], eax
jne 0x10004d9f
xor eax, eax
mov dword [edi + 0x10], 0
push eax
mov dword [edi + 0x14], 7
push 0x1003872c
mov word [edi], ax
call fcn.10005860
mov dword [ebp - 4], 0
mov dword [ebp - 0x27c], 1
jmp 0x10005222
lea ecx, [ebp - 0x248]
call fcn.1000d320
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x248]
cmp dword [ebp - 0x234], 8
mov edx, str..dll
cmovae ecx, dword [ebp - 0x248]
call fcn.1000b9f0
test al, al
jne 0x10004e44
xor eax, eax
mov dword [edi + 0x10], 0
push eax
mov dword [edi + 0x14], 7
mov ecx, edi
push 0x1003872c
mov word [edi], ax
call fcn.10005860
mov dword [ebp - 0x27c], 1
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x234]
cmp edx, 8
jb 0x10005209
mov ecx, dword [ebp - 0x248]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100051ff
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000523f
jmp 0x100051ff
xor eax, eax
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
mov byte [ebp - 4], 2
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x10004e83
mov eax, dword [esi]
cmp word [eax], 0x25
jne 0x10005156
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.10018a60
add esp, 0xc
mov ecx, esi
cmp dword [esi + 0x14], 8
jb 0x10004ead
mov ecx, dword [esi]
mov eax, dword [ebp - 0x280]
mov eax, dword [eax]
cmp eax, 1
jbe 0x10004ed0
lea esi, [ecx + 2]
add eax, 0xffffffff
je 0x10004ed0
cmp word [esi], 0x25
je 0x10004f0f
add esi, 2
sub eax, 1
jne 0x10004ec2
push 0x1003872c
mov ecx, edi
call fcn.100055f0
mov dword [ebp - 0x27c], 1
mov byte [ebp - 4], 1
xor eax, eax
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
mov byte [ebp - 4], al
jmp 0x10004e01
test esi, esi
je 0x10004ed0
sub esi, ecx
sar esi, 1
cmp esi, 0xffffffff
je 0x10004ed0
cmp esi, 1
je 0x10004ed0
mov ecx, dword [ebp - 0x284]
lea eax, [esi - 1]
push eax
push 1
lea eax, [ebp - 0x260]
push eax
call fcn.100053e0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x218]
cmp dword [ebp - 0x24c], 8
lea eax, [ebp - 0x260]
push 0x104
cmovae eax, dword [ebp - 0x260]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov eax, dword [ebp - 0x280]
add esi, 2
mov eax, dword [eax]
cmp esi, eax
jae 0x100050f3
mov ecx, dword [ebp - 0x284]
push eax
push esi
lea eax, [ebp - 0x278]
push eax
call fcn.100053e0
mov byte [ebp - 4], 4
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x29c]
call fcn.100055f0
mov byte [ebp - 4], 5
lea eax, [ebp - 0x278]
push eax
lea edx, [ebp - 0x29c]
lea ecx, [ebp - 0x2b8]
call fcn.1000e4b0
add esp, 4
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x230]
push eax
call fcn.10005540
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x2a4]
cmp edx, 8
jb 0x10005014
mov ecx, dword [ebp - 0x2b8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1000500a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10005244
push edx
push ecx
call fcn.10017284
add esp, 8
xor eax, eax
mov dword [ebp - 0x2a8], 0
mov dword [ebp - 0x2a4], 7
mov word [ebp - 0x2b8], ax
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x288]
cmp edx, 8
jb 0x10005075
mov ecx, dword [ebp - 0x29c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1000506b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10005249
push edx
push ecx
call fcn.10017284
add esp, 8
xor eax, eax
mov dword [ebp - 0x28c], 0
mov dword [ebp - 0x288], 7
mov word [ebp - 0x29c], ax
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x264]
cmp edx, 8
jb 0x100050d6
mov ecx, dword [ebp - 0x278]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100050cc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000524e
push edx
push ecx
call fcn.10017284
add esp, 8
xor eax, eax
mov dword [ebp - 0x268], 0
mov dword [ebp - 0x264], 7
mov word [ebp - 0x278], ax
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x24c]
cmp edx, 8
jb 0x10005137
mov ecx, dword [ebp - 0x260]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1000512d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10005253
push edx
push ecx
call fcn.10017284
add esp, 8
xor eax, eax
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], 7
mov word [ebp - 0x260], ax
jmp 0x10005190
mov ecx, esi
call fcn.1000e730
test al, al
je 0x1000517e
lea eax, [ebp - 0x230]
cmp eax, esi
je 0x10005190
cmp dword [esi + 0x14], 8
jb 0x10005173
mov esi, dword [esi]
mov eax, dword [ebp - 0x280]
push dword [eax]
push esi
jmp 0x10005185
push 0
push 0x1003872c
lea ecx, [ebp - 0x230]
call fcn.10005860
movups xmm0, xmmword [ebp - 0x230]
mov dword [edi + 0x10], 0
xor eax, eax
mov dword [edi + 0x14], 0
movups xmmword [edi], xmm0
mov word [ebp - 0x230], ax
movq xmm0, qword [ebp - 0x220]
movq qword [edi + 0x10], xmm0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x27c], 1
mov byte [ebp - 4], 1
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
mov byte [ebp - 4], al
jmp 0x10004e01
push edx
push ecx
call fcn.10017284
add esp, 8
xor eax, eax
mov dword [ebp - 0x234], 7
mov dword [ebp - 0x238], eax
mov word [ebp - 0x248], ax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10016ee0
mov esp, ebp
pop ebp
ret
call fcn.1001afe9
call fcn.1001afe9
call fcn.1001afe9
call fcn.1001afe9
call fcn.1001afe9
int3