Function at 0x4ad900
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x38
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x4adca0
lea eax, [ebp - 0x18]
mov dword [ebp - 0x40], edx
mov esi, dword fs:[0]
mov dword [ebp - 0x18], esi
lea esi, [ebp - 0x38]
mov dword fs:[0], eax
push edx
mov dword [ebp - 0x44], ecx
push ecx
push esi
call fcn.0040ce60
add esp, 0xc
cmp dword [ebp - 0x24], 7
jbe 0x4ad94a
mov esi, dword [ebp - 0x38]
mov dword [ebp - 0x10], 1
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ecx, dword [ebp - 0x24]
mov esi, eax
cmp ecx, 8
jb 0x4ad999
mov eax, dword [ebp - 0x38]
lea edx, [ecx + ecx + 2]
cmp edx, 0x1000
jb 0x4ad98f
mov edx, eax
mov eax, dword [eax - 4]
add edx, 0xfffffffc
sub edx, eax
cmp edx, 0x20
jae 0x4adb28
add ecx, ecx
add ecx, 0x25
mov edx, ecx
push edx
push eax
call fcn.005d319e
add esp, 8
test esi, esi
je 0x4adad4
cmp dword [ebp + 8], 0
mov al, 1
je 0x4adb16
mov dword [ebp - 0x3c], esi
add esi, esi
mov ecx, 0xffffffff
mov dword [ebp - 0x10], 0xffffffff
cmovae ecx, esi
push ecx
call fcn.005d8940
add esp, 4
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x10], 5
lea eax, [ebp - 0x38]
push dword [ebp - 0x40]
push dword [ebp - 0x44]
push eax
call fcn.0040ce60
add esp, 0xc
cmp dword [ebp - 0x24], 7
lea eax, [ebp - 0x38]
jbe 0x4ad9f2
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x10], 6
push dword [ebp - 0x3c]
push dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ecx, dword [ebp - 0x24]
cmp ecx, 8
jb 0x4ada41
mov eax, dword [ebp - 0x38]
lea edx, [ecx + ecx + 2]
cmp edx, 0x1000
jb 0x4ada37
mov edx, eax
mov eax, dword [eax - 4]
add edx, 0xfffffffc
sub edx, eax
cmp edx, 0x20
jae 0x4adb34
add ecx, ecx
add ecx, 0x25
mov edx, ecx
push edx
push eax
call fcn.005d319e
add esp, 8
mov esi, dword [ebp - 0x20]
push esi
call fcn.005d3244
add esp, 4
mov dword [ebp - 0x10], 5
lea ecx, [ebp - 0x38]
push eax
push esi
push ecx
call fcn.004076f0
add esp, 0xc
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x38]
cmp eax, edi
mov eax, dword [edi + 0x14]
je 0x4adad8
cmp eax, 0x10
jb 0x4adaa3
mov ecx, dword [edi]
lea edx, [eax + 1]
cmp edx, 0x1000
jb 0x4ada99
mov esi, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, esi
cmp ecx, 0x20
jae 0x4adb40
add eax, 0x24
mov ecx, esi
mov edx, eax
push edx
push ecx
call fcn.005d319e
add esp, 8
movsd xmm0, qword [ebp - 0x28]
movsd qword [edi + 0x10], xmm0
movsd xmm0, qword [ebp - 0x38]
movsd xmm1, qword [ebp - 0x30]
movsd qword [edi + 8], xmm1
movsd qword [edi], xmm0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0xf
mov byte [ebp - 0x38], 0
jmp 0x4adb09
xor eax, eax
jmp 0x4adb16
cmp eax, 0x10
jb 0x4adb09
mov ecx, dword [ebp - 0x38]
lea edx, [eax + 1]
cmp edx, 0x1000
jb 0x4adaff
mov esi, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, esi
cmp ecx, 0x20
jae 0x4adb4c
add eax, 0x24
mov ecx, esi
mov edx, eax
push edx
push ecx
call fcn.005d319e
add esp, 8
push dword [ebp - 0x20]
call fcn.005db8b4
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0x18]
mov dword fs:[0], ecx
add esp, 0x38
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x10], 0
call fcn.006207e0
mov dword [ebp - 0x10], 2
call fcn.006207e0
mov dword [ebp - 0x10], 3
call fcn.006207e0
mov dword [ebp - 0x10], 4
call fcn.006207e0
nop dword [eax + eax]
push ebp
sub esp, 0xc
add ebp, 0xc
call fcn.0061de80
nop dword [eax]
push ebp
sub esp, 0xc
add ebp, 0xc
mov ecx, dword [ebp - 0x24]
cmp ecx, 8
jb 0x4adbae
mov eax, dword [ebp - 0x38]
lea edx, [ecx + ecx + 2]
cmp edx, 0x1000
jb 0x4adba4
mov edx, eax
mov eax, dword [eax - 4]
add edx, 0xfffffffc
sub edx, eax
cmp edx, 0x20
jae 0x4adbb3
add ecx, ecx
add ecx, 0x25
mov edx, ecx
push edx
push eax
call fcn.005d319e
add esp, 8
add esp, 0xc
pop ebp
ret
call fcn.006207e0
nop dword [eax + eax]
push ebp
sub esp, 0xc
add ebp, 0xc
call fcn.0061de80
nop dword [eax]
push ebp
sub esp, 0xc
add ebp, 0xc
call fcn.0061de80
nop dword [eax]
push ebp
sub esp, 0xc
add ebp, 0xc
call fcn.0061de80
nop dword [eax]
push ebp
sub esp, 0xc
add ebp, 0xc
mov ecx, dword [ebp - 0x24]
cmp ecx, 8
jb 0x4adc2e
mov eax, dword [ebp - 0x38]
lea edx, [ecx + ecx + 2]
cmp edx, 0x1000
jb 0x4adc24
mov edx, eax
mov eax, dword [eax - 4]
add edx, 0xfffffffc
sub edx, eax
cmp edx, 0x20
jae 0x4adc47
add ecx, ecx
add ecx, 0x25
mov edx, ecx
push edx
push eax
call fcn.005d319e
add esp, 8
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 7
mov word [ebp - 0x38], 0
add esp, 0xc
pop ebp
ret
call fcn.006207e0
nop dword [eax]
push ebp
sub esp, 0xc
add ebp, 0xc
push dword [ebp - 0x20]
call fcn.005db8b4
add esp, 0x10
pop ebp
ret