Function at 0x10004550
Capabilities:
Query environment variable

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10029a84
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x2b0
mov eax, dword [0x10040014]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov dword [ebp - 0x28c], esi
mov edi, ecx
mov dword [ebp - 0x288], edi
mov dword [ebp - 0x2a8], edi
lea eax, [esi + 0x10]
mov dword [ebp - 0x284], 0
cmp dword [eax], 0
mov dword [ebp - 0x288], eax
jne 0x100045f3
xor eax, eax
mov dword [edi + 0x10], 0
push eax
mov dword [edi + 0x14], 7
push 0x10038b98
mov word [edi], ax
call fcn.100050b0
mov dword [ebp - 4], 0
mov dword [ebp - 0x284], 1
jmp 0x10004a76
lea ecx, [ebp - 0x250]
call fcn.1000d7d0
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x250]
cmp dword [ebp - 0x23c], 8
mov edx, str..dll
cmovae ecx, dword [ebp - 0x250]
call fcn.1000be90
test al, al
jne 0x10004698
xor eax, eax
mov dword [edi + 0x10], 0
push eax
mov dword [edi + 0x14], 7
mov ecx, edi
push 0x10038b98
mov word [edi], ax
call fcn.100050b0
mov dword [ebp - 0x284], 1
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x23c]
cmp edx, 8
jb 0x10004a5d
mov ecx, dword [ebp - 0x250]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10004a53
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10004a96
jmp 0x10004a53
xor eax, eax
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 7
mov word [ebp - 0x238], ax
mov byte [ebp - 4], 2
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x100046d7
mov eax, dword [esi]
cmp word [eax], 0x25
jne 0x100049aa
push 0x208
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.10019120
add esp, 0xc
mov ecx, esi
cmp dword [esi + 0x14], 8
jb 0x10004701
mov ecx, dword [esi]
mov eax, dword [ebp - 0x288]
mov eax, dword [eax]
cmp eax, 1
jbe 0x10004724
lea esi, [ecx + 2]
add eax, 0xffffffff
je 0x10004724
cmp word [esi], 0x25
je 0x10004763
add esi, 2
sub eax, 1
jne 0x10004716
push 0x10038b98
mov ecx, edi
call fcn.10004e40
mov dword [ebp - 0x284], 1
mov byte [ebp - 4], 1
xor eax, eax
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 7
mov word [ebp - 0x238], ax
mov byte [ebp - 4], al
jmp 0x10004655
test esi, esi
je 0x10004724
sub esi, ecx
sar esi, 1
cmp esi, 0xffffffff
je 0x10004724
cmp esi, 1
je 0x10004724
mov ecx, dword [ebp - 0x28c]
lea eax, [esi - 1]
push eax
push 1
lea eax, [ebp - 0x268]
push eax
call fcn.10004c30
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x220]
cmp dword [ebp - 0x254], 8
lea eax, [ebp - 0x268]
push 0x104
cmovae eax, dword [ebp - 0x268]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov eax, dword [ebp - 0x288]
add esi, 2
mov eax, dword [eax]
cmp esi, eax
jae 0x10004947
mov ecx, dword [ebp - 0x28c]
push eax
push esi
lea eax, [ebp - 0x280]
push eax
call fcn.10004c30
mov byte [ebp - 4], 4
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x2a4]
call fcn.10004e40
mov byte [ebp - 4], 5
lea eax, [ebp - 0x280]
push eax
lea edx, [ebp - 0x2a4]
lea ecx, [ebp - 0x2c0]
call fcn.1000e9a0
add esp, 4
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x238]
push eax
call fcn.10004d90
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x2ac]
cmp edx, 8
jb 0x10004868
mov ecx, dword [ebp - 0x2c0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1000485e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10004a9b
push edx
push ecx
call fcn.10017942
add esp, 8
xor eax, eax
mov dword [ebp - 0x2b0], 0
mov dword [ebp - 0x2ac], 7
mov word [ebp - 0x2c0], ax
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x290]
cmp edx, 8
jb 0x100048c9
mov ecx, dword [ebp - 0x2a4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100048bf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10004aa0
push edx
push ecx
call fcn.10017942
add esp, 8
xor eax, eax
mov dword [ebp - 0x294], 0
mov dword [ebp - 0x290], 7
mov word [ebp - 0x2a4], ax
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x26c]
cmp edx, 8
jb 0x1000492a
mov ecx, dword [ebp - 0x280]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10004920
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10004aa5
push edx
push ecx
call fcn.10017942
add esp, 8
xor eax, eax
mov dword [ebp - 0x270], 0
mov dword [ebp - 0x26c], 7
mov word [ebp - 0x280], ax
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x254]
cmp edx, 8
jb 0x1000498b
mov ecx, dword [ebp - 0x268]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10004981
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10004aaa
push edx
push ecx
call fcn.10017942
add esp, 8
xor eax, eax
mov dword [ebp - 0x258], 0
mov dword [ebp - 0x254], 7
mov word [ebp - 0x268], ax
jmp 0x100049e4
mov ecx, esi
call fcn.1000ec20
test al, al
je 0x100049d2
lea eax, [ebp - 0x238]
cmp eax, esi
je 0x100049e4
cmp dword [esi + 0x14], 8
jb 0x100049c7
mov esi, dword [esi]
mov eax, dword [ebp - 0x288]
push dword [eax]
push esi
jmp 0x100049d9
push 0
push 0x10038b98
lea ecx, [ebp - 0x238]
call fcn.100050b0
movups xmm0, xmmword [ebp - 0x238]
mov dword [edi + 0x10], 0
xor eax, eax
mov dword [edi + 0x14], 0
movups xmmword [edi], xmm0
mov word [ebp - 0x238], ax
movq xmm0, qword [ebp - 0x228]
movq qword [edi + 0x10], xmm0
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 7
mov dword [ebp - 0x284], 1
mov byte [ebp - 4], 1
mov dword [ebp - 0x228], eax
mov dword [ebp - 0x224], 7
mov word [ebp - 0x238], ax
mov byte [ebp - 4], al
jmp 0x10004655
push edx
push ecx
call fcn.10017942
add esp, 8
xor eax, eax
mov dword [ebp - 0x23c], 7
mov dword [ebp - 0x240], eax
mov word [ebp - 0x250], ax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100174a0
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.1001b6a9
call fcn.1001b6a9
call fcn.1001b6a9
call fcn.1001b6a9
call fcn.1001b6a9
int3