Function at 0x10015622
Capabilities:
Query environment variable

Disassembly:
push 8
mov eax, 0x1004cc27
call fcn.10026ad1
mov ebx, dword [ebp + 8]
push ebx
call fcn.100161ae
mov esi, dword [ebp + 0xc]
mov edx, eax
pop ecx
mov ecx, dword [esi]
dec ecx
cmp ecx, 0xc
ja case.0x10015649.5
jmp dword [ecx*4 + 0x10015a4e]
cmp dword [esi + 4], 0xc350
jne 0x1001566b
push ebx
call fcn.10015b92
pop ecx
test al, al
je 0x1001566b
push 0
jmp 0x10015a32
and dword [ebp + 0xc], 0
and dword [ebp - 4], 0
lea ecx, [ebp + 0xc]
push ecx
push 0x10051908
push 0x2710
mov eax, dword [ebx]
push ebx
call dword [eax + 0x38]
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x10015697
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
mov eax, dword [ebp + 0xc]
or dword [ebp - 4], 0xffffffff
test eax, eax
je case.0x10015649.5
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp case.0x10015649.5
and dword [ebp + 0xc], 0
lea ecx, [ebp + 0xc]
mov dword [ebp - 4], 1
push ecx
push 0x10051918
push 0x271f
jmp 0x10015681
and dword [ebp - 0x10], 0
mov eax, dword [ebx]
lea ecx, [ebp - 0x10]
push ecx
push 0x10051908
push 0x2710
push ebx
mov dword [ebp - 4], 2
call dword [eax + 0x38]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x100156f7
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
jmp 0x10015731
and dword [ebp + 0xc], 0
mov eax, dword [ebx]
lea ecx, [ebp + 0xc]
push ecx
push 0x10051928
push 0x2715
push ebx
mov byte [ebp - 4], 3
call dword [eax + 0x38]
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x10015723
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
mov eax, dword [ebp + 0xc]
mov byte [ebp - 4], 2
test eax, eax
je 0x10015731
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x10]
jmp 0x10015697
and dword [ebp + 0xc], 0
mov eax, dword [ebx]
lea ecx, [ebp + 0xc]
push ecx
push 0x10051928
push 0x2715
push ebx
mov dword [ebp - 4], 4
call dword [eax + 0x38]
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x10015697
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
jmp 0x10015694
and dword [ebp + 0xc], 0
cmp dword [esi + 4], 0xc368
jne 0x100157b2
mov eax, dword [ebx]
lea ecx, [ebp + 0xc]
push ecx
push 0x10051938
push 0x271a
push ebx
mov dword [ebp - 4], 5
call dword [eax + 0x38]
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x100157a3
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
push 1
push ebx
call fcn.1001533a
pop ecx
pop ecx
jmp 0x10015694
cmp dword [esi + 4], 0xc352
mov eax, dword [ebx]
jne 0x1001581c
lea ecx, [ebp + 0xc]
mov dword [ebp - 4], 6
push ecx
push 0x10051918
push 0x271f
push ebx
call dword [eax + 0x38]
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x10015697
mov ecx, dword [eax]
lea edx, [ebp - 0x14]
push edx
push eax
call dword [ecx + 0x10]
cmp dword [ebp - 0x14], 1
je 0x10015694
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
test eax, eax
je 0x10015694
push 0
push dword [esi + 0x2c]
push dword [esi + 0x28]
push ebx
call fcn.10015431
add esp, 0x10
jmp 0x10015694
lea ecx, [ebp + 0xc]
mov dword [ebp - 4], 7
push ecx
push 0x10051938
push 0x271a
jmp 0x10015683
and dword [ebp + 0xc], 0
cmp dword [esi + 4], 0xc368
jne 0x10015872
mov eax, dword [ebx]
lea ecx, [ebp + 0xc]
push ecx
push 0x10051938
push 0x271a
push ebx
mov dword [ebp - 4], 8
call dword [eax + 0x38]
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x1001586b
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
push 0
jmp 0x100157a5
cmp dword [esi + 4], 0xc352
mov eax, dword [ebx]
jne 0x100158b4
lea ecx, [ebp + 0xc]
mov dword [ebp - 4], 9
push ecx
push 0x10051918
push 0x271f
push ebx
call dword [eax + 0x38]
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x10015697
mov ecx, dword [eax]
lea edx, [ebp - 0x14]
push edx
push eax
call dword [ecx + 0x10]
cmp dword [ebp - 0x14], 0
jmp 0x100157ef
lea ecx, [ebp + 0xc]
mov dword [ebp - 4], 0xa
push ecx
push 0x10051938
push 0x271a
push ebx
call dword [eax + 0x38]
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x10015697
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
jmp 0x10015694
cmp dword [esi + 4], 0xc353
mov eax, dword [esi + 0x14]
jne 0x10015903
push eax
push 0
push 0x14d
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
jmp case.0x10015649.5
add eax, 0xfffffff0
push eax
call fcn.1000276c
add eax, 0x10
mov dword [ebp - 0x10], eax
mov edi, dword [esi + 0x14]
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0xb
mov dword [esp], 0x104
call fcn.10004f08
push 0x104
lea ecx, [ebp - 0x10]
mov esi, eax
call fcn.10005677
push 0x104
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.10005138
and dword [ebp + 0xc], 0
mov eax, dword [ebx]
lea ecx, [ebp + 0xc]
push ecx
push 0x10051948
push 0x2712
push ebx
mov byte [ebp - 4], 0xc
call dword [eax + 0x38]
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp - 0x10]
test eax, eax
je 0x100159c7
push dword [esi - 0xc]
push esi
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov edx, eax
mov dword [ebp - 0x14], edx
test edx, edx
je 0x10015a47
mov eax, dword [ebp + 0xc]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
push dword [ebp - 0x14]
mov edi, eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
test edi, edi
je 0x100159c4
push ecx
lea eax, [esi - 0x10]
mov edi, esp
push eax
mov dword [ebp - 0x14], edi
call fcn.1000276c
pop ecx
add eax, 0x10
push ebx
mov dword [edi], eax
call fcn.100165d5
pop ecx
pop ecx
mov eax, dword [ebp + 0xc]
mov byte [ebp - 4], 0xb
test eax, eax
je 0x100159d5
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [esi - 0x10]
call fcn.10005120
jmp case.0x10015649.5
and dword [ebp - 0x14], 0
mov eax, dword [ebx]
lea ecx, [ebp - 0x14]
push ecx
push 0x10051958
push 0x2714
push ebx
mov dword [ebp - 4], 0xd
call dword [eax + 0x38]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x10015697
movsd xmm0, qword [0x10051968]
sub esp, 0x10
mov ecx, dword [eax]
movsd qword [esp + 8], xmm0
xorps xmm0, xmm0
movsd qword [esp], xmm0
push eax
call dword [ecx + 0x10]
mov eax, dword [ebp - 0x14]
jmp 0x10015697
push 1
push dword [esi + 0x2c]
push dword [esi + 0x28]
push ebx
call fcn.10015431
add esp, 0x10
call fcn.10026a9f
ret
call fcn.10005a72
nop
push eax
push esi
add dword [eax], edx
push esi
add dword [eax], edx
xor byte [edx + 1], bl
adc bl, ah
pop eax
add dword [eax], edx
inc ecx
pop edx
add dword [eax], edx
outsb dx, byte [esi]
push edi
add dword [eax], edx
pop eax
add dword [eax], edx
scasb al, byte es:[edi]
push esi
add dword [eax], edx
leave
push esi
add dword [eax], edx
cmp dword [edi + 1], edx
adc bh, bl
pop ecx
add dword [eax], edx
inc ecx
pop edx
add dword [eax], edx
inc ecx
pop edx
add dword [eax], edx